radioapp/radioapplication/inc/radioapplication.h
changeset 13 46974bebc798
child 14 63aabac4416d
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _RADIOAPPLICATION_H_
       
    19 #define _RADIOAPPLICATION_H_
       
    20 
       
    21 // System includes
       
    22 #include <hbapplication.h>
       
    23 
       
    24 //#define QT_SHAREDPOINTER_TRACK_POINTERS // Debugging support for QSharedPointer
       
    25 #include <qsharedpointer.h>
       
    26 
       
    27 // Forward declarations
       
    28 class RadioUiEngine;
       
    29 class RadioMainWindow;
       
    30 class RadioStationModel;
       
    31 
       
    32 typedef QSharedPointer<RadioMainWindow> RadioMainWindowPtr;
       
    33 
       
    34 #ifdef BUILD_WIN32
       
    35     class Win32Window;
       
    36 #endif // BUILD_WIN32
       
    37 
       
    38 // Class declaration
       
    39 class RadioApplication : public HbApplication
       
    40 {
       
    41     Q_OBJECT
       
    42     Q_DISABLE_COPY( RadioApplication )
       
    43 
       
    44 public:
       
    45 
       
    46     explicit RadioApplication( int argc, char* argv[] );
       
    47 
       
    48     ~RadioApplication();
       
    49 
       
    50 private: // data
       
    51 
       
    52 #ifdef BUILD_WIN32
       
    53     QScopedPointer<Win32Window> mWin32Window;
       
    54 #endif // BUILD_WIN32
       
    55 
       
    56     /**
       
    57      * Application main window
       
    58      * Own
       
    59      */
       
    60     RadioMainWindowPtr  mMainWindow;
       
    61 
       
    62     /**
       
    63      * Radio engine
       
    64      * Own
       
    65      */
       
    66     RadioUiEngine*      mUiEngine;
       
    67 
       
    68 };
       
    69 
       
    70 #endif // _RADIOAPPLICATION_H_