deviceupdatesui/omadmadapters/globalwlansettings/inc/globalwlanadapter.h
author hgs
Tue, 13 Jul 2010 03:44:34 +0530
changeset 44 137912d1a556
permissions -rw-r--r--
201021
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:   Global WLAN settings adapter
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#ifndef __GLOBALWLANADAPTER_H__
hgs
parents:
diff changeset
    21
#define __GLOBALWLANADAPTER_H__
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    25
// Includes
hgs
parents:
diff changeset
    26
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    27
#include <utf.h>
hgs
parents:
diff changeset
    28
#include <commdb.h>
hgs
parents:
diff changeset
    29
#include <EapSettings.h>
hgs
parents:
diff changeset
    30
#include <internetconnectivitycrkeys.h>
hgs
parents:
diff changeset
    31
#include <smldmadapter.h>
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    35
// Constants
hgs
parents:
diff changeset
    36
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
// The nodes of the DDF structure
hgs
parents:
diff changeset
    39
_LIT8( KNSmlWLan, "WLAN" );
hgs
parents:
diff changeset
    40
_LIT8( KNSmlWLanInternetConnectivityTest, "InternetConnectivityTest" );
hgs
parents:
diff changeset
    41
_LIT8( KNSmlWLanUseDefaultSettings, "UseDefaultSettings" );
hgs
parents:
diff changeset
    42
_LIT8( KNSmlWLanLongRetryLimit, "LongRetryLimit" );
hgs
parents:
diff changeset
    43
_LIT8( KNSmlWLanShortRetryLimit, "ShortRetryLimit" );
hgs
parents:
diff changeset
    44
_LIT8( KNSmlWLanRTSThreshold, "RTSThreshold" );
hgs
parents:
diff changeset
    45
_LIT8( KNSmlWLanTXPowerLevel, "TXPowerLevel" );
hgs
parents:
diff changeset
    46
_LIT8( KNSmlWLanPowerSaving, "PowerSaving" );
hgs
parents:
diff changeset
    47
_LIT8( KNSmlWLanBackgroundScanInterval, "BackgroundScanInterval" );
hgs
parents:
diff changeset
    48
_LIT8( KNSmlWLanScanRate, "ScanRate" );
hgs
parents:
diff changeset
    49
_LIT8( KNSmlWLanRCPITrigger, "RCPITrigger" );
hgs
parents:
diff changeset
    50
_LIT8( KNSmlWLanMinActiveChannelTime, "MinActiveChannelTime" );
hgs
parents:
diff changeset
    51
_LIT8( KNSmlWLanMaxActiveChannelTime, "MaxActiveChannelTime" );
hgs
parents:
diff changeset
    52
_LIT8( KNSmlWLanMaxTxMSDULifeTime, "MaxTxMSDULifeTime" );
hgs
parents:
diff changeset
    53
_LIT8( KNSmlWLanScanExpirationTimer, "ScanExpirationTimer" );
hgs
parents:
diff changeset
    54
_LIT8( KNSmlWLanUnloadDriverTimer, "UnloadDriverTimer" );
hgs
parents:
diff changeset
    55
_LIT8( KNSmlWLanRoamTimer, "RoamTimer" );
hgs
parents:
diff changeset
    56
_LIT8( KNSmlWLanRCPIDifference, "RCPIDifference" );
hgs
parents:
diff changeset
    57
_LIT8( KNSmlWLanConnRegainTimer, "ConnRegainTimer" );
hgs
parents:
diff changeset
    58
_LIT8( KNSmlWLanMaxTriesToFindNw, "MaxTriesToFindNw" );
hgs
parents:
diff changeset
    59
_LIT8( KNSmlWLanDelayBetweenFindNw, "DelayBetweenFindNw" );
hgs
parents:
diff changeset
    60
_LIT8( KNSmlWLanAllowRadioMeasurements, "AllowRadioMeasurements" );
hgs
parents:
diff changeset
    61
_LIT8( KNSmlWLanMinPassiveChannelTime, "MinPassiveChannelTime" );
hgs
parents:
diff changeset
    62
_LIT8( KNSmlWLanMaxPassiveChannelTime, "MaxPassiveChannelTime" );
hgs
parents:
diff changeset
    63
_LIT8( KNSmlWLanMaxApFailureCount, "MaxApFailureCount" );
hgs
parents:
diff changeset
    64
