sbuild
1.7.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
lib
sbuild
chroot
facet
mountable.h
1
/* Copyright © 2005-2013 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_MOUNTABLE_H
20
#define SBUILD_CHROOT_FACET_MOUNTABLE_H
21
22
#include <sbuild/chroot/facet/facet.h>
23
24
namespace
sbuild
25
{
26
namespace
chroot
27
{
28
namespace
facet
29
{
30
42
class
mountable
:
public
facet
43
{
44
public
:
46
typedef
std::shared_ptr<mountable>
ptr
;
47
49
typedef
std::shared_ptr<const mountable>
const_ptr
;
50
51
private
:
53
mountable
();
54
55
public
:
57
virtual
~mountable
();
58
64
static
ptr
65
create
();
66
67
virtual
facet::ptr
68
clone
()
const
;
69
70
virtual
std::string
const
&
71
get_name
()
const
;
72
78
virtual
std::string
const
&
79
get_mount_device
()
const
;
80
86
virtual
void
87
set_mount_device
(
const
std::string&
mount_device
);
88
94
virtual
std::string
const
&
95
get_mount_options
()
const
;
96
102
virtual
void
103
set_mount_options
(
const
std::string&
mount_options
);
104
111
virtual
std::string
const
&
112
get_location
()
const
;
113
120
virtual
void
121
set_location
(
const
std::string&
location
);
122
123
virtual
void
124
setup_env
(
environment
& env)
const
;
125
126
virtual
void
127
get_details
(
format_detail
& detail)
const
;
128
129
virtual
void
130
get_used_keys
(
string_list
& used_keys)
const
;
131
132
virtual
void
133
get_keyfile
(
keyfile
&
keyfile
)
const
;
134
135
virtual
void
136
set_keyfile
(
const
keyfile
&
keyfile
);
137
138
private
:
140
std::string
mount_device
;
142
std::string
mount_options
;
144
std::string
location
;
145
};
146
147
}
148
}
149
}
150
151
#endif
/* SBUILD_CHROOT_FACET_MOUNTABLE_H */
152
153
/*
154
* Local Variables:
155
* mode:C++
156
* End:
157
*/
Generated on Wed Oct 2 2013 10:21:07 for sbuild by
1.8.4