sbuild
1.6.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
sbuild-chroot-facet-session-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_SESSION_CLONABLE_H
20
#define SBUILD_CHROOT_FACET_SESSION_CLONABLE_H
21
22
#include <sbuild/sbuild-chroot-facet.h>
23
24
namespace
sbuild
25
{
26
34
class
chroot_facet_session_clonable
:
public
chroot_facet
35
{
36
public
:
38
typedef
std::shared_ptr<chroot_facet_session_clonable>
ptr
;
39
41
typedef
std::shared_ptr<const chroot_facet_session_clonable>
const_ptr
;
42
43
private
:
45
chroot_facet_session_clonable
();
46
47
public
:
49
virtual
~chroot_facet_session_clonable
();
50
56
static
ptr
57
create
();
58
59
virtual
chroot_facet::ptr
60
clone
()
const
;
61
62
virtual
std::string
const
&
63
get_name
()
const
;
64
73
virtual
void
74
clone_session_setup
(
chroot::ptr
&
clone
,
75
std::string
const
& session_id,
76
std::string
const
& alias,
77
std::string
const
& user,
78
bool
root)
const
;
79
80
virtual
void
81
setup_env
(
chroot
const
&
chroot
,
82
environment
& env)
const
;
83
84
virtual
chroot::session_flags
85
get_session_flags
(
chroot
const
&
chroot
)
const
;
86
87
virtual
void
88
get_details
(
chroot
const
&
chroot
,
89
format_detail
& detail)
const
;
90
91
virtual
void
92
get_keyfile
(
chroot
const
&
chroot
,
93
keyfile
&
keyfile
)
const
;
94
95
virtual
void
96
set_keyfile
(
chroot
&
chroot
,
97
keyfile
const
&
keyfile
,
98
string_list
& used_keys);
99
};
100
101
}
102
103
#endif
/* SBUILD_CHROOT_FACET_SESSION_CLONABLE_H */
104
105
/*
106
* Local Variables:
107
* mode:C++
108
* End:
109
*/
Generated on Fri Jun 29 2012 13:39:02 for sbuild by
1.8.1.1