author | zecke <zecke> | 2004-10-23 21:51:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-23 21:51:16 (UTC) |
commit | 9c5964f8d2be467aa53d3d8255b499890556e320 (patch) (unidiff) | |
tree | 91507b2507cbfda0896541dde082e065444126df /noncore/tools/pimconverter/converter.h | |
parent | cbcdbc9d68e493a4229b24a57075d617ae99ca70 (diff) | |
download | opie-9c5964f8d2be467aa53d3d8255b499890556e320.zip opie-9c5964f8d2be467aa53d3d8255b499890556e320.tar.gz opie-9c5964f8d2be467aa53d3d8255b499890556e320.tar.bz2 |
-Move code for converting sqlite2 to sqlite3 to a method on its own
-Use Global::applicationFileName to get the filenames for the data
-Use tr around messages
-Do not use custom labels for "Ok" but use Qts QMessageBox ones to get
its translation for free
TODO: Test on ARM
Diffstat (limited to 'noncore/tools/pimconverter/converter.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/tools/pimconverter/converter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/tools/pimconverter/converter.h b/noncore/tools/pimconverter/converter.h index 9d75d79..e9035e7 100755 --- a/noncore/tools/pimconverter/converter.h +++ b/noncore/tools/pimconverter/converter.h | |||
@@ -19,28 +19,31 @@ public: | |||
19 | 19 | ||
20 | void closeEvent( QCloseEvent *e ); | 20 | void closeEvent( QCloseEvent *e ); |
21 | 21 | ||
22 | private: | 22 | private: |
23 | // Caution: | 23 | // Caution: |
24 | // The order and value of the following enums must be regarding | 24 | // The order and value of the following enums must be regarding |
25 | // the predefinition in the UI-File !! | 25 | // the predefinition in the UI-File !! |
26 | // If you don't understand what I am talking about: Keep your fingers away!! | 26 | // If you don't understand what I am talking about: Keep your fingers away!! |
27 | enum DataBases{ | 27 | enum DataBases{ |
28 | ADDRESSBOOK = 0, | 28 | ADDRESSBOOK = 0, |
29 | TODOLIST = 1, | 29 | TODOLIST = 1, |
30 | DATEBOOK = 2, | 30 | DATEBOOK = 2, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | enum DbFormats{ | 33 | enum DbFormats{ |
34 | XML = 0, | 34 | XML = 0, |
35 | SQL = 1, | 35 | SQL = 1, |
36 | }; | 36 | }; |
37 | 37 | ||
38 | int m_selectedDatabase; | 38 | int m_selectedDatabase; |
39 | int m_selectedSourceFormat; | 39 | int m_selectedSourceFormat; |
40 | int m_selectedDestFormat; | 40 | int m_selectedDestFormat; |
41 | bool m_criticalState; | 41 | bool m_criticalState; |
42 | 42 | ||
43 | |||
44 | private: | ||
45 | static bool sqliteCopyAndConvert( const QString &src, const QString &destination, QString &lastCommand ); | ||
43 | }; | 46 | }; |
44 | 47 | ||
45 | 48 | ||
46 | #endif | 49 | #endif |