qtinternetradio/ui/inc/iropenwebaddressview.h
changeset 0 09774dfdd46b
child 3 ee64f059b8e1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qtinternetradio/ui/inc/iropenwebaddressview.h	Mon Apr 19 14:01:53 2010 +0300
@@ -0,0 +1,80 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+#ifndef IROPENWEBADDRESSVIEW_H_
+#define IROPENWEBADDRESSVIEW_H_
+
+#include "irbaseview.h"
+#include "irqevent.h"
+
+class IRQPreset;
+class HbLineEdit;
+class IrLineEditor;
+class HbPushButton;
+
+/**
+ * This class is for users to input a station manually.
+ */
+
+class IROpenWebAddressView : public IRBaseView
+{
+Q_OBJECT
+
+public:
+    ~IROpenWebAddressView();
+
+    // from base class IRBaseView
+    TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason);
+
+protected:
+    IROpenWebAddressView(IRApplication* aApplication, TIRViewId aViewId);
+   
+private:
+    void initDetails();
+    void initButtons();
+    bool initPreset(IRQPreset &aPreset);
+
+private slots:
+    // add the station to favorites
+    void add2Fav();
+
+    // play this station
+    void play();
+
+    // get network controller event.
+    void networkRequestNotified(IRQNetworkEvent aEvent);
+    
+    // used to check the url editor status
+    void urlEditorTextChanged(const QString &aString);
+
+    // clear name editor
+    void nameEditorClicked();
+    
+    void handleOrientationChanged(Qt::Orientation aOrientation);
+
+private:
+    // station information
+    HbLineEdit*   iUrl;
+    IrLineEditor* iName;
+    HbLineEdit*   iDescription;
+    bool          iNameClicked;
+    
+    HbPushButton* iPlayButton;
+    HbPushButton* iAdd2FavButton;
+    friend class IRViewManager;
+};
+
+#endif /* IROPENWEBADDRESSVIEW_H_ */