diff -r 000000000000 -r 2f259fa3e83a psln/PslnGSPlugin/inc/PslnGSPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/psln/PslnGSPlugin/inc/PslnGSPlugin.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,161 @@ +/* +* Copyright (c) 2005-2007 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: PslnGSPlugin implementation. +* +*/ + +#ifndef C_PSLNGSPLUGIN_H +#define C_PSLNGSPLUGIN_H + +#include +#include +#include +#include +#include + +class CAknNavigationDecorator; +class CAknViewAppUi; +class CAknNullService; + +// This plugin's UID. +const TUid KPslnGSPluginUID = { 0x102818ED }; + +// CLASS DECLARATION + +/** +* CPslnGSPlugin. +* +* +* +*/ +class CPslnGSPlugin : public CGSPluginInterface, + public MAknServerAppExitObserver + { + public: + + /** + * Symbian OS two-phased constructor + * @param aInitParams initialization parameters. + * @return new instance of CPslnGSPlugin. + */ + static CPslnGSPlugin* NewL( TAny* aInitParams ); + + /** + * Destructor. + */ + ~CPslnGSPlugin(); + + /** + * From CAknView. + * This view's Id. + * @return This plugin's UID. + */ + TUid Id() const; + + /** + * From CGSPluginInterface. + * @param aCaption this plugin's caption. + */ + void GetCaptionL( TDes& aCaption ) const; + + /** + * From CGSPluginInterface. + * @return this plugin's provider category. + */ + TInt PluginProviderCategory() const; + + /** + * From CGSPluginInterface. + * @return this plugin's item type. + */ + TGSListboxItemTypes ItemType(); + + /** + * From CGSPluginInterface. + * @param aKey key name. + * @param aValue key value. + */ + void GetValue( const TGSPluginValueKeys aKey, + TDes& aValue ); + + /** + * From CGSPluginInterface. + * @param aSelectionType selection type. + */ + void HandleSelection( const TGSSelectionTypes aSelectionType ); + + /** + * From CGSPluginInterface. + * @param aIconType UID Icon type UID of the icon to be created. + * @return Pointer of the icon. NOTE: Ownership of this icon is + * transferred to the caller. + */ + CGulIcon* CreateIconL( const TUid aIconType ); + + private: + + /** + * C++ default constructor. + */ + CPslnGSPlugin(); + + /** + * Symbian OS default constructor. + */ + void ConstructL(); + + /** + * From CAknView. + * This implementation is empty because this class, being just a dialog, + * does not implement the CAknView finctionality. + */ + void DoActivateL( const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + /** + * From CAknView. + * This implementation is empty because this class, being just a dialog, + * does not implement the CAknView finctionality. + */ + void DoDeactivate(); + + /** + * Opens localized resource file. + */ + void OpenLocalizedResourceFileL( + const TDesC& aResourceFileName, + RConeResourceLoader& aResourceLoader ); + + /** + * Launches provisioning application. + */ + void LaunchThemesAppL(); + + private: // Data + + /** + * Resource loader for this plugin's resources. + */ + RConeResourceLoader iResources; + + /** + * AVKON NULL Service. + * Own. + */ + CAknNullService* iNullService; + }; + +#endif // C_PSLNGSPLUGIN_H +// End of File