00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _QCE_CONFIG_H_
00017 #define _QCE_CONFIG_H_
00018
00024 #include <qglobal.h>
00025
00030 #ifdef QCE_EXPORT
00031 #error QCE_EXPORT already defined...
00032 #endif
00033
00034 #ifdef _QCODE_EDIT_BUILD_
00035 #define QCE_EXPORT Q_DECL_EXPORT
00036 #else
00037 #define QCE_EXPORT Q_DECL_IMPORT
00038 #endif
00039
00040 class QString;
00041 class QStringList;
00042
00043 namespace QCE
00044 {
00045 QString fetchDataFile(const QString& file);
00046
00047 QStringList dataPathes();
00048 void addDataPath(const QString& path);
00049
00050 template <typename Registerable>
00051 class Registar
00052 {
00053 public:
00054 Registar()
00055 {
00056 Registerable::_register();
00057 }
00058 };
00059 }
00060
00061 #define QCE_AUTO_REGISTER(T) \
00062 static QCE::Registar<T> _auto_##T##_registar; \
00063
00064
00065
00066 #endif // !_QCE_CONFIG_H_