src/gui/s60framework/qs60mainapplication.h
changeset 33 3e2da88830cd
parent 18 2f34d5167611
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    42 #ifndef QS60MAINAPPLICATION_H
    42 #ifndef QS60MAINAPPLICATION_H
    43 #define QS60MAINAPPLICATION_H
    43 #define QS60MAINAPPLICATION_H
    44 
    44 
    45 #include <QtCore/qglobal.h>
    45 #include <QtCore/qglobal.h>
    46 
    46 
       
    47 #ifdef Q_OS_SYMBIAN
       
    48 
    47 #ifdef Q_WS_S60
    49 #ifdef Q_WS_S60
    48 
       
    49 #include <aknapp.h>
    50 #include <aknapp.h>
       
    51 typedef CAknApplication QS60MainApplicationBase;
       
    52 #else
       
    53 #include <eikapp.h>
       
    54 typedef CEikApplication QS60MainApplicationBase;
       
    55 #endif
    50 
    56 
    51 QT_BEGIN_HEADER
    57 QT_BEGIN_HEADER
    52 
    58 
    53 QT_BEGIN_NAMESPACE
    59 QT_BEGIN_NAMESPACE
    54 
    60 
    55 QT_MODULE(Gui)
    61 QT_MODULE(Gui)
    56 
    62 
    57 class Q_GUI_EXPORT QS60MainApplication : public CAknApplication
    63 class Q_GUI_EXPORT QS60MainApplication : public QS60MainApplicationBase
    58 {
    64 {
    59 public:
    65 public:
    60     QS60MainApplication();
    66     QS60MainApplication();
    61     // The virtuals are for qdoc.
    67     // The virtuals are for qdoc.
    62     virtual ~QS60MainApplication();
    68     virtual ~QS60MainApplication();
    63 
    69 
    64     virtual TUid AppDllUid() const;
    70     virtual TUid AppDllUid() const;
    65 
    71 
    66     virtual TFileName ResourceFileName() const;
    72     virtual TFileName ResourceFileName() const;
    67 
    73 
       
    74 public:
       
    75 
       
    76     virtual void PreDocConstructL();
       
    77 
       
    78     virtual CDictionaryStore *OpenIniFileLC(RFs &aFs) const;
       
    79 
       
    80     virtual void NewAppServerL(CApaAppServer *&aAppServer);
       
    81 
    68 protected:
    82 protected:
    69 
    83 
    70     virtual CApaDocument *CreateDocumentL();
    84     virtual CApaDocument *CreateDocumentL();
    71 };
    85 };
    72 
    86 
    73 QT_END_NAMESPACE
    87 QT_END_NAMESPACE
    74 
    88 
    75 QT_END_HEADER
    89 QT_END_HEADER
    76 
    90 
    77 #endif // Q_WS_S60
    91 #endif // Q_OS_SYMBIAN
    78 
    92 
    79 #endif // QS60MAINAPPLICATION_H
    93 #endif // QS60MAINAPPLICATION_H