radioapp/radiowidgets/inc/radiowindow.h
changeset 38 f8c3d4e6102c
parent 34 bc10a61bd7d3
child 51 bbebb0235466
equal deleted inserted replaced
36:ba22309243a1 38:f8c3d4e6102c
    22 #include <HbMainWindow>
    22 #include <HbMainWindow>
    23 #include <HbEffect>
    23 #include <HbEffect>
    24 #include <QWeakPointer>
    24 #include <QWeakPointer>
    25 #include <QScopedPointer>
    25 #include <QScopedPointer>
    26 #include <QSharedPointer>
    26 #include <QSharedPointer>
    27 #include <qsysteminfo.h>
       
    28 using namespace QtMobility; // has to be here to be able to connect SLOT queryOfflineUsage
       
    29 
    27 
    30 // User includes
    28 // User includes
    31 #include "radiowidgetsexport.h"
    29 #include "radiowidgetsexport.h"
    32 
    30 
    33 // Forward declarations
    31 // Forward declarations
    57 
    55 
    58     ~RadioWindow();
    56     ~RadioWindow();
    59 
    57 
    60     void showErrorMessage( const QString& text );
    58     void showErrorMessage( const QString& text );
    61 
    59 
    62     void init( QSystemDeviceInfo* deviceInfo );
    60     void init();
    63 
    61 
    64     QString orientationSection();
    62     QString orientationSection();
    65 
    63 
    66 public slots:
    64 public slots:
    67 
    65 
    75 
    73 
    76     void initView();
    74     void initView();
    77     void updateOrientation( Qt::Orientation orientation );
    75     void updateOrientation( Qt::Orientation orientation );
    78     void showVolumeLevel( int volume );
    76     void showVolumeLevel( int volume );
    79     void updateAntennaStatus( bool connected );
    77     void updateAntennaStatus( bool connected );
    80     void queryOfflineUsage( QSystemDeviceInfo::Profile profile );
       
    81 
    78 
    82 private:
    79 private:
    83 
    80 
    84 // New functions
    81 // New functions
    85 
    82 
   121      * Pointer to messagebox
   118      * Pointer to messagebox
   122      * Own.
   119      * Own.
   123      */
   120      */
   124     QScopedPointer<HbMessageBox>        mMessageBox;
   121     QScopedPointer<HbMessageBox>        mMessageBox;
   125 
   122 
   126     /**
       
   127      * Pointer to qsystemdeviceinfo
       
   128      * Own.
       
   129      */
       
   130     QScopedPointer<QSystemDeviceInfo>   mDeviceInfo;
       
   131 
       
   132 };
   123 };
   133 
   124 
   134 
   125 
   135 #endif // _RADIOWINDOW_H_
   126 #endif // _RADIOWINDOW_H_