sbuild
1.6.5
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
sbuild-chroot-facet-source-clonable.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_SOURCE_CLONABLE_H
20
#define SBUILD_CHROOT_FACET_SOURCE_CLONABLE_H
21
22
#include <sbuild/sbuild-chroot-facet.h>
23
24
namespace
sbuild
25
{
26
35
class
chroot_facet_source_clonable
:
public
chroot_facet
36
{
37
public
:
39
typedef
std::shared_ptr<chroot_facet_source_clonable>
ptr
;
40
42
typedef
std::shared_ptr<const chroot_facet_source_clonable>
const_ptr
;
43
44
private
:
46
chroot_facet_source_clonable
();
47
48
public
:
50
virtual
~chroot_facet_source_clonable
();
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
72
virtual
void
73
clone_source_setup
(
chroot
const
& parent,
74
chroot::ptr
&
clone
)
const
;
75
82
virtual
bool
83
get_source_clone
()
const
;
84
91
virtual
void
92
set_source_clone
(
bool
clone
);
93
99
virtual
string_list
const
&
100
get_source_users
()
const
;
101
107
virtual
void
108
set_source_users
(
string_list
const
& users);
109
115
virtual
string_list
const
&
116
get_source_groups
()
const
;
117
123
virtual
void
124
set_source_groups
(
string_list
const
& groups);
125
133
virtual
string_list
const
&
134
get_source_root_users
()
const
;
135
143
virtual
void
144
set_source_root_users
(
string_list
const
& users);
145
153
virtual
string_list
const
&
154
get_source_root_groups
()
const
;
155
163
virtual
void
164
set_source_root_groups
(
string_list
const
& groups);
165
166
virtual
void
167
setup_env
(
chroot
const
&
chroot
,
168
environment
& env)
const
;
169
170
virtual
chroot::session_flags
171
get_session_flags
(
chroot
const
&
chroot
)
const
;
172
173
virtual
void
174
get_details
(
chroot
const
&
chroot
,
175
format_detail
& detail)
const
;
176
177
virtual
void
178
get_keyfile
(
chroot
const
&
chroot
,
179
keyfile
&
keyfile
)
const
;
180
181
virtual
void
182
set_keyfile
(
chroot
&
chroot
,
183
keyfile
const
&
keyfile
,
184
string_list
& used_keys);
185
186
private
:
188
bool
source_clone
;
190
string_list
source_users
;
192
string_list
source_groups
;
194
string_list
source_root_users
;
196
string_list
source_root_groups
;
197
};
198
199
}
200
201
#endif
/* SBUILD_CHROOT_FACET_SOURCE_CLONABLE_H */
202
203
/*
204
* Local Variables:
205
* mode:C++
206
* End:
207
*/
Generated on Mon Jan 28 2013 05:15:41 for sbuild by
1.8.3.1