sbuild  1.7.1
session-setup.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_SESSION_SETUP_H
20 #define SBUILD_CHROOT_FACET_SESSION_SETUP_H
21 
22 #include <sbuild/chroot/chroot.h>
23 
24 #include <memory>
25 #include <string>
26 
27 namespace sbuild
28 {
29  namespace chroot
30  {
31  namespace facet
32  {
33 
42  {
43  public:
45  typedef std::shared_ptr<session_setup> ptr;
46 
48  typedef std::shared_ptr<const session_setup> const_ptr;
49 
50  protected:
52  session_setup ();
53 
54  public:
56  virtual ~session_setup ();
57 
67  virtual void
68  chroot_session_setup (const chroot& parent,
69  const std::string& session_id,
70  const std::string& alias,
71  const std::string& user,
72  bool root) = 0;
73 
74  };
75 
76  }
77  }
78 }
79 
80 #endif /* SBUILD_CHROOT_FACET_SESSION_SETUP_H */
81 
82 /*
83  * Local Variables:
84  * mode:C++
85  * End:
86  */