diff -r 8ee96d21d9bf -r 7e0eff37aedb gssettingsuis/Gs/GSPDataHSDPAPlugin/inc/GSPDataHSDPAModel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gssettingsuis/Gs/GSPDataHSDPAPlugin/inc/GSPDataHSDPAModel.h Wed Sep 01 12:20:44 2010 +0100 @@ -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 +#include +#include +#include +#include +#include +// 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