libpsynth 0.2.1
/home/raskolnikov/dev/psynth/trunk/src/psynth/app/file_manager_director.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   PSYCHOSYNTH                                                           *
00004  *   ===========                                                           *
00005  *                                                                         *
00006  *   Copyright (C) Juan Pedro Bolivar Puente 2008                          *
00007  *                                                                         *
00008  *   This program is free software: you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation, either version 3 of the License, or     *
00011  *   (at your option) any later version.                                   *
00012  *                                                                         *
00013  *   This program is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00016  *   GNU General Public License for more details.                          *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU General Public License     *
00019  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 #ifndef PSYNTH_FILEMANAGERDIRECTOR_H
00024 #define PSYNTH_FILEMANAGERDIRECTOR_H
00025 
00026 #include <psynth/base/config.hpp>
00027 #include <psynth/base/file_manager.hpp>
00028 
00029 namespace psynth
00030 {
00031 
00032 class file_manager_director
00033 {
00034     base::conf_node* m_conf;
00035     boost::filesystem::path m_home_path;
00036     boost::signals::connection m_on_conf_nudge_slot;
00037     
00038     void on_conf_nudge (base::conf_node& node);
00039     void register_config ();
00040     void unregister_config ();
00041     
00042 public:
00043     void start (base::conf_node& conf,
00044                 const boost::filesystem::path& home_path);
00045     void stop ();
00046     void defaults ();
00047 };
00048 
00049 } /* namespace psynth */
00050 
00051 
00052 #endif /* PSYNTH_FILEMANAGERDIRECTOR_H */