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_H 00020 #define DCHROOT_SESSION_H 00021 00022 #include <dchroot/dchroot-session-base.h> 00023 00024 namespace dchroot 00025 { 00026 00036 class session : public session_base 00037 { 00038 public: 00049 session (std::string const& service, 00050 config_ptr& config, 00051 operation operation, 00052 sbuild::string_list const& chroots, 00053 bool compat); 00054 00056 virtual ~session (); 00057 00058 virtual sbuild::auth::status 00059 get_chroot_auth_status (sbuild::auth::status status, 00060 sbuild::chroot::ptr const& chroot) const; 00061 00062 virtual sbuild::string_list 00063 get_login_directories () const; 00064 00065 virtual void 00066 get_user_command (sbuild::chroot::ptr& session_chroot, 00067 std::string& file, 00068 sbuild::string_list& command) const; 00069 }; 00070 00071 } 00072 00073 #endif /* DCHROOT_SESSION_H */ 00074 00075 /* 00076 * Local Variables: 00077 * mode:C++ 00078 * End: 00079 */