|
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 #ifndef IROPENWEBADDRESSVIEW_H_ |
|
18 #define IROPENWEBADDRESSVIEW_H_ |
|
19 |
|
20 #include "irbaseview.h" |
|
21 #include "irqevent.h" |
|
22 |
|
23 class IRQPreset; |
|
24 class HbLineEdit; |
|
25 class IrLineEditor; |
|
26 class HbPushButton; |
|
27 |
|
28 /** |
|
29 * This class is for users to input a station manually. |
|
30 */ |
|
31 |
|
32 class IROpenWebAddressView : public IRBaseView |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 ~IROpenWebAddressView(); |
|
38 |
|
39 // from base class IRBaseView |
|
40 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
|
41 |
|
42 protected: |
|
43 IROpenWebAddressView(IRApplication* aApplication, TIRViewId aViewId); |
|
44 |
|
45 private: |
|
46 void initDetails(); |
|
47 void initButtons(); |
|
48 bool initPreset(IRQPreset &aPreset); |
|
49 |
|
50 private slots: |
|
51 // add the station to favorites |
|
52 void add2Fav(); |
|
53 |
|
54 // play this station |
|
55 void play(); |
|
56 |
|
57 // get network controller event. |
|
58 void networkRequestNotified(IRQNetworkEvent aEvent); |
|
59 |
|
60 // used to check the url editor status |
|
61 void urlEditorTextChanged(const QString &aString); |
|
62 |
|
63 // clear name editor |
|
64 void nameEditorClicked(); |
|
65 |
|
66 void handleOrientationChanged(Qt::Orientation aOrientation); |
|
67 |
|
68 private: |
|
69 // station information |
|
70 HbLineEdit* iUrl; |
|
71 IrLineEditor* iName; |
|
72 HbLineEdit* iDescription; |
|
73 bool iNameClicked; |
|
74 |
|
75 HbPushButton* iPlayButton; |
|
76 HbPushButton* iAdd2FavButton; |
|
77 friend class IRViewManager; |
|
78 }; |
|
79 |
|
80 #endif /* IROPENWEBADDRESSVIEW_H_ */ |