_LIT8( KNSmlWLanLongBeaconFindCount, "LongBeaconFindCount" );
hgs
parents:
diff changeset
    65
_LIT8( KNSmlWLanQosNullFrameInterval, "QosNullFrameInterval" );
hgs
parents:
diff changeset
    66
_LIT8( KNSmlWLanQosNullFrameTimeout, "QosNullFrameTimeout" );
hgs
parents:
diff changeset
    67
_LIT8( KNSmlWLanMTU, "MTU" );
hgs
parents:
diff changeset
    68
_LIT8( KNSmlWLanNode, "InternetConnectivityTest/UseDefaultSettings/LongRetryLimit/ShortRetryLimit/RTSThreshold/TXPowerLevel/PowerSaving/BackgroundScanInterval/ScanRate/RCPITrigger/MinActiveChannelTime/MaxActiveChannelTime/MaxTxMSDULifeTime/ScanExpirationTimer/UnloadDriverTimer/RoamTimer/RCPIDifference/ConnRegainTimer/MaxTriesToFindNw/DelayBetweenFindNw/AllowRadioMeasurements/MinPassiveChannelTime/MaxApFailureCount/LongBeaconFindCount/QosNullFrameInterval/QosNullFrameTimeout" );
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
//DDF version number
hgs
parents:
diff changeset
    71
_LIT8( KNSmGlobalWlanAdapterDDFversion, "1.0");
hgs
parents:
diff changeset
    72
_LIT8( KNSmlMimeType, "text/plain" );
hgs
parents:
diff changeset
    73
_LIT8( KNSmlEmpty, "");
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
const TInt KUriSegListLength = 128;
hgs
parents:
diff changeset
    77
// Maximum input size for nodes
hgs
parents:
diff changeset
    78
const TInt KInputMaxLength = 50;
hgs
parents:
diff changeset
    79
// Max lenght of the DDF type
hgs
parents:
diff changeset
    80
const TInt KTypeMaxLength = 40;
hgs
parents:
diff changeset
    81
// Repository id
hgs
parents:
diff changeset
    82
const TUid KCRUidWlanDeviceSettingsRegistryId = {0x101f8e44};
hgs
parents:
diff changeset
    83
hgs
parents:
diff changeset
    84
hgs
parents:
diff changeset
    85
// WLan engine central repository parameters
hgs
parents:
diff changeset
    86
const TUint32 KWlanScanRate =                            0x00000004;
hgs
parents:
diff changeset
    87
const TUint32 KWlanRcpiTrigger =                         0x00000005;
hgs
parents:
diff changeset
    88
const TUint32 KWlanMinActiveChannelTime =                0x00000006;
hgs
parents:
diff changeset
    89
const TUint32 KWlanMaxActiveChannelTime =                0x00000007;
hgs
parents:
diff changeset
    90
const TUint32 KWlanMaxTxMSDULifeTime =                   0x00000008;
hgs
parents:
diff changeset
    91
const TUint32 KWlanScanExpirationTimer =                 0x00000009;
hgs
parents:
diff changeset
    92
const TUint32 KWlanUnloadDriverTimer =                   0x0000000A;
hgs
parents:
diff changeset
    93
const TUint32 KWlanRoamTimer =                           0x0000000B;
hgs
parents:
diff changeset
    94
const TUint32 KWlanRcpiDifference =                      0x0000000C;
hgs
parents:
diff changeset
    95
const TUint32 KWlanConnRegainTimer =                     0x0000000D;
hgs
parents:
diff changeset
    96
const TUint32 KWlanMaxTriesToFindNw =                    0x0000000E;
hgs
parents:
diff changeset
    97
const TUint32 KWlanDelayBetweenFindNw =                  0x0000000F;
hgs
parents:
diff changeset
    98
const TUint32 KWlanMTU =								 0x00000010;
hgs
parents:
diff changeset
    99
const TUint32 KWlanMinPassiveChannelTime =               0x00000011;
hgs
parents:
diff changeset
   100
const TUint32 KWlanMaxPassiveChannelTime =               0x00000012;
hgs
parents:
diff changeset
   101
const TUint32 KWlanMaxApFailureCount =                   0x00000013;
hgs
parents:
diff changeset
   102
const TUint32 KWlanLongBeaconFindCount =                 0x00000014;
hgs
parents:
diff changeset
   103
const TUint32 KWlanQosNullFrameInterval =                0x00000015;
hgs
parents:
diff changeset
   104
