00001 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org> 00002 * 00003 * schroot is free software: you can redistribute it and/or modify it 00004 * under the terms of the GNU General Public License as published by 00005 * the Free Software Foundation, either version 3 of the License, or 00006 * (at your option) any later version. 00007 * 00008 * schroot is distributed in the hope that it will be useful, but 00009 * WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program. If not, see 00015 * <http://www.gnu.org/licenses/>. 00016 * 00017 *********************************************************************/ 00018 00019 #ifndef DCHROOT_SESSION_BASE_H 00020 #define DCHROOT_SESSION_BASE_H 00021 00022 #include <sbuild/sbuild-session.h> 00023 00024 namespace dchroot 00025 { 00026 00035 class session_base : public sbuild::session 00036 { 00037 public: 00048 session_base (std::string const& service, 00049 config_ptr& config, 00050 operation operation, 00051 sbuild::string_list const& chroots, 00052 bool compat); 00053 00055 virtual ~session_base (); 00056 00062 bool 00063 get_compat () const; 00064 00070 void 00071 set_compat (bool state); 00072 00073 protected: 00074 virtual void 00075 run_impl (); 00076 00077 virtual sbuild::string_list 00078 get_command_directories () const; 00079 00080 private: 00082 bool compat; 00083 }; 00084 00085 } 00086 00087 #endif /* DCHROOT_SESSION_BASE_H */ 00088 00089 /* 00090 * Local Variables: 00091 * mode:C++ 00092 * End: 00093 */