voiceui/vccontrolpanelplugin/inc/vccontrolpanelplugin.h
branchRCL_3
changeset 23 e36f3802f733
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/voiceui/vccontrolpanelplugin/inc/vccontrolpanelplugin.h	Wed Sep 01 12:29:17 2010 +0100
@@ -0,0 +1,158 @@
+/*
+* Copyright (c) 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:  VCommand control panel plugin implementation.
+*
+*/
+
+#ifndef VCCONTROLPANELPLUGIN_H
+#define VCCONTROLPANELPLUGIN_H
+
+#include <gsplugininterface.h>
+#include <aknview.h>
+#include <ConeResLoader.h>
+#include <eikclb.h>
+#include <AknServerApp.h>
+#include "vccontrolpanelpluginuids.hrh"
+
+class CAknNavigationDecorator;
+class CAknViewAppUi;
+class CAknNullService;
+
+// This plugin's UID.
+const TUid KDllTUid = { KDllUid };
+// UID of VCommand application
+const TUid KVCommandAppTUid = { KVCommandAppUid };
+
+// CLASS DECLARATION
+/**
+* CVcControlPanelPlugin.
+*/
+class CVcControlPanelPlugin : public CGSPluginInterface,
+                      public MAknServerAppExitObserver
+    {
+    public:
+
+        /**
+        * Symbian OS two-phased constructor
+        * @param aInitParams initialization parameters.
+        * @return new instance of CVcControlPanelPlugin.
+        */
+        static CVcControlPanelPlugin* NewL( TAny* aInitParams );
+
+        /**
+        * Destructor.
+        */
+        ~CVcControlPanelPlugin();
+
+        /**
+        * 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.
+        * @param aIconType icon type
+        */
+        CGulIcon* CreateIconL( const TUid aIconType );
+
+        /**
+        * 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 );
+
+    private:
+
+        /**
+        * C++ default constructor.
+        */
+        CVcControlPanelPlugin();
+
+        /**
+        * 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 LaunchVCommandAppL();
+
+    private: // Data
+
+        /**
+        * Resource loader for this plugin's resources.
+        */
+        RConeResourceLoader iResources;
+
+        /**
+        * AVKON NULL Service.
+        * Own.
+        */
+        CAknNullService* iNullService;
+    };
+
+#endif // VCCONTROLPANELPLUGIN_H
+// End of File