equal
deleted
inserted
replaced
21 ** If you have questions regarding the use of this file, please contact |
21 ** If you have questions regarding the use of this file, please contact |
22 ** Nokia at developer.feedback@nokia.com. |
22 ** Nokia at developer.feedback@nokia.com. |
23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
|
26 #include <QCoreApplication> |
|
27 #include <QStringList> |
|
28 #include <QFile> |
26 #include <hbdocumentloader.h> |
29 #include <hbdocumentloader.h> |
27 #include <QtGui> |
|
28 #include <assert.h> |
30 #include <assert.h> |
29 #include <iostream> |
31 #include <iostream> |
30 |
|
31 |
32 |
32 void showHelp() { |
33 void showHelp() { |
33 std::cout << "docml2bin.exe usage:\n\n"; |
34 std::cout << "docml2bin.exe usage:\n\n"; |
34 |
35 |
35 std::cout << "docml2bin -s sourceFile [-t targetFile]\n\n"; |
36 std::cout << "docml2bin -s sourceFile [-t targetFile]\n\n"; |
48 std::cout << "docml2bin.exe -s myfile.docml -t c:/resouces/bin/mybinary.docml\n\n"; |
49 std::cout << "docml2bin.exe -s myfile.docml -t c:/resouces/bin/mybinary.docml\n\n"; |
49 } |
50 } |
50 |
51 |
51 int main(int argc, char *argv[]) |
52 int main(int argc, char *argv[]) |
52 { |
53 { |
53 QApplication app(argc, argv, false); // GUIenabled=false |
54 QCoreApplication app(argc, argv); |
54 |
55 |
55 if (argc <= 2) { |
56 if (argc <= 2) { |
56 showHelp(); |
57 showHelp(); |
57 } else { |
58 } else { |
58 //bool backup = false; |
59 //bool backup = false; |
124 sourceFile.close(); |
125 sourceFile.close(); |
125 } |
126 } |
126 } |
127 } |
127 } |
128 } |
128 } |
129 } |
129 |
|
130 return 0; |
130 return 0; |
131 } |
131 } |
132 |
132 |