src/hbapps/hbthemechanger/themechangermain.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    26 #include <hbapplication.h>
    26 #include <hbapplication.h>
    27 #include <hbmainwindow.h>
    27 #include <hbmainwindow.h>
    28 #include "themechangerdefs.h"
    28 #include "themechangerdefs.h"
    29 #include "themeselectionlist.h"
    29 #include "themeselectionlist.h"
    30 #include <QTextStream>
    30 #include <QTextStream>
    31 #ifdef Q_OS_SYMBIAN
       
    32 #include "themeclientsymbian.h"
       
    33 #else
       
    34 #include "themeclientqt.h"
       
    35 #endif
       
    36 
    31 
    37 #ifdef THEME_CHANGER_TIMER_LOG
    32 #ifdef THEME_CHANGER_TIMER_LOG
    38 void debugOutput(QtMsgType type, const char *msg)
    33 void debugOutput(QtMsgType type, const char *msg)
    39  {
    34  {
    40     QFile file("c:/data/logs/hbthemechanger.txt");
    35     QFile file("c:/data/logs/hbthemechanger.txt");
    68     app.setApplicationName("ThemeChanger");
    63     app.setApplicationName("ThemeChanger");
    69     // Main window widget. 
    64     // Main window widget. 
    70     // Includes decorators such as signal strength and battery life indicator.
    65     // Includes decorators such as signal strength and battery life indicator.
    71     HbMainWindow mainWindow;
    66     HbMainWindow mainWindow;
    72     
    67     
    73 #ifdef Q_OS_SYMBIAN
       
    74     ThemeClientSymbian* client = new ThemeClientSymbian();
       
    75 #else
       
    76     // Create the theme server that does the notifiation to all the QT apps
       
    77     ThemeClientQt* client = new ThemeClientQt();
       
    78 #endif
       
    79 
       
    80     // Show the list of themes available
    68     // Show the list of themes available
    81     ThemeSelectionList *themelist=new ThemeSelectionList(client);
    69     ThemeSelectionList *themelist=new ThemeSelectionList();
    82     themelist->displayThemes();
    70     themelist->displayThemes();
    83     
    71     
    84     mainWindow.addView( themelist );
    72     mainWindow.addView( themelist );
    85 
    73 
    86     // Show widget
    74     // Show widget