const TUint32 KWlanQosNullFrameTimeout =                 0x00000016;
hgs
parents:
diff changeset
   105
hgs
parents:
diff changeset
   106
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   107
// Structures
hgs
parents:
diff changeset
   108
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
// Structure for storing the settings to be stored into cenrep and commsdb
hgs
parents:
diff changeset
   111
struct TGlobalSettings
hgs
parents:
diff changeset
   112
{
hgs
parents:
diff changeset
   113
	TUint32 internetConnectivityTest;
hgs
parents:
diff changeset
   114
	TBool internetConnectivityTestPresent;
hgs
parents:
diff changeset
   115
	TBool useDefaultSettings;
hgs
parents:
diff changeset
   116
	TBool useDefaultSettingsPresent;
hgs
parents:
diff changeset
   117
	TUint32 longRetryLimit;
hgs
parents:
diff changeset
   118
	TBool longRetryLimitPresent;
hgs
parents:
diff changeset
   119
	TUint32 shortRetryLimit;
hgs
parents:
diff changeset
   120
	TBool shortRetryLimitPresent;
hgs
parents:
diff changeset
   121
	TUint32 RTSThreshold;
hgs
parents:
diff changeset
   122
	TBool RTSThresholdPresent;
hgs
parents:
diff changeset
   123
	TUint32 TXPowerLevel;
hgs
parents:
diff changeset
   124
	TBool TXPowerLevelPresent;
hgs
parents:
diff changeset
   125
	TBool powerSaving;
hgs
parents:
diff changeset
   126
	TBool powerSavingPresent;
hgs
parents:
diff changeset
   127
	TUint32 backgroundScanInterval;
hgs
parents:
diff changeset
   128
	TBool backgroundScanIntervalPresent;
hgs
parents:
diff changeset
   129
	TUint32 scanRate;
hgs
parents:
diff changeset
   130
	TBool scanRatePresent;
hgs
parents:
diff changeset
   131
	TUint32 RCPITrigger;
hgs
parents:
diff changeset
   132
	TBool RCPITriggerPresent;
hgs
parents:
diff changeset
   133
	TUint32 minActiveChannelTime;
hgs
parents:
diff changeset
   134
	TBool minActiveChannelTimePresent;
hgs
parents:
diff changeset
   135
	TUint32 maxActiveChannelTime;
hgs
parents:
diff changeset
   136
	TBool maxActiveChannelTimePresent;
hgs
parents:
diff changeset
   137
	TUint32 maxTxMSDULifeTime;
hgs
parents:
diff changeset
   138
	TBool maxTxMSDULifeTimePresent;
hgs
parents:
diff changeset
   139
	TUint32 scanExpirationTimer;
hgs
parents:
diff changeset
   140
	TBool scanExpirationTimerPresent;
hgs
parents:
diff changeset
   141
	TUint32 unloadDriverTimer;
hgs
parents:
diff changeset
   142
	TBool unloadDriverTimerPresent;
hgs
parents:
diff changeset
   143
	TUint32 roamTimer;
hgs
parents:
diff changeset
   144
	TBool roamTimerPresent;
hgs
parents:
diff changeset
   145
	TUint32 RCPIDifference;
hgs
parents:
diff changeset
   146
	TBool RCPIDifferencePresent;
hgs
parents:
diff changeset
   147
	TUint32 connRegainTimer;
hgs
parents:
diff changeset
   148
	TBool connRegainTimerPresent;
hgs
parents:
diff changeset
   149
	TUint32 maxTriesToFindNw;
hgs
parents:
diff changeset
   150
	TBool maxTriesToFindNwPresent;
hgs
parents:
diff changeset
   151
	TUint32 delayBetweenFindNw;
hgs
parents:
diff changeset
   152
	TBool delayBetweenFindNwPresent;
hgs
parents:
diff changeset
   153
	TBool allowRadioMeasurements;
hgs
parents:
diff changeset
   154
	TBool allowRadioMeasurementsPresent;
hgs
parents:
diff changeset
   155
	TUint32 minPassiveChannelTime;
hgs
parents:
diff changeset
   156
	TBool minPassiveChannelTimePresent;
hgs
parents:
diff changeset
   157
	TUint32 maxPassiveChannelTime;
hgs
parents:
diff changeset
   158
	TBool maxPassiveChannelTimePresent;
hgs
parents:
diff changeset
   159
	TUint32 maxApFailureCount;
hgs
parents:
diff changeset
   160
	TBool maxApFailureCountPresent;
hgs
parents:
diff changeset
   161
	TUint32 longBeaconFindCount;
hgs
parents:
diff changeset
   162
	TBool longBeaconFindCountPresent;
hgs
parents:
diff changeset
   163
	TUint32 qosNullFrameInterval;
hgs
parents:
diff changeset
   164
	TBool qosNullFrameIntervalPresent;
hgs
parents:
diff changeset
   165
	TUint32 qosNullFrameTimeout;
hgs
parents:
diff changeset
   166
	TBool qosNullFrameTimeoutPresent;
hgs
parents:
diff changeset
   167
	TUint32 MTU;
hgs
parents:
diff changeset
   168
	TBool MTUPresent;
hgs
parents:
diff changeset
   169
};
hgs
parents:
diff changeset
   170
