sbuild  1.6.0
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 
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:
47 
48  public:
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  virtual void
73 
80  virtual bool
81  get_source_clone () const;
82 
89  virtual void
90  set_source_clone (bool clone);
91 
97  virtual string_list const&
98  get_source_users () const;
99 
105  virtual void
106  set_source_users (string_list const& users);
107 
113  virtual string_list const&
114  get_source_groups () const;
115 
121  virtual void
122  set_source_groups (string_list const& groups);
123 
131  virtual string_list const&
132  get_source_root_users () const;
133 
141  virtual void
142  set_source_root_users (string_list const& users);
143 
151  virtual string_list const&
152  get_source_root_groups () const;
153 
161  virtual void
162  set_source_root_groups (string_list const& groups);
163 
164  virtual void
165  setup_env (chroot const& chroot,
166  environment& env) const;
167 
168  virtual chroot::session_flags
169  get_session_flags (chroot const& chroot) const;
170 
171  virtual void
172  get_details (chroot const& chroot,
173  format_detail& detail) const;
174 
175  virtual void
176  get_keyfile (chroot const& chroot,
177  keyfile& keyfile) const;
178 
179  virtual void
181  keyfile const& keyfile,
182  string_list& used_keys);
183 
184  private:
195  };
196 
197 }
198 
199 #endif /* SBUILD_CHROOT_FACET_SOURCE_CLONABLE_H */
200 
201 /*
202  * Local Variables:
203  * mode:C++
204  * End:
205  */