00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #ifndef SERVICE_H_
00014 #define SERVICE_H_
00015
00016 #include <QObject>
00017 #include <QMetaType>
00018 #include <QVariant>
00019 #include <QFileInfo>
00020 #include <QDateTime>
00021 #include <QString>
00022
00023 #include "serviceexp.h"
00024
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00041
00042 class SERVICE_PUBLIC Service : public QObject
00043 {
00044 Q_OBJECT
00045
00046 public:
00047
00048 Service( QObject *parent = 0 ) : QObject( parent )
00049 {
00050 qRegisterMetaType< QFileInfo >();
00051 }
00052
00053 public:
00054
00056
00058
00059 virtual QVariant ConvertToVariant ( int nType, void *pValue );
00060
00061 virtual void* ConvertToParameterPtr( int nTypeId,
00062 const QString &sParamType,
00063 void* pParam,
00064 const QString &sValue );
00065
00066 static bool ToBool( const QString &sVal );
00067
00068 };
00069
00071
00073
00074 Q_DECLARE_METATYPE( QFileInfo )
00075
00076 #endif