00001 #ifndef _CONVERTER_H_ 00002 #define _CONVERTER_H_ 00003 00004 00005 #include "converter_base.h" 00006 00007 00008 class Converter: public converter_base { 00009 public: 00010 Converter(QWidget *parent, const char* name, WFlags fl); 00011 static QString appName() { return QString::fromLatin1("opimconverter");} 00012 00013 // Slots defined in the ui-description file 00014 void start_conversion(); 00015 void start_upgrade(); 00016 void selectedDatabase( int num ); 00017 void selectedDestFormat( int num ); 00018 void selectedSourceFormat( int num ); 00019 00020 void closeEvent( QCloseEvent *e ); 00021 00022 private: 00023 // Caution: 00024 // The order and value of the following enums must be regarding 00025 // the predefinition in the UI-File !! 00026 // If you don't understand what I am talking about: Keep your fingers away!! 00027 enum DataBases{ 00028 ADDRESSBOOK = 0, 00029 TODOLIST = 1, 00030 DATEBOOK = 2, 00031 }; 00032 00033 enum DbFormats{ 00034 XML = 0, 00035 SQL = 1, 00036 }; 00037 00038 int m_selectedDatabase; 00039 int m_selectedSourceFormat; 00040 int m_selectedDestFormat; 00041 bool m_criticalState; 00042 00043 00044 private: 00045 bool sqliteMoveAndConvert( const QString& name, const QString &src, const QString &destination ); 00046 }; 00047 00048 00049 #endif
1.4.2