dbcreator/commsdatcreator/Inc/cdcprocessorglobal.h
changeset 32 5c4486441ae6
parent 30 8dde790cab74
child 66 ed07dcc72692
equal deleted inserted replaced
31:c16e04725da3 32:5c4486441ae6
    60                                 CReaderBase* aFileReader,
    60                                 CReaderBase* aFileReader,
    61                                 RCmManagerExt& aCmManager,
    61                                 RCmManagerExt& aCmManager,
    62                                 RPointerArray< RCmConnectionMethodExt >& aPluginArray,
    62                                 RPointerArray< RCmConnectionMethodExt >& aPluginArray,
    63                                 RPointerArray< HBufC >& aPluginNames, 
    63                                 RPointerArray< HBufC >& aPluginNames, 
    64                                 RPointerArray< RCmDestinationExt >& aDestArray,
    64                                 RPointerArray< RCmDestinationExt >& aDestArray,
    65                                 RPointerArray< HBufC >& aDestNames,
    65                                 RPointerArray< HBufC >& aDestNames );
    66                                 RPointerArray< HBufC >& aDefCon );
       
    67 
    66 
    68         /**
    67         /**
    69         * Destructor.
    68         * Destructor.
    70         */
    69         */
    71         virtual ~CProcessorGlobal();
    70         virtual ~CProcessorGlobal();
    79         CProcessorGlobal( CReaderBase* aFileReader,
    78         CProcessorGlobal( CReaderBase* aFileReader,
    80                           RCmManagerExt& aCmManager,
    79                           RCmManagerExt& aCmManager,
    81                           RPointerArray< RCmConnectionMethodExt >& aPluginArray,
    80                           RPointerArray< RCmConnectionMethodExt >& aPluginArray,
    82                           RPointerArray< HBufC >& aPluginNames, 
    81                           RPointerArray< HBufC >& aPluginNames, 
    83                           RPointerArray< RCmDestinationExt >& aDestArray,
    82                           RPointerArray< RCmDestinationExt >& aDestArray,
    84                           RPointerArray< HBufC >& aDestNames,
    83                           RPointerArray< HBufC >& aDestNames );
    85                           RPointerArray< HBufC >& aDefCon);
       
    86                           
    84                           
    87         /**
    85         /**
    88         * Second phase constructor. Leaves on failure.
    86         * Second phase constructor. Leaves on failure.
    89         */
    87         */
    90         void ConstructL();
    88         void ConstructL();
   114         * @param aPrio The new priority.
   112         * @param aPrio The new priority.
   115         */
   113         */
   116         void UpdateGlobalBearerArrayL
   114         void UpdateGlobalBearerArrayL
   117                             ( TDbCreatorGlobalSettings aField, TUint32 aPrio );
   115                             ( TDbCreatorGlobalSettings aField, TUint32 aPrio );
   118                 
   116                 
   119         /**
   117                          
   120         * Sets the value of default connection type parsing and converting
       
   121         *                           the param string to the right enum. 
       
   122         * @param aPtrTag string of the type.
       
   123         */
       
   124         void SetDefaultConnectionTypeL( HBufC16* aPtrTag );
       
   125                             
       
   126         /**
       
   127         * Sets the id of default connection method. It founds the connection
       
   128         *     method or destination corresponding to the given name.
       
   129         *     Type depends on the default connection type.
       
   130         *     If the method/destination cannot be found then no id is set.
       
   131         * @param aPtrTag string of the connection method/destination name.
       
   132         */
       
   133         void SetDefaultConnectionNameL( HBufC16* aPtrTag );
       
   134 
       
   135         /**
   118         /**
   136         * Sets the WLAN Usage parameter in general connection settings.
   119         * Sets the WLAN Usage parameter in general connection settings.
   137         * @param aPtrTag string containing the parameter's value.
   120         * @param aPtrTag string containing the parameter's value.
   138         */
   121         */
   139         void SetGenConnSettingWlanUsage( HBufC16* aPtrTag );
   122         void SetGenConnSettingWlanUsage( HBufC16* aPtrTag );
   153         void SetGenConnSettingCellularDataUsageVisitor( HBufC16* aPtrTag );
   136         void SetGenConnSettingCellularDataUsageVisitor( HBufC16* aPtrTag );
   154 
   137 
   155         // Stores the general connection settings, using CMM
   138         // Stores the general connection settings, using CMM
   156         void SetGenConnSettingsL();
   139         void SetGenConnSettingsL();
   157         
   140         
   158         // Stores the default connection's values, using CMM
       
   159         void SetDefConnRecordL( const TInt aId );
       
   160         
       
   161         // Stores the WLAN parameters
   141         // Stores the WLAN parameters
   162         void SaveGlobalWlanParameterL( const TUint32 aTableType, 
   142         void SaveGlobalWlanParameterL( const TUint32 aTableType, 
   163         							   const TDbCreatorGlobalSettings aField, 
   143         							   const TDbCreatorGlobalSettings aField, 
   164         							   const HBufC16* const aValue );
   144         							   const HBufC16* const aValue );
   165 
   145 
   166     private:
   146     private:
   167         
   147         
   168         // @var Default connection's data
       
   169         TCmDefConnType iDefaultConnectionType;
       
   170         TBool iDefaultConnectionSet;
       
   171 
   148 
   172         // @var GPRS attach mode : whenneeded/whenavailable
   149         // @var GPRS attach mode : whenneeded/whenavailable
   173         TBool  iAttachWhenNeeded;
   150         TBool  iAttachWhenNeeded;
   174         
   151         
   175         RArray< TBearerPriority > iBearerArray;
   152         RArray< TBearerPriority > iBearerArray;
   176         TBool iBearerArrayChanged;
   153         TBool iBearerArrayChanged;
   177         
       
   178         // @var Stores the default connection type / name pair
       
   179         RPointerArray< HBufC >* iDefCon; 
       
   180         
   154         
   181         // @var Stores the general connection settings
   155         // @var Stores the general connection settings
   182         TCmGenConnSettings* iGenConnSettings;
   156         TCmGenConnSettings* iGenConnSettings;
   183         
   157         
   184 		//@var session - Owned
   158 		//@var session - Owned