radioapp/radioapplication/inc/testwindow_win32.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 WIN32_WINDOW_H
       
    19 #define WIN32_WINDOW_H
       
    20 
       
    21 // System includes
       
    22 #include <QWidget>
       
    23 
       
    24 // Forward declarations
       
    25 class HbMainWindow;
       
    26 class QPushButton;
       
    27 class QComboBox;
       
    28 class QGridLayout;
       
    29 
       
    30 class Win32Window : public QWidget
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34 
       
    35     Win32Window();
       
    36     ~Win32Window();
       
    37 
       
    38     void addHbWindow( HbMainWindow* radioWindow );
       
    39 
       
    40     void init();
       
    41 
       
    42 private slots:
       
    43 
       
    44     void changeOrientation();
       
    45     void volumeUp();
       
    46     void volumeDown();
       
    47     void toggleHeadsetStatus();
       
    48     void updateWindowSize();
       
    49     void addSong();
       
    50     void clearSong();
       
    51     void toggleOffline();
       
    52     void changeTheme( const QString& theme );
       
    53 
       
    54 private:
       
    55 
       
    56     void initThemes();
       
    57     QStringList themeRootPaths();
       
    58 
       
    59 private: // data
       
    60 
       
    61     QPushButton*    mOrientationButton;
       
    62 
       
    63     QPushButton*    mVolUpButton;
       
    64     QPushButton*    mVolDownButton;
       
    65 
       
    66     QPushButton*    mAddSongButton;
       
    67     QPushButton*    mClearSongButton;
       
    68 
       
    69     QPushButton*    mHeadsetButton;
       
    70     bool            mHeadsetConnected;
       
    71 
       
    72     QPushButton*    mOfflineButton;
       
    73 
       
    74     QComboBox*      mThemeBox;
       
    75 
       
    76     QGridLayout*    mToolbarLayout;
       
    77 
       
    78     int             mVolume;
       
    79 
       
    80     HbMainWindow*   mRadioWindow;
       
    81 
       
    82     Qt::Orientation mOrientation;
       
    83 
       
    84     int             mSongIndex;
       
    85 
       
    86 };
       
    87 
       
    88 #endif // WIN32_WINDOW_H