radioapp/radioapplication/inc/radioapplication.h
branchRCL_3
changeset 20 93c594350b9a
parent 19 cce62ebc198e
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
     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>
       
    23 
       
    24 //#define QT_SHAREDPOINTER_TRACK_POINTERS // Debugging support for QSharedPointer
       
    25 #include <QSharedPointer>
       
    26 
       
    27 // Forward declarations
       
    28 class RadioWindow;
       
    29 class RadioStationModel;
       
    30 class XQSettingsManager;
       
    31 
       
    32 #ifdef BUILD_WIN32
       
    33     class Win32Window;
       
    34 #endif // BUILD_WIN32
       
    35 
       
    36 // Class declaration
       
    37 class RadioApplication : public HbApplication
       
    38 {
       
    39     Q_OBJECT
       
    40     Q_DISABLE_COPY( RadioApplication )
       
    41 
       
    42 public:
       
    43 
       
    44     explicit RadioApplication( int &argc, char *argv[] );
       
    45 
       
    46     ~RadioApplication();
       
    47 
       
    48 private slots:
       
    49 
       
    50     void checkOfflineMode();
       
    51     void handleOfflineQueryAnswer();
       
    52 
       
    53 private:
       
    54 
       
    55     void init();
       
    56     bool isInOfflineMode() const;
       
    57     void askOfflineModePermission( const QString& question );
       
    58 
       
    59 private: // data
       
    60 
       
    61 #ifdef BUILD_WIN32
       
    62     QScopedPointer<Win32Window>         mWin32Window;
       
    63 #endif // BUILD_WIN32
       
    64 
       
    65     /**
       
    66      * Application main window
       
    67      * Own
       
    68      */
       
    69     QScopedPointer<RadioWindow>         mMainWindow;
       
    70 
       
    71     /**
       
    72      * Pointer to settings manager
       
    73      * Own.
       
    74      */
       
    75     XQSettingsManager*                  mSettingsManager;
       
    76 
       
    77 };
       
    78 
       
    79 #endif // _RADIOAPPLICATION_H_