experiments/include/total99resources.h

00001 /********************************************************************************
00002  *  FARSA - Total99                                                             *
00003  *  Copyright (C) 2005-2011 Gianluca Massera <emmegian@yahoo.it>                *
00004  *                                                                              *
00005  *  This program is free software; you can redistribute it and/or modify        *
00006  *  it under the terms of the GNU General Public License as published by        *
00007  *  the Free Software Foundation; either version 2 of the License, or           *
00008  *  (at your option) any later version.                                         *
00009  *                                                                              *
00010  *  This program is distributed in the hope that it will be useful,             *
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of              *
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
00013  *  GNU General Public License for more details.                                *
00014  *                                                                              *
00015  *  You should have received a copy of the GNU General Public License           *
00016  *  along with this program; if not, write to the Free Software                 *
00017  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA  *
00018  ********************************************************************************/
00019 
00020 #ifndef TOTAL99RESOURCES_H
00021 #define TOTAL99RESOURCES_H
00022 
00023 #include "experimentsconfig.h"
00024 #include <QString>
00025 #include <QMap>
00026 #include <QMetaObject>
00027 #include <QDir>
00028 #include "configurationparameters.h"
00029 
00059 class FARSA_EXPERIMENTS_API Total99Resources {
00060 public:
00069     static QString findResource( QString resourceName );
00071     static QString confBasePath;
00073     static QString confUserPath;
00075     static QString pluginBasePath;
00077     static QString pluginUserPath;
00079     static QString uiTemplate;
00089     static bool loadPlugin( QString filename );
00091     static void loadPlugins( QDir dir );
00094     static void loadPlugins( const farsa::ConfigurationParameters& params );
00096     static void initialize();
00097 private:
00099     Total99Resources();
00101     ~Total99Resources();
00102 };
00103 
00104 #endif