gssettingsuis/Gs/GSPDataHSDPAPlugin/inc/GSPDataHSDPAModel.h
changeset 0 8c5d936e5675
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gssettingsuis/Gs/GSPDataHSDPAPlugin/inc/GSPDataHSDPAModel.h	Thu Dec 17 08:52:52 2009 +0200
@@ -0,0 +1,113 @@
+/*
+* 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:  GSPDataHSDPAPlugin model.
+*
+*/
+
+#ifndef  GSPDATAHSDPAMODEL_H
+#define  GSPDATAHSDPAMODEL_H
+
+// INCLUDES
+// INCLUDES
+#include    <centralrepository.h>
+#include    <e32property.h>
+#include    <etel.h>
+#include    <etelpckt.h>
+#include    <mmtsy_names.h>
+#include    <rmmcustomapi.h>
+// CONSTANTS
+
+const TInt KSettingHsdpaDisable = 0;
+const TInt KSettingHsdpaEnable = 1;
+
+
+// CLASS DEFINITIONS
+
+class CRfsHandler;
+class RMmCustomAPI;
+class RMobilePhone;
+/**
+*  CGSPDataHSDPAModel is the model class of GS app.
+*  It provides functions to get and set setting values.
+*/
+class   CGSPDataHSDPAModel : public CBase
+    {
+    public:  // Constructor and destructor
+        /**
+        * Two-phased constructor
+        */
+        static CGSPDataHSDPAModel* NewL();
+
+        /**
+        * Destructor
+        */
+        ~CGSPDataHSDPAModel();
+
+    public: //new
+                /**
+        * Returns packet data HSDPA state.
+        * @return 0: Disabled
+        *         1: Enabled
+        */
+        TInt CurrentHSDPAItemL();
+        
+        /**
+        * Set packet data HSDPA state.
+        * @param ahsdpaValue 0: Disabled
+        *                    1: Enabled
+        */
+        void SetHSDPAItemValueL( TInt aHsdpaValue );
+        
+                /**
+        * Returns packet data HSDPA state.
+        * @return 1: Show
+        *         0 : Hide
+        */
+        TInt HSDPAItemVisibilityL();
+        
+        /**
+        * Set packet data HSDPA Visibility.
+        * @param aHsdpaVisible 0: Hide
+        *                      1: Show
+        */
+        void SetHSDPAItemVisibilityL( TInt aHsdpaVisible );
+
+    private: // Private constructors
+        /**
+        * Default C++ contructor
+        */
+        CGSPDataHSDPAModel();
+
+        /**
+        * Symbian OS default constructor
+        * @return void
+        */
+        void ConstructL();
+
+    private: // Data
+        // Handle to tel server.
+        RTelServer iTelServer;
+        
+        //Handle to Custom API
+        RMmCustomAPI iCustomAPI;
+        
+        // Handle to Mobile phone.
+        RMobilePhone iMobilePhone ;
+        
+        // Networking repository
+        CRepository* iNetworkRepository;
+
+    };
+#endif // GSPDATAHSDPAMODEL_H
+// End of File