|
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 QGridLayout; |
|
28 |
|
29 class Win32Window : public QWidget |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 |
|
34 Win32Window(); |
|
35 ~Win32Window(); |
|
36 |
|
37 void addHbWindow( HbMainWindow* radioWindow ); |
|
38 |
|
39 void init(); |
|
40 |
|
41 private slots: |
|
42 |
|
43 void changeOrientation(); |
|
44 void volumeUp(); |
|
45 void volumeDown(); |
|
46 void toggleHeadsetStatus(); |
|
47 void updateWindowSize(); |
|
48 void addSong(); |
|
49 void clearSong(); |
|
50 void toggleOffline(); |
|
51 |
|
52 private: |
|
53 |
|
54 void resizeEvent( QResizeEvent* event ); |
|
55 |
|
56 private: // data |
|
57 |
|
58 QPushButton* mOrientationButton; |
|
59 |
|
60 QPushButton* mVolUpButton; |
|
61 QPushButton* mVolDownButton; |
|
62 |
|
63 QPushButton* mAddSongButton; |
|
64 QPushButton* mClearSongButton; |
|
65 |
|
66 QPushButton* mHeadsetButton; |
|
67 bool mHeadsetConnected; |
|
68 |
|
69 QPushButton* mOfflineButton; |
|
70 |
|
71 QGridLayout* mToolbarLayout; |
|
72 |
|
73 int mVolume; |
|
74 |
|
75 int mToolbarHeight; |
|
76 |
|
77 HbMainWindow* mRadioWindow; |
|
78 |
|
79 Qt::Orientation mOrientation; |
|
80 |
|
81 int mSongIndex; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // WIN32_WINDOW_H |