Diffstat (limited to 'noncore/tools/pimconverter/converter.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/pimconverter/converter.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/noncore/tools/pimconverter/converter.cpp b/noncore/tools/pimconverter/converter.cpp index ded59b6..e9de3c3 100644 --- a/noncore/tools/pimconverter/converter.cpp +++ b/noncore/tools/pimconverter/converter.cpp | |||
@@ -1,8 +1,7 @@ | |||
1 | #include "converter.h" | 1 | #include "converter.h" |
2 | 2 | ||
3 | /* OPIE */ | 3 | /* OPIE */ |
4 | #include <qpe/qpeapplication.h> | 4 | #include <opie2/oapplicationfactory.h> |
5 | |||
6 | #include <opie2/odebug.h> | 5 | #include <opie2/odebug.h> |
7 | #include <opie2/opimglobal.h> | 6 | #include <opie2/opimglobal.h> |
8 | // Include SQL related header files | 7 | // Include SQL related header files |
@@ -17,10 +16,13 @@ | |||
17 | #include <qmessagebox.h> | 16 | #include <qmessagebox.h> |
18 | 17 | ||
19 | 18 | ||
19 | OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<Converter> ) | ||
20 | |||
20 | using namespace Opie; | 21 | using namespace Opie; |
21 | using namespace Pim; | 22 | using namespace Pim; |
22 | 23 | ||
23 | Converter::Converter(): | 24 | Converter::Converter(QWidget *p, const char* n, WFlags fl): |
25 | converter_base( p, n, fl ), | ||
24 | m_selectedDatabase( ADDRESSBOOK ), | 26 | m_selectedDatabase( ADDRESSBOOK ), |
25 | m_selectedSourceFormat( XML ), | 27 | m_selectedSourceFormat( XML ), |
26 | m_selectedDestFormat( SQL ), | 28 | m_selectedDestFormat( SQL ), |
@@ -222,18 +224,3 @@ void Converter::closeEvent( QCloseEvent *e ) | |||
222 | } | 224 | } |
223 | e->accept(); | 225 | e->accept(); |
224 | } | 226 | } |
225 | |||
226 | |||
227 | |||
228 | int main( int argc, char** argv ) { | ||
229 | |||
230 | QPEApplication a( argc, argv ); | ||
231 | |||
232 | Converter dlg; | ||
233 | |||
234 | a.showMainWidget( &dlg ); | ||
235 | // dlg. showMaximized ( ); | ||
236 | |||
237 | return a.exec(); | ||
238 | |||
239 | } | ||