pnpmobileservices/pnpms/ServiceHelpPlugin/inc/ServiceHelpPlugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:24:21 +0300
branchRCL_3
changeset 54 9360ca28b668
parent 0 3ce708148e4d
permissions -rw-r--r--
Revision: 201024 Kit: 2010127

/*
* Copyright (c) 2008 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:  ServiceHelpPlugin implementation.
*
*/

#ifndef ServiceHelpPlugin_H
#define ServiceHelpPlugin_H

// User includes

// System includes
#include <gsplugininterface.h>
#include <aknview.h>
#include <ConeResLoader.h>
#include <eikclb.h>
#include <AknServerApp.h>
#include <AknCapServerClient.h>
#include <gsbasecontainer.h>

// Classes referenced
class CAknNavigationDecorator;
class CAknViewAppUi;

// Constants
const TUid KServiceHelpPluginUID       = { 0x20019598 };
_LIT( KOperatorLogoResourceFileName, "z:PnpProvisioning.rsc" );
_LIT( KServiceHelpPluginIconDirAndName, "z:ServiceHelpPlugin.mif"); // Use KDC_BITMAP_DIR



// CLASS DECLARATION


/**
* CServiceHelpPlugin.
*
* This class handles state and application logic of OperatorLogo settings.
* The plugin is a type of EGSItemTypeSettingDialog and therefore the GS FW will
* call HandleSelection() instead of DoActivate(). No CAknView functionality is
* supported even though the base class is CAknView derived via
* CGSPluginInterface.
*
*/
class CServiceHelpPlugin : public CGSPluginInterface,
                        public MAknServerAppExitObserver// Embedding
    {
    public: // Constructors and destructor

        /**
        * Symbian OS two-phased constructor
        * @return
        */
        static CServiceHelpPlugin* NewL( TAny* aInitParams );

        /**
        * Destructor.
        */
        ~CServiceHelpPlugin();

    public: // From CAknView

        /**
        * See base class.
        */
        TUid Id() const;

    public: // From CGSPluginInterface

        /**
        * See base class.
        */
        void GetCaptionL( TDes& aCaption ) const;

        /**
        * See base class.
        */
        TInt PluginProviderCategory() const;

        /**
        * See base class.
        */
        TGSListboxItemTypes ItemType();

        /**
        * See base class.
        */
        void GetValue( const TGSPluginValueKeys aKey,
                       TDes& aValue );

        /**
        * See base class.
        */
        void HandleSelection( const TGSSelectionTypes aSelectionType );
        
        /**
        * See base class.
        */
        CGulIcon* CreateIconL( const TUid aIconType );

	/**
	 *Launch Online Support 
         */
	void LaunchOnlineSupportL();
  	
	
        
    protected: // New

        /**
        * C++ default constructor.
        */
        CServiceHelpPlugin();

        /**
        * Symbian OS default constructor.
        */
        void ConstructL();

    protected: // 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 );

        /**
        * This implementation is empty because this class, being just a dialog,
        * does not implement the CAknView finctionality.
        */
        void DoDeactivate();

    private: // New

        /**
        * Opens localized resource file.
        */
        void OpenLocalizedResourceFileL(
            const TDesC& aResourceFileName,
            RConeResourceLoader& aResourceLoader );

        
	  /**
    	    * Suppress the menu/app key when reminder dialog is displayed
	    * @param ETrue to Suppress, else EFalse
	    * @return None
    	    */
	
	void SuppressAppKey(TBool aValue);

	private:	//data
		
    	//Holds the state of menu/app key supress
	TBool iIsAppKeySuppressed;
        
      protected: // Data
     
        // Resource loader.
        RConeResourceLoader iResources;        
        
    };

#endif // ServiceHelpPlugin_H
// End of File