source: trunk/debathena/third/schroot/bin/schroot/schroot-main.h @ 24167

Revision 24167, 1.5 KB checked in by broder, 15 years ago (diff)
Import schroot upstream into subversion.
Line 
1/* Copyright © 2005-2007  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 SCHROOT_MAIN_H
20#define SCHROOT_MAIN_H
21
22#include <schroot/schroot-main-base.h>
23#include <schroot/schroot-options-base.h>
24
25namespace schroot
26{
27
28  /**
29   * Frontend for schroot.  This class is used to "run" schroot.
30   */
31  class main : public main_base
32  {
33  public:
34    /**
35     * The constructor.
36     *
37     * @param options the command-line options to use.
38     */
39    main (options_base::ptr& options);
40
41    /// The destructor.
42    virtual ~main ();
43
44    /**
45     * List chroots.
46     */
47    virtual void
48    action_list ();
49
50    /**
51     * Dump configuration file for chroots.
52     */
53    virtual void
54    action_config ();
55
56  protected:
57    virtual void
58    create_session(sbuild::session::operation sess_op);
59  };
60
61}
62
63#endif /* SCHROOT_MAIN_H */
64
65/*
66 * Local Variables:
67 * mode:C++
68 * End:
69 */
Note: See TracBrowser for help on using the repository browser.