Util.h
Go to the documentation of this file.00001 #ifndef QIC_UTIL_H_
00002 #define QIC_UTIL_H_
00003
00004 #include <QString>
00005 #include <QHash>
00006 #include <QObject>
00007 #include <QPluginLoader>
00008 #include <QtXml/QDomNode>
00009
00010 namespace qic
00011 {
00012
00016 class Util
00017 {
00018 public:
00019
00025 static Qt::ConnectionType translateConnectionType (QString type);
00026
00034 static QString translateVariable (QString name);
00035
00041 static QString getEnvVariable (QString name);
00042
00049 static QString getSetting (QString name, QString defaultValue);
00050
00054 static QString asXml (QDomNode & node);
00055
00062 static void loadPlugin (QString id, QString plugin_path,
00063 QHash <QString, QPluginLoader *> & loader_map, QHash <QString, QObject *> & object_map);
00064
00065 }
00066 ;
00067
00068 }
00069 ;
00070
00071 #endif