src/hbservers/hbthemeserver/main.cpp
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 7 923ff622b8b9
child 21 4633027730f5
equal deleted inserted replaced
9:730c025d4b77 15:f378acbc9cfb
    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