hgs
parents:
diff changeset
   171
// Structure for storing the result and status variables from every addition/fetch command
hgs
parents:
diff changeset
   172
struct TStatusResult
hgs
parents:
diff changeset
   173
{
hgs
parents:
diff changeset
   174
	TInt internetConnectivityTestStatus;
hgs
parents:
diff changeset
   175
	TInt internetConnectivityTestResult;
hgs
parents:
diff changeset
   176
	TInt useDefaultSettingsStatus;
hgs
parents:
diff changeset
   177
	TInt useDefaultSettingsResult;
hgs
parents:
diff changeset
   178
	TInt longRetryLimitStatus;
hgs
parents:
diff changeset
   179
	TInt longRetryLimitResult;
hgs
parents:
diff changeset
   180
	TInt shortRetryLimitStatus;
hgs
parents:
diff changeset
   181
	TInt shortRetryLimitResult;
hgs
parents:
diff changeset
   182
	TInt RTSThresholdStatus;
hgs
parents:
diff changeset
   183
	TInt RTSThresholdResult;
hgs
parents:
diff changeset
   184
	TInt TXPowerLevelStatus;
hgs
parents:
diff changeset
   185
	TInt TXPowerLevelResult;
hgs
parents:
diff changeset
   186
	TInt powerSavingStatus;
hgs
parents:
diff changeset
   187
	TInt powerSavingResult;
hgs
parents:
diff changeset
   188
	TInt backgroundScanIntervalStatus;
hgs
parents:
diff changeset
   189
	TInt backgroundScanIntervalResult;
hgs
parents:
diff changeset
   190
	TInt scanRateStatus;
hgs
parents:
diff changeset
   191
	TInt scanRateResult;
hgs
parents:
diff changeset
   192
	TInt RCPITriggerStatus;
hgs
parents:
diff changeset
   193
	TInt RCPITriggerResult;
hgs
parents:
diff changeset
   194
	TInt minActiveChannelTimeStatus;
hgs
parents:
diff changeset
   195
	TInt minActiveChannelTimeResult;
hgs
parents:
diff changeset
   196
	TInt maxActiveChannelTimeStatus;
hgs
parents:
diff changeset
   197
	TInt maxActiveChannelTimeResult;
hgs
parents:
diff changeset
   198
	TInt maxTxMSDULifeTimeStatus;
hgs
parents:
diff changeset
   199
	TInt maxTxMSDULifeTimeResult;
hgs
parents:
diff changeset
   200
	TInt scanExpirationTimerStatus;
hgs
parents:
diff changeset
   201
	TInt scanExpirationTimerResult;
hgs
parents:
diff changeset
   202
	TInt unloadDriverTimerStatus;
hgs
parents:
diff changeset
   203
	TInt unloadDriverTimerResult;
hgs
parents:
diff changeset
   204
	TInt roamTimerStatus;
hgs
parents:
diff changeset
   205
	TInt roamTimerResult;
hgs
parents:
diff changeset
   206
	TInt RCPIDifferenceStatus;
hgs
parents:
diff changeset
   207
	TInt RCPIDifferenceResult;
hgs
parents:
diff changeset
   208
	TInt connRegainTimerStatus;
hgs
parents:
diff changeset
   209
	TInt connRegainTimerResult;
hgs
parents:
diff changeset
   210
	TInt maxTriesToFindNwStatus;
hgs
parents:
diff changeset
   211
	TInt maxTriesToFindNwResult;
hgs
parents:
diff changeset
   212
	TInt delayBetweenFindNwStatus;
hgs
parents:
diff changeset
   213
	TInt delayBetweenFindNwResult;
hgs
parents:
diff changeset
   214
	TInt allowRadioMeasurementsStatus;
hgs
parents:
diff changeset
   215
	TInt allowRadioMeasurementsResult;
hgs
parents:
diff changeset
   216
	TInt minPassiveChannelTimeStatus;
hgs
parents:
diff changeset
   217
	TInt minPassiveChannelTimeResult;
hgs
parents:
diff changeset
   218
	TInt maxPassiveChannelTimeStatus;
hgs
parents:
diff changeset
   219
	TInt maxPassiveChannelTimeResult;
hgs
parents:
diff changeset
   220
	TInt maxApFailureCountStatus;
hgs
parents:
diff changeset
   221
	TInt maxApFailureCountResult;
hgs
parents:
diff changeset
   222
	TInt longBeaconFindCountStatus;
hgs
parents:
diff changeset
   223
	TInt longBeaconFindCountResult;
hgs
parents:
diff changeset
   224
	TInt qosNullFrameIntervalStatus;
hgs
parents:
diff changeset
   225
	TInt qosNullFrameIntervalResult;
hgs
parents:
diff changeset
   226
	TInt qosNullFrameTimeoutStatus;
hgs
parents:
diff changeset
   227
	TInt qosNullFrameTimeoutResult;
hgs
parents:
diff changeset
   228
	TInt MTUStatus;
hgs
parents:
diff changeset
   229
	TInt MTUResult;
hgs
parents:
diff changeset
   230
};
hgs
parents:
diff changeset
   231
