sbuild
1.6.5
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
sbuild-chroot-facet-session.h
1
/* Copyright © 2005-2009 Roger Leigh <rleigh@debian.org>
2
*
3
* schroot is free software: you can redistribute it and/or modify it
4
* under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
7
*
8
* schroot is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see
15
* <http://www.gnu.org/licenses/>.
16
*
17
*********************************************************************/
18
19
#ifndef SBUILD_CHROOT_FACET_SESSION_H
20
#define SBUILD_CHROOT_FACET_SESSION_H
21
22
#include <sbuild/sbuild-chroot-facet.h>
23
#include <sbuild/sbuild-session.h>
24
25
namespace
sbuild
26
{
27
35
class
chroot_facet_session
:
public
chroot_facet
36
{
37
public
:
39
typedef
std::shared_ptr<chroot_facet_session>
ptr
;
40
42
typedef
std::shared_ptr<const chroot_facet_session>
const_ptr
;
43
44
private
:
46
chroot_facet_session
();
47
48
public
:
50
virtual
~chroot_facet_session
();
51
57
static
ptr
58
create
();
59
60
virtual
chroot_facet::ptr
61
clone
()
const
;
62
63
virtual
std::string
const
&
64
get_name
()
const
;
65
71
std::string
const
&
72
get_original_name
()
const
;
73
80
void
81
set_original_name
(std::string
const
& name);
82
88
std::string
const
&
89
get_selected_name
()
const
;
90
96
void
97
set_selected_name
(std::string
const
& name);
98
99
virtual
void
100
setup_env
(
chroot
const
&
chroot
,
101
environment
& env)
const
;
102
103
virtual
chroot::session_flags
104
get_session_flags
(
chroot
const
&
chroot
)
const
;
105
106
virtual
void
107
get_details
(
chroot
const
&
chroot
,
108
format_detail
& detail)
const
;
109
110
virtual
void
111
get_keyfile
(
chroot
const
&
chroot
,
112
keyfile
&
keyfile
)
const
;
113
114
virtual
void
115
set_keyfile
(
chroot
&
chroot
,
116
keyfile
const
&
keyfile
,
117
string_list
& used_keys);
118
119
private
:
121
std::string
original_chroot_name
;
123
std::string
selected_chroot_name
;
124
};
125
126
}
127
128
#endif
/* SBUILD_CHROOT_FACET_SESSION_H */
129
130
/*
131
* Local Variables:
132
* mode:C++
133
* End:
134
*/
Generated on Mon Jan 28 2013 05:15:41 for sbuild by
1.8.3.1