gssettingsuis/Gs/GSDataCallPlugin/Inc/GSDataCallPlugin.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gssettingsuis/Gs/GSDataCallPlugin/Inc/GSDataCallPlugin.h	Wed Sep 01 12:20:44 2010 +0100
@@ -0,0 +1,183 @@
+/*
+* Copyright (c) 2005 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:  View for Data call settings.
+*
+*/
+
+
+#ifndef GSDATACALLPLUGIN_H
+#define GSDATACALLPLUGIN_H
+
+// INCLUDES
+#include <aknsettingpage.h>
+#include <gsbaseview.h>
+#include <ConeResLoader.h>
+#include <gsplugininterface.h>
+
+
+//CONSTANTS
+const TUid KGSDataCallPluginUid = { 0x10207436 };
+_LIT( KGSDataCallPluginIconDirAndName, "z:GSDataCallPlugin.mbm"); // Use KDC_BITMAP_DIR
+
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+class CAknViewAppUi;
+class CGSDataCallPluginContainer;
+class CGSDataCallPluginModel;
+
+// CLASS DEFINITION
+/**
+*  CGSDataCallPlugin view class for data call settings
+*  @since Series 60_3.1
+*
+*/
+class CGSDataCallPlugin : public CGSBaseView,
+                          public MAknSettingPageObserver
+    {
+    public:
+        enum TGSSettingIds
+            {
+            KGSAutodisconSettingId
+            };
+
+    public: // Constructors and destructor
+
+        /**
+        * Symbian OS two-phased constructor
+        * @return GS connection view.
+        */
+        static CGSDataCallPlugin* NewL( TAny* aInitParams );
+
+        /**
+        * Destructor
+        */
+        ~CGSDataCallPlugin();
+
+    public: // From CGSPluginInterface
+
+        /**
+        * @see CGSPluginInterface header file.
+        */
+        void GetCaptionL( TDes& aCaption ) const;
+
+        /**
+        * See base class.
+        */
+        CGulIcon* CreateIconL( const TUid aIconType );
+
+        /**
+        * @see CGSPluginInterface header file.
+        */
+        TInt PluginProviderCategory() const;
+
+        /**
+        * @see CGSPluginInterface header file.
+        */
+        TBool Visible() const;
+
+    public: // from MAknSettingPageObserver
+
+        /**
+        * Handle setting page events
+        */
+        virtual void HandleSettingPageEventL( CAknSettingPage* aSettingPage,
+                                            TAknSettingPageEvent aEventType );
+
+    public: // from base classes
+
+        /**
+        * Returns view id.
+        * @return TUid
+        */
+        TUid Id() const;
+
+        /**
+        * Handles commands.
+        * @param aCommand Command to be handled.
+        *
+        */
+        void HandleCommandL( TInt aCommand );
+
+    public: // new
+
+        /**
+        * Updates listbox's item's value.
+        * @param aItemId An item which is updated.
+        *
+        */
+        void UpdateListBoxL( TInt aItemId );
+
+        /**
+        * Get CGSDataCallPlugin's ccontainer.
+        */
+        CGSDataCallPluginContainer* Container();
+
+    protected: // From CAknView
+        void DoActivateL( const TVwsViewId& aPrevViewId,
+                          TUid aCustomMessageId,
+                          const TDesC8& aCustomMessage );
+        void DoDeactivate();
+    
+    protected: // From MEikMenuObserver
+
+        void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
+
+    protected:
+
+        /**
+        * C++ default constructor.
+        */
+        CGSDataCallPlugin();
+
+        /**
+        * Symbian OS default constructor.
+        *
+        */
+        void ConstructL();
+
+        void HandleClientRectChange();
+
+    private: // from CGSBaseView
+
+        void NewContainerL();
+        void HandleListBoxSelectionL();
+
+    private: // new methods
+
+        /**
+        * Display dialup auto disconnect setting page.
+        */
+        void ShowDialupAutodisconSettingPageL();
+
+        /**
+        * Display auto disconnect time query dialog.
+        */
+        void ShowAutodisconTimeQueryL();
+
+    private:
+        // plugin model
+        CGSDataCallPluginModel *iModel;
+        // resource loader
+        RConeResourceLoader iResourceLoader;
+
+    };
+
+#endif //GSDATACALLPLUGIN_H
+
+// End of File