equal
deleted
inserted
replaced
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include "hbthemeserverapplication_p.h" |
26 #include "hbthemeserverapplication_p.h" |
27 #include <QTextStream> |
27 #include <QTextStream> |
28 #include <cstdlib> |
28 #include <cstdlib> |
|
29 #include <QDebug> |
29 |
30 |
30 void showHelp(const QString &argv0, const QString &error = QString()) |
31 void showHelp(const QString &argv0, const QString &error = QString()) |
31 { |
32 { |
32 QTextStream qerr(stderr); |
33 QTextStream qerr(stderr); |
33 qerr << "Hb Theme Server" << endl; |
34 qerr << "Hb Theme Server" << endl; |
44 qerr << " -h, -help display this information" << endl; |
45 qerr << " -h, -help display this information" << endl; |
45 } |
46 } |
46 |
47 |
47 int main(int argc, char *argv[]) |
48 int main(int argc, char *argv[]) |
48 { |
49 { |
49 if(!HbThemeServerApplication::acquireLock()) { |
50 // Hiding theme server from the start up in first phase |
|
51 #if QT_VERSION >= 0x040601 |
|
52 QApplication::setAttribute(Qt::AA_S60DontConstructApplicationPanes); |
|
53 #endif // QT_VERSION |
|
54 |
|
55 // We need to be up and running fast |
|
56 HbThemeServerApplication::setPriority(); |
|
57 |
|
58 HbThemeServerLocker locker; |
|
59 if(!locker.lock()) { |
50 return 0; |
60 return 0; |
51 } |
61 } |
52 |
62 |
53 HbThemeServerApplication app(argc, argv); |
63 HbThemeServerApplication app(argc, argv); |
54 |
64 |