gssettingsuis/Gs/GSPDataConnectionPlugin/inc/GSPDataConnectionModel.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  GSPDataConnectionPlugin model.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef  GSPDATACONNECTIONMODEL_H
       
    19 #define  GSPDATACONNECTIONMODEL_H
       
    20 
       
    21 // INCLUDES
       
    22 // INCLUDES
       
    23 #include    <centralrepository.h>
       
    24 #include    <e32property.h>
       
    25 #include    <etel.h>
       
    26 #include    <etelpckt.h>
       
    27 #include    <mmtsy_names.h>
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 const TInt KAttachSettingWhenNeeded = 1;
       
    32 const TInt KAttachSettingWhenAvailable = 0;
       
    33 
       
    34 
       
    35 // CLASS DEFINITIONS
       
    36 
       
    37 class CRfsHandler;
       
    38 class CCommsDatabase;
       
    39 class CCommsDbTableView;
       
    40 
       
    41 
       
    42 /**
       
    43 *  CGSPDataConnectionModel is the model class of GS app.
       
    44 *  It provides functions to get and set setting values.
       
    45 */
       
    46 class   CGSPDataConnectionModel : public CBase
       
    47     {
       
    48     public:  // Constructor and destructor
       
    49         /**
       
    50         * Two-phased constructor
       
    51         */
       
    52         static CGSPDataConnectionModel* NewL();
       
    53 
       
    54         /**
       
    55         * Destructor
       
    56         */
       
    57         ~CGSPDataConnectionModel();
       
    58 
       
    59     public: //new
       
    60 
       
    61         /**
       
    62         * Gets AI state.
       
    63         */
       
    64         TInt PDataAttachL();
       
    65 
       
    66         /**
       
    67         * Sets AI state.
       
    68         */
       
    69         void SetPDataAttachL( const TInt aAttach );
       
    70 
       
    71 
       
    72     private: // Private constructors
       
    73         /**
       
    74         * Default C++ contructor
       
    75         */
       
    76         CGSPDataConnectionModel();
       
    77 
       
    78         /**
       
    79         * Symbian OS default constructor
       
    80         * @return void
       
    81         */
       
    82         void ConstructL();
       
    83 
       
    84     private: // Data
       
    85 
       
    86         // Flag to indicate whether the feature KFeatureIdLoggerGprs is supported
       
    87         TBool iIsFeatureIdLoggerGprs;
       
    88 
       
    89         // Handle to Comms database.
       
    90         CCommsDatabase* iCommsDb;
       
    91         
       
    92         // Handle to packet service.
       
    93         RPacketService iPktService;
       
    94         
       
    95         // Handle to phone.
       
    96         RPhone iPhone;
       
    97         
       
    98         // Handle to tel server.
       
    99         RTelServer iTelServer;
       
   100 
       
   101     };
       
   102 #endif // GSPDATACONNECTIONMODEL_H
       
   103 
       
   104 // End of File