diff -r 000000000000 -r 96612d01cf9f mediasettings/mediasettingsapp/inc/MPSettingsStreamingView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mediasettings/mediasettingsapp/inc/MPSettingsStreamingView.h Mon Jan 18 20:21:12 2010 +0200 @@ -0,0 +1,109 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: Declares view for application.* +*/ + + +// Version : %version: 2 % + + + +#ifndef MPSETTINGSSTREAMINGVIEW_H +#define MPSETTINGSSTREAMINGVIEW_H + +// INCLUDES +#include //MEikListBoxObserver +#include "MPSettingsBaseView.h" //CMPSettingsBaseView + +// CLASS DECLARATION +class CMPSettingsModelForROP; + +/** +* CMPSettingsStreamingView view class. +* +* @lib MediaSettings.app +* @since 2.0 +*/ +class CMPSettingsStreamingView : public CMPSettingsBaseView, public MEikListBoxObserver + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CMPSettingsStreamingView* NewLC(CMPSettingsModelForROP* aModel ); + + /** + * Destructor. + */ + virtual ~CMPSettingsStreamingView(); + + public: // Functions from base classes + + /** + * From CAknView + */ + TUid Id() const; + + /** + * From MEikMenuObserver + */ + void HandleCommandL(TInt aCommand); + + protected: // from MEikListBoxObserver + + /** + * Handles listbox events. + * @param aListBox Listbox where the event occurred. + * @param aEventType Event type. + */ + void HandleListBoxEventL(CEikListBox* aListBox, + TListBoxEvent aEventType); + + protected: // From CMPSettingsBaseView + + /** + * Called at the end of DoActivateL. + */ + void DynInitContainerL(); + + /** + * Creates new view specific container class. + */ + CMPSettingsBaseContainer* NewContainerL(); + + private: + /** + * C++ default constructor. + */ + CMPSettingsStreamingView(CMPSettingsModelForROP* aModel ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + private: // New + + /** + * Handles listbox selection. + */ + virtual void HandleListBoxSelectionL(); + CMPSettingsModelForROP* iModel; + + }; + +#endif + +// End of File