hgs
parents:
diff changeset
   232
hgs
parents:
diff changeset
   233
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   234
// Enumerations
hgs
parents:
diff changeset
   235
// -----------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   236
        
hgs
parents:
diff changeset
   237
   
hgs
parents:
diff changeset
   238
// ------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   239
// CGlobalWLanAdapter 
hgs
parents:
diff changeset
   240
// ------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   241
class CGlobalWLANAdapter : public CSmlDmAdapter
hgs
parents:
diff changeset
   242
        {
hgs
parents:
diff changeset
   243
public:
hgs
parents:
diff changeset
   244
        static CGlobalWLANAdapter* NewL( MSmlDmCallback* aDmCallback );
hgs
parents:
diff changeset
   245
        static CGlobalWLANAdapter* NewLC( MSmlDmCallback* aDmCallback );
hgs
parents:
diff changeset
   246
        void ConstructL( );
hgs
parents:
diff changeset
   247
        virtual ~CGlobalWLANAdapter();
hgs
parents:
diff changeset
   248
hgs
parents:
diff changeset
   249
// Adapter interface
hgs
parents:
diff changeset
   250
        void DDFVersionL( CBufBase& aDDFVersion );
hgs
parents:
diff changeset
   251
        void DDFStructureL( MSmlDmDDFObject& aDDF );
hgs
parents:
diff changeset
   252
        void AddLeafObjectL( const TDesC8& aURI,
hgs
parents:
diff changeset
   253
                             const TDesC8& aParentLUID, 
hgs
parents:
diff changeset
   254
                             const TDesC8& aObject, 
hgs
parents:
diff changeset
   255
                             const TDesC8& aType, 
hgs
parents:
diff changeset
   256
                             const TInt aStatusRef );  
hgs
parents:
diff changeset
   257
        void UpdateLeafObjectL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   258
                                const TDesC8& aLUID, 
hgs
parents:
diff changeset
   259
                            const TDesC8& aObject, 
hgs
parents:
diff changeset
   260
                            const TDesC8& aType, 
hgs
parents:
diff changeset
   261
                            const TInt aStatusRef );
hgs
parents:
diff changeset
   262
       void UpdateLeafObjectL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   263
                            const TDesC8& aLUID,
hgs
parents:
diff changeset
   264
                            RWriteStream*& aStream, 
hgs
parents:
diff changeset
   265
                            const TDesC8& aType,
hgs
parents:
diff changeset
   266
                            TInt aStatusRef );
hgs
parents:
diff changeset
   267
        void DeleteObjectL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   268
                            const TDesC8& aLUID, 
hgs
parents:
diff changeset
   269
                            const TInt aStatusRef ); 
hgs
parents:
diff changeset
   270
        void FetchLeafObjectL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   271
                               const TDesC8& aLUID, 
hgs
parents:
diff changeset
   272
                               const TDesC8& aType, 
