converterbase.h
00001 #ifndef VR3_CONVERTER_BASE_H
00002 #define VR3_CONVERTER_BASE_H
00003
00004 #include <sys/types.h>
00005 #include <time.h>
00006
00007 #include <qdatetime.h>
00008 #include <qstring.h>
00009
00010 #include <kontainer.h>
00011 #include <syncer.h>
00012
00013 #include <idhelper.h>
00014
00015 class KTempFile;
00016 namespace Vr3 {
00022 class ConverterBase {
00023 public:
00028 ConverterBase( KSync::KonnectorUIDHelper* helper,
00029 const QString& timeZone );
00030 ~ConverterBase();
00031
00032 protected:
00033 time_t toUTC( const QDateTime& time );
00034 QDateTime fromUTC( time_t );
00035
00037 KTempFile* file();
00038
00040 QString timeZone()const;
00041
00043 QString konnectorId( const QString& appName, const QString& uid );
00044
00046 QString kdeId( const QString& appName, const QString& uid );
00047
00048 private:
00049 KSync::KonnectorUIDHelper* m_helper;
00050 QString m_tz;
00051
00052
00053 };
00054 }
00055
00056
00057 #endif
This file is part of the documentation for kitchensync Library Version 3.3.2.