Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

var_manager.hpp

00001 /*****************************************************************************
00002  * var_manager.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: var_manager.hpp 11973 2005-08-02 23:26:22Z asmax $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *          Olivier Teulière <[email protected]>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef VAR_MANAGER_HPP
00026 #define VAR_MANAGER_HPP
00027 
00028 #include "../utils/var_text.hpp"
00029 #include <list>
00030 #include <map>
00031 
00032 
00033 class VarManager: public SkinObject
00034 {
00035     public:
00037         static VarManager *instance( intf_thread_t *pIntf );
00038 
00040         static void destroy( intf_thread_t *pIntf );
00041 
00043         void registerVar( const VariablePtr &rcVar, const string &rName );
00044 
00046         void registerVar( const VariablePtr &rcVar );
00047 
00049         Variable *getVar( const string &rName );
00050 
00052         Variable *getVar( const string &rName, const string &rType );
00053 
00055         VarText &getTooltipText() { return *m_pTooltipText; }
00056 
00058         VarText &getHelpText() { return *m_pHelpText; }
00059 
00060     private:
00062         VarText *m_pTooltipText;
00064         VarText *m_pHelpText;
00066         map<string, VariablePtr> m_varMap;
00068         list<string> m_varList;
00070         list<VariablePtr> m_anonVarList;
00071 
00073         VarManager( intf_thread_t *pIntf );
00074         virtual ~VarManager();
00075 };
00076 
00077 
00078 #endif

Generated on Tue Dec 20 10:14:43 2005 for vlc-0.8.4a by  doxygen 1.4.2