00001 /******************************************************************************* 00002 * * 00003 * Copyright (C) 2003 Erik Sjolund, (<html>Erik Sjölund</html>) * 00004 * Center for Genomics and Bioinformatics, * 00005 * Karolinska Institutet, * 00006 * Stockholm, * 00007 * Sweden * 00008 * * 00009 * Author: Erik Sjolund * 00010 * Email: erik.sjolund@adivo.se * 00011 * * 00012 ******************************************************************************* 00013 */ 00014 00015 #ifndef TRAPPERCONF_H 00016 #define TRAPPERCONF_H 00017 00018 00019 00020 #include <qdom.h> 00021 #include <qobject.h> 00022 #include <qstring.h> 00023 #include <qstringlist.h> 00024 00025 00026 class QFile; 00027 00028 /** \brief load and saves the trapperconf.xml file */ 00029 00030 class TrapperConf : public QObject 00031 { 00032 Q_OBJECT 00033 public: 00034 ~TrapperConf(); 00035 static TrapperConf * instance(); 00036 QDomElement viewModeConf(); 00037 void save(); 00038 QStringList viewModeNames(); 00039 void loadDom( QFile * file ); 00040 protected: 00041 TrapperConf(); 00042 00043 QDomDocument domTree; 00044 00045 00046 private: 00047 static TrapperConf * s_instance; 00048 QFile * confFile; 00049 }; 00050 00051 #endif