hgs
parents:
diff changeset
   273
                               const TInt aResultsRef, 
hgs
parents:
diff changeset
   274
                               const TInt aStatusRef ); 
hgs
parents:
diff changeset
   275
        void FetchLeafObjectSizeL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   276
                               const TDesC8& aLUID,
hgs
parents:
diff changeset
   277
                               const TDesC8& aType, 
hgs
parents:
diff changeset
   278
                               TInt aResultsRef,
hgs
parents:
diff changeset
   279
                               TInt aStatusRef );
hgs
parents:
diff changeset
   280
        void ChildURIListL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   281
                            const TDesC8& aLUID, 
hgs
parents:
diff changeset
   282
                            const CArrayFix<TSmlDmMappingInfo>& aPreviousURISegmentList, 
hgs
parents:
diff changeset
   283
                            const TInt aResultsRef, 
hgs
parents:
diff changeset
   284
                            const TInt aStatusRef ); 
hgs
parents:
diff changeset
   285
        void AddNodeObjectL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   286
                             const TDesC8& aParentLUID, 
hgs
parents:
diff changeset
   287
                             const TInt aStatusRef );
hgs
parents:
diff changeset
   288
        void ExecuteCommandL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   289
                              const TDesC8& aLUID,
hgs
parents:
diff changeset
   290
                              const TDesC8& aArgument, 
hgs
parents:
diff changeset
   291
                              const TDesC8& aType,
hgs
parents:
diff changeset
   292
                              TInt aStatusRef );
hgs
parents:
diff changeset
   293
        void ExecuteCommandL( const TDesC8& aURI, 
hgs
parents:
diff changeset
   294
                              const TDesC8& aLUID,
hgs
parents:
diff changeset
   295
                              RWriteStream*& aStream, 
hgs
parents:
diff changeset
   296
                              const TDesC8& aType,
hgs
parents:
diff changeset
   297
                              TInt aStatusRef );
hgs
parents:
diff changeset
   298
        void CopyCommandL( const TDesC8& aTargetURI, 
hgs
parents:
diff changeset
   299
                           const TDesC8& aTargetLUID, 
hgs
parents:
diff changeset
   300
                           const TDesC8& aSourceURI,
hgs
parents:
diff changeset
   301
                           const TDesC8& aSourceLUID, 
hgs
parents:
diff changeset
   302
                           const TDesC8& aType,
hgs
parents:
diff changeset
   303
                           TInt aStatusRef );
hgs
parents:
diff changeset
   304
        void StartAtomicL();
hgs
parents:
diff changeset
   305
        void CommitAtomicL();
hgs
parents:
diff changeset
   306
        void RollbackAtomicL();
hgs
parents:
diff changeset
   307
        TBool StreamingSupport( TInt& aItemSize );
hgs
parents:
diff changeset
   308
        void StreamCommittedL();
hgs
parents:
diff changeset
   309
        void CompleteOutstandingCmdsL();
hgs
parents:
diff changeset
   310
hgs
parents:
diff changeset
   311
hgs
parents:
diff changeset
   312
private:
hgs
parents:
diff changeset
   313
        CGlobalWLANAdapter(TAny* aEcomArguments);
hgs
parents:
diff changeset
   314
        void FillNodeInfoL( MSmlDmDDFObject& aNode,
hgs
parents:
diff changeset
   315
                            TSmlDmAccessTypes aAccTypes,
hgs
parents:
diff changeset
   316
                            MSmlDmDDFObject::TOccurence aOccurrence, 
hgs
parents:
diff changeset
   317
                            MSmlDmDDFObject::TScope aScope, 
hgs
parents:
diff changeset
   318
                            MSmlDmDDFObject::TDFFormat aFormat,
hgs
parents:
diff changeset
   319
                            const TDesC8& aDescription );
hgs
parents:
diff changeset
   320
        void ExecuteBufferL( TBool aFinal = EFalse ); 
hgs
parents:
diff changeset
   321
        
hgs
parents:
diff changeset
   322
        /**
hgs
parents:
diff changeset
   323
     	* Stores the central repository parameters
hgs
parents:
diff changeset
   324
     	*
hgs
parents:
diff changeset
   325
     	* @return 
hgs
parents:
diff changeset
   326
     	*/
hgs
parents:
diff changeset
   327
        void StoreCenRepParamsL();
hgs
parents:
diff changeset
   328
        
hgs
parents:
diff changeset
   329
        /**
hgs
parents:
diff changeset
   330
     	* Stores the CommsDB parameters
hgs
parents:
diff changeset
   331
     	*
hgs
parents:
diff changeset
   332
     	* @return 
hgs
parents:
diff changeset
   333
     	*/
hgs
parents:
diff changeset
   334
  		void StoreCommsDBParamsL();
hgs
parents:
diff changeset
   335
  			
hgs
parents:
diff changeset
   336
  		/**
hgs
parents:
diff changeset
   337
     	* Reads the central repository parameters
hgs
parents:
diff changeset
   338
     	*
hgs
parents:
diff changeset
   339
     	* @return 
hgs
parents:
diff changeset
   340
     	*/
hgs
parents:
diff changeset
   341
        void ReadCenRepParamsL();
hgs
parents:
diff changeset
   342
        
hgs
parents:
diff changeset
   343
        /**
hgs
parents:
diff changeset
   344
     	* Returns the central repository parameters and updates statuses
hgs
parents:
diff changeset
   345
     	*
hgs
parents:
diff changeset
   346
     	* @return 
hgs
parents:
diff changeset
   347
     	*/
hgs
parents:
diff changeset
   348
        void UpdateStatusAndResultL( TInt aResult, TInt aStatus, TDesC8& aValue, TDesC8& aType, TInt aStoreErr );
hgs
parents:
diff changeset
   349
        
hgs
parents:
diff changeset
   350
        /**
hgs
parents:
diff changeset
   351
     	* Reads the CommsDB parameters
hgs
parents:
diff changeset
   352
     	*
hgs
parents:
diff changeset
   353
     	* @return 
hgs
parents:
diff changeset
   354
     	*/
hgs
parents:
diff changeset
   355
  		void ReadCommsDBParamsL();
hgs
parents:
diff changeset
   356
                          
hgs
parents:
diff changeset
   357
        /**
hgs
parents:
diff changeset
   358
     	* Gets the number of uri segments in the URI
hgs
parents:
diff changeset
   359
     	*
hgs
parents:
diff changeset
   360
     	* @since S60 ?S60_version
hgs
parents:
diff changeset
   361
     	* @param aUri The URI whose segments are counted
hgs
parents:
diff changeset
   362
     	* @return The amount of segments
hgs
parents:
diff changeset
   363
     	*/
hgs
parents:
diff changeset
   364
        TInt NumOfUriSegs( const TDesC8& aUri );
hgs
parents:
diff changeset
   365
        
hgs
parents:
diff changeset
   366
        /**
hgs
parents:
diff changeset
   367
     	* Gets the last uri segment
hgs
parents:
diff changeset
   368
     	*
hgs
parents:
diff changeset
   369
     	* @since S60 ?S60_version
hgs
parents:
diff changeset
   370
     	* @param aUri The URI whose segments are counted
hgs
parents:
diff changeset
   371
     	* @return The last segment
hgs
parents:
diff changeset
   372
     	*/        
hgs
parents:
diff changeset
   373
        TPtrC8 GetLastUriSeg(const TDesC8& aURI);
hgs
parents:
diff changeset
   374
        
hgs
parents:
diff changeset
   375
        TInt DesToInt( const TDesC8& aLuid );
hgs
parents:
diff changeset
   376
        void InitMemberVariables();
hgs
parents:
diff changeset
   377
hgs
parents:
diff changeset
   378
        MSmlDmCallback* iCallBack;
hgs
parents:
diff changeset
   379
        
hgs
parents:
diff changeset
   380
        // Variable to store the received parameters
hgs
parents:
diff changeset
   381
        TGlobalSettings* iWriteSettings;
hgs
parents:
diff changeset
   382
        // Variable to store whick parameters are to be fetched
hgs
parents:
diff changeset
   383
        TGlobalSettings* iReadSettings;
hgs
parents:
diff changeset
   384
        // Status and result information related to fetches and additions
hgs
parents:
diff changeset
   385
        TStatusResult* iReadStatuses;
hgs
parents:
diff changeset
   386
        TStatusResult* iWriteStatuses;
hgs
parents:
diff changeset
   387
        
hgs
parents:
diff changeset
   388
        TBool iWlanSupported;
hgs
parents:
diff changeset
   389
hgs
parents:
diff changeset
   390
        };
hgs
parents:
diff changeset
   391
hgs
parents:
diff changeset
   392
#endif __GLOBALWLANADAPTER_H__