epoc32/include/mw/apsettingshandlerui.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description: 
williamr@2
    15
*     Declares the main handler, CApSettingsHandler and public API for the 
williamr@2
    16
*     Access Point settings.
williamr@2
    17
*
williamr@2
    18
*/
williamr@2
    19
williamr@2
    20
williamr@2
    21
#ifndef APSETTINGS_HANDLER_H
williamr@2
    22
#define APSETTINGS_HANDLER_H
williamr@2
    23
williamr@2
    24
// Deprecation warning
williamr@2
    25
#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
williamr@2
    26
 
williamr@2
    27
 
williamr@2
    28
// INCLUDES
williamr@2
    29
#include <ApSettingsHandlerCommons.h>
williamr@2
    30
#include <ApEngineConsts.h>
williamr@2
    31
#include <ApSelect.h>
williamr@2
    32
williamr@2
    33
// CONSTANTS
williamr@2
    34
const   TUid    KUidApSettingsHandler = { 0x10008d3B };
williamr@2
    35
williamr@2
    36
typedef struct      ///< Extra data holder
williamr@2
    37
    {
williamr@2
    38
        TInt                iResOffset;
williamr@2
    39
        TBool               iIsIpv6Supported;       // Default is NO 
williamr@2
    40
        TBool               iIsFeatureManagerInitialised;
williamr@2
    41
        TInt                iExtra;
williamr@2
    42
        TInt                iSortType;
williamr@2
    43
        TVpnFilterType      iVpnFilterType;
williamr@2
    44
        TInt                iVariant;               /// Local variant value
williamr@2
    45
        TBool               iIncludeEasyWlan;
williamr@2
    46
    }TApSetHandlerExtra;
williamr@2
    47
williamr@2
    48
// FORWARD DECLARATIONS
williamr@2
    49
class CActiveApDb;
williamr@2
    50
class CApSelector;
williamr@2
    51
class CApSettingsModel;
williamr@2
    52
class CApSettings;
williamr@2
    53
class CTextOverrides;
williamr@2
    54
class CApAccessPointItem;
williamr@2
    55
williamr@2
    56
class CApSettingsHandlerImpl;
williamr@2
    57
williamr@2
    58
// CLASS DECLARATION
williamr@2
    59
/**
williamr@2
    60
* CApSettingsHandler class: It is the main handler for the Access Point 
williamr@2
    61
* settings. It contains the only public API for other (sub)systems.
williamr@2
    62
*
williamr@2
    63
*/
williamr@2
    64
class CApSettingsHandler : public CBase
williamr@2
    65
    {
williamr@2
    66
williamr@2
    67
    public: // Constructors and destructor
williamr@2
    68
williamr@2
    69
williamr@2
    70
        /**
williamr@2
    71
        * Two-phased constructor. Leaves on failure.
williamr@2
    72
        * This function shall be used to create the access point 
williamr@2
    73
        * settings/selection handling UI object. It is customizable through 
williamr@2
    74
        * the parameters. This object is a small layer above the UI part and
williamr@2
    75
        * it provides a standard interface to select, edit, create access 
williamr@2
    76
        * points. It has two main parts, Select and Edit. The first parameter,
williamr@2
    77
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
    78
        * In case of selection, there is the possibility to use this module in
williamr@2
    79
        * many applications. For this, two layouts are implemented, 
williamr@2
    80
        * one is list pane used by General Settings which provides the list in
williamr@2
    81
        * a list-pane. The other layout is for the other applications 
williamr@2
    82
        * requiring access point selection, a popup-list style as the decision
williamr@2
    83
        * I know about was that General Settings will use list-pane and all
williamr@2
    84
        * other apps. popup-list style. It is the caller who selects the style
williamr@2
    85
        * so if spec. says otherwise, this module still can be used.
williamr@2
    86
        * It is also possible to start the UI without selection, so if any 
williamr@2
    87
        * module has a 'linked/default/etc.' access point and stored it's UID,
williamr@2
    88
        * the module can simply call the editor part of the UI without having
williamr@2
    89
        * to select the AP once more. In case of editing only, 
williamr@2
    90
        * (aStartWithSelection is EFalse), all other construction parameters 
williamr@2
    91
        * are ignored and after construction caller can simply call 
williamr@2
    92
        * RunSettingsL(..). In case of selection, a lot of other parameters 
williamr@2
    93
        * can be specified to fulfil all requirements. There are three types 
williamr@2
    94
        * of Options menu available: 
williamr@2
    95
        * EApSettingsSelMenuNormal, 
williamr@2
    96
        * EApSettingsSelMenuSelectOnly,
williamr@2
    97
        * EApSettingsSelMenuSelectNormal.
williamr@2
    98
        * <br>
williamr@2
    99
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, 
williamr@2
   100
        *                               no way to edit, delete, create, etc.
williamr@2
   101
        * <br>
williamr@2
   102
        * -EApSettingsSelMenuNormal:    Options menu specified in General 
williamr@2
   103
        *                               Settings, contains Edit, Delete, 
williamr@2
   104
        *                               Create new, etc. menu items.
williamr@2
   105
        * <br>
williamr@2
   106
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal
williamr@2
   107
        *                                BUT the first item is Select. 
williamr@2
   108
        *                                This one makes it possible to select 
williamr@2
   109
        *                                an access point and also possible to 
williamr@2
   110
        *                                edit, create, delete, etc.
williamr@2
   111
        * <br>
williamr@2
   112
        * The following three parameters specify the filtering and ordering 
williamr@2
   113
        * criteria for the selection list creation. First, it is possible to
williamr@2
   114
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   115
        * <br>
williamr@2
   116
        * KEApIspTypeInternetOnly:  Filter allows only access points that are
williamr@2
   117
        *                           capable of only internet access.
williamr@2
   118
        * <br>
williamr@2
   119
        * KEApIspTypeWAPOnly:       Filter allows only access points that are 
williamr@2
   120
        *                           capable of only WAP access.
williamr@2
   121
        * <br>
williamr@2
   122
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are
williamr@2
   123
        *                           capable of internet AND WAP access.
williamr@2
   124
        * <br>
williamr@2
   125
        * KEApIspTypeWAPMandatory:  Filter allows only access points that are
williamr@2
   126
        *                           capable of WAP access AND contain 
williamr@2
   127
        *                           mandatory WAP settings.
williamr@2
   128
        * <br>
williamr@2
   129
        * KEApIspTypeAll:           No filtering is done for the isp-type,
williamr@2
   130
        *                           all types of access points are shown.
williamr@2
   131
        * <br>
williamr@2
   132
        * It is possible to combine them by simply adding/or-ing together 
williamr@2
   133
        * the values, filtering will be done in such a way that only access 
williamr@2
   134
        * points with the listed ISP-types will be shown. Second filtering
williamr@2
   135
        * possibility (aBearerFilter) is the desired bearer type. The possible
williamr@2
   136
        * values are the values of the TApBearerType enum type and their 
williamr@2
   137
        * combinations, as in case of the ISP type. The ordering of the list
williamr@2
   138
        * can be specified with the aSortType parameter. It can have the
williamr@2
   139
        * following values:
williamr@2
   140
        * KEApSortUidAscending:     The sorting is done according to the ID 
williamr@2
   141
        *                           of the access points in ascending order.
williamr@2
   142
        * KEApSortUidDescending:    The sorting is done according to the ID 
williamr@2
   143
        *                           of the access points in descending order.
williamr@2
   144
        * KEApSortNameAscending:    The sorting is done according to the name
williamr@2
   145
        *                           of the access points in ascending order.
williamr@2
   146
        * KEApSortNameDescending:   The sorting is done according to the name
williamr@2
   147
        *                           of the access points in descending order.
williamr@2
   148
        * Caution! The ordering values can not be combined!
williamr@2
   149
        * @param aStartWithSelection    A boolean value indicating whether to 
williamr@2
   150
        *                               select or edit an ap.
williamr@2
   151
        * @param aListType      A TSelectionListType enum indicating the 
williamr@2
   152
        *                       desired list type.
williamr@2
   153
        * @param aSelMenuType   A TSelectionMenuType enum indicating the 
williamr@2
   154
        *                       desired menu type.
williamr@2
   155
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   156
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   157
        * @param aSortType Specifies the sort order to use.
williamr@2
   158
        * @return The constructed CApSettingsHandler object.
williamr@2
   159
        *
williamr@2
   160
        * @deprecated
williamr@2
   161
        */
williamr@2
   162
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   163
                        TBool aStartWithSelection,
williamr@2
   164
                        TSelectionListType aListType,
williamr@2
   165
                        TSelectionMenuType aSelMenuType,
williamr@2
   166
                        TInt aIspFilter,
williamr@2
   167
                        TInt aBearerFilter,
williamr@2
   168
                        TInt aSortType
williamr@2
   169
                        );
williamr@2
   170
williamr@2
   171
williamr@2
   172
williamr@2
   173
        /**
williamr@2
   174
        * Two-phased constructor. Leaves on failure.
williamr@2
   175
        * This function shall be used to create the access point 
williamr@2
   176
        * settings/selection handling UI object. It is customizable through 
williamr@2
   177
        * the parameters. This object is a small layer above the UI part and
williamr@2
   178
        * it provides a standard interface to select, edit, create 
williamr@2
   179
        * access points. It has two main parts, Select and Edit. The first 
williamr@2
   180
        * parameter, aStartWithSelection gives whether we would like to select
williamr@2
   181
        * or edit. In case of selection, there is the possibility to use this 
williamr@2
   182
        * module in many applications. For this, two layouts are implemented,
williamr@2
   183
        * one is list pane used by General Settings which provides the list 
williamr@2
   184
        * in a list-pane. The other layout is for the other applications 
williamr@2
   185
        * requiring access point selection, a popup-list style as the 
williamr@2
   186
        * decision I know about was that General Settings will use list-pane 
williamr@2
   187
        * and all other apps. popup-list style. It is the caller who selects 
williamr@2
   188
        * the style so if spec. says otherwise, this module still can be used.
williamr@2
   189
        * It is also possible to start the UI without selection, so if any 
williamr@2
   190
        * module has a 'linked/default/etc.' access point and stored it's UID,
williamr@2
   191
        * the module can simply call the editor part of the UI without having
williamr@2
   192
        * to select the AP once more.
williamr@2
   193
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   194
        * construction parameters are ignored and after construction caller 
williamr@2
   195
        * can simply call RunSettingsL(..).
williamr@2
   196
        * In case of selection, a lot of other parameters can be specified 
williamr@2
   197
        * to fulfil all requirements. There are three types of Options menu 
williamr@2
   198
        * available: 
williamr@2
   199
        * EApSettingsSelMenuNormal, 
williamr@2
   200
        * EApSettingsSelMenuSelectOnly,
williamr@2
   201
        * EApSettingsSelMenuSelectNormal.
williamr@2
   202
        * <br>
williamr@2
   203
        *-EApSettingsSelMenuSelectOnly:     Only Select is visible, no way to
williamr@2
   204
        *                                   edit, delete, create, etc.
williamr@2
   205
        * <br>
williamr@2
   206
        * -EApSettingsSelMenuNormal:        Options menu specified in General 
williamr@2
   207
        *                                   Settings, contains Edit, Delete, 
williamr@2
   208
        *                                   Create new, etc. menu items.
williamr@2
   209
        * <br>
williamr@2
   210
        * -EApSettingsSelMenuSelectNormal:  Same as in EApSettingsSelMenuNormal
williamr@2
   211
        *                                   BUT the first item is Select. 
williamr@2
   212
        *                                   This one makes it possible to 
williamr@2
   213
        *                                   select an access point and also 
williamr@2
   214
        *                                   possible to edit, create, 
williamr@2
   215
        *                                   delete, etc.
williamr@2
   216
        * <br>
williamr@2
   217
        * The following three parameters specify the filtering and ordering 
williamr@2
   218
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   219
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   220
        * <br>
williamr@2
   221
        * KEApIspTypeInternetOnly:      Filter allows only access points that
williamr@2
   222
        *                               are capable of only internet access.
williamr@2
   223
        * <br>
williamr@2
   224
        * KEApIspTypeWAPOnly:           Filter allows only access points that 
williamr@2
   225
        *                               are capable of only WAP access.
williamr@2
   226
        * <br>
williamr@2
   227
        * KEApIspTypeInternetAndWAP:    Filter allows only access points that
williamr@2
   228
        *                               are capable of internet AND WAP access.
williamr@2
   229
        * <br>
williamr@2
   230
        * KEApIspTypeWAPMandatory:      Filter allows only access points that
williamr@2
   231
        *                               are capable of WAP access AND contain
williamr@2
   232
        *                               mandatory WAP settings.
williamr@2
   233
        * <br>
williamr@2
   234
        * KEApIspTypeAll:               No filtering is done for the isp-type,
williamr@2
   235
        *                               all types of access points are shown.
williamr@2
   236
        * <br>
williamr@2
   237
        * It is possible to combine them by simply adding/or-ing together the
williamr@2
   238
        * values, filtering will be done in such a way that only access points
williamr@2
   239
        * with the listed ISP-types will be shown.
williamr@2
   240
        * Second filtering possibility (aBearerFilter) is the desired bearer 
williamr@2
   241
        * type. The possible values are the values of the TApBearerType enum 
williamr@2
   242
        * type and their combinations, as in case of the ISP type.
williamr@2
   243
        * The ordering of the list can be specified with the aSortType 
williamr@2
   244
        * parameter. It can have the following values:
williamr@2
   245
        * KEApSortUidAscending:     The sorting is done according to the ID
williamr@2
   246
        *                           of the access points in ascending order.
williamr@2
   247
        * KEApSortUidDescending:    The sorting is done according to the ID 
williamr@2
   248
        *                           of the access points in descending order.
williamr@2
   249
        * KEApSortNameAscending:    The sorting is done according to the name 
williamr@2
   250
        *                           of the access points in ascending order.
williamr@2
   251
        * KEApSortNameDescending:   The sorting is done according to the name
williamr@2
   252
        *                           of the access points in descending order.
williamr@2
   253
        * Caution! The ordering values can not be combined!
williamr@2
   254
        * @param aDb A database to work on
williamr@2
   255
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   256
        * select or edit an ap.
williamr@2
   257
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   258
        * list type.
williamr@2
   259
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   260
        * menu type.
williamr@2
   261
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   262
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   263
        * @param aSortType Specifies the sort order to use.
williamr@2
   264
        * @return The constructed CApSettingsHandler object.
williamr@2
   265
        *
williamr@2
   266
        * @deprecated
williamr@2
   267
        */
williamr@2
   268
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   269
                        CActiveApDb& aDb,
williamr@2
   270
                        TBool aStartWithSelection,
williamr@2
   271
                        TSelectionListType aListType,
williamr@2
   272
                        TSelectionMenuType aSelMenuType,
williamr@2
   273
                        TInt aIspFilter,
williamr@2
   274
                        TInt aBearerFilter,
williamr@2
   275
                        TInt aSortType
williamr@2
   276
                        );
williamr@2
   277
williamr@2
   278
williamr@2
   279
williamr@2
   280
williamr@2
   281
williamr@2
   282
williamr@2
   283
williamr@2
   284
williamr@2
   285
        /**
williamr@2
   286
        * Two-phased constructor. Leaves on failure.
williamr@2
   287
        * This function shall be used to create the access point 
williamr@2
   288
        * settings/selection handling UI object.It is customizable through the
williamr@2
   289
        * parameters. This object is a small layer above the UI part and
williamr@2
   290
        * it provides a standard interface to select, edit, create access 
williamr@2
   291
        * points. It has two main parts, Select and Edit. The first parameter, 
williamr@2
   292
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
   293
        * In case of selection, there is the possibility to use this module in
williamr@2
   294
        * many applications. For this, two layouts are implemented, one is 
williamr@2
   295
        * list pane used by General Settings which provides the list in a 
williamr@2
   296
        * list-pane. The other layout is for the other applications requiring 
williamr@2
   297
        * access point selection, a popup-list style as the decision was that 
williamr@2
   298
        * General Settings will use list-pane and all other apps. popup-list 
williamr@2
   299
        * style. It is the caller who selects the style so if spec. says 
williamr@2
   300
        * otherwise, this module still can be used.
williamr@2
   301
        * It is also possible to start the UI without selection, so if any 
williamr@2
   302
        * module has a 'linked/default/etc.' access point and stored it's UID,
williamr@2
   303
        * the module can simply call the editor part of the UI without having
williamr@2
   304
        * to select the AP once more.
williamr@2
   305
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   306
        * construction parameters are ignored and after construction caller 
williamr@2
   307
        * can simply call RunSettingsL(..).
williamr@2
   308
        * In case of selection, a lot of other parameters can be specified to
williamr@2
   309
        * fulfil all requirements. There are three types of Options menu 
williamr@2
   310
        * available: EApSettingsSelMenuNormal, EApSettingsSelMenuSelectOnly,
williamr@2
   311
        * EApSettingsSelMenuSelectNormal.
williamr@2
   312
        * <br>
williamr@2
   313
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, no way to edit,
williamr@2
   314
        *   delete, create, etc.
williamr@2
   315
        * <br>
williamr@2
   316
        * -EApSettingsSelMenuNormal:Options menu specified in General Settings,
williamr@2
   317
        *   contains Edit, Delete, Create new, etc. menu items.
williamr@2
   318
        * <br>
williamr@2
   319
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal 
williamr@2
   320
        *   BUT the first item is Select. This one makes it possible to select 
williamr@2
   321
        *   an access point and also possible to edit, create, delete, etc.
williamr@2
   322
        * <br>
williamr@2
   323
        * The following three parameters specify the filtering and ordering 
williamr@2
   324
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   325
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   326
        * <br>
williamr@2
   327
        * KEApIspTypeInternetOnly: Filter allows only access points that are 
williamr@2
   328
        *   capable of only internet access.
williamr@2
   329
        * <br>
williamr@2
   330
        * KEApIspTypeWAPOnly: Filter allows only access points that are 
williamr@2
   331
        *   capable of only WAP access.
williamr@2
   332
        * <br>
williamr@2
   333
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are 
williamr@2
   334
        *   capable of internet AND WAP access.
williamr@2
   335
        * <br>
williamr@2
   336
        * KEApIspTypeWAPMandatory: Filter allows only access points that are 
williamr@2
   337
        *   capable of WAP access AND contain mandatory WAP settings.
williamr@2
   338
        * <br>
williamr@2
   339
        * KEApIspTypeAll: No filtering is done for the isp-type, all types of
williamr@2
   340
        *   access points are shown.
williamr@2
   341
        * <br>
williamr@2
   342
        * It is possible to combine them by simply adding/or-ing together the 
williamr@2
   343
        * values, filtering will be done in such a way that only access points 
williamr@2
   344
        * with the listed ISP-types will be shown.
williamr@2
   345
        * Second filtering possibility (aBearerFilter) is the desired bearer 
williamr@2
   346
        * type. The possible values are the values of the TApBearerType enum 
williamr@2
   347
        * type and their combinations, as in case of the ISP type.
williamr@2
   348
        * The ordering of the list can be specified with the aSortType 
williamr@2
   349
        * parameter. It can have the following values:
williamr@2
   350
        * KEApSortUidAscending: The sorting is done according to the ID of 
williamr@2
   351
        *   the access points in ascending order.
williamr@2
   352
        * KEApSortUidDescending: The sorting is done according to the ID of 
williamr@2
   353
        *   the access points in descending order.
williamr@2
   354
        * KEApSortNameAscending: The sorting is done according to the name of 
williamr@2
   355
        *   the access points in ascending order.
williamr@2
   356
        * KEApSortNameDescending: The sorting is done according to the name of 
williamr@2
   357
        *   the access points in descending order.
williamr@2
   358
        * Caution! The ordering values can not be combined!
williamr@2
   359
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   360
        *   select or edit an ap.
williamr@2
   361
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   362
        *   list type.
williamr@2
   363
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   364
        *   menu type.
williamr@2
   365
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   366
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   367
        * @param aSortType Specifies the sort order to use.
williamr@2
   368
        * @param aReqIpvType Specifies whether the caller would like to 
williamr@2
   369
        *   have IPv4, IPv6 or both access points. If it is IPv6 or Both, 
williamr@2
   370
        *   in case of IPv6 support is available as a feature, it will be 
williamr@2
   371
        *   supported. If IPv6 feature is not supported by the phone, it 
williamr@2
   372
        *   simply defaults to the normal IPv4 version.
williamr@2
   373
        *   If it is IPv4, it uses the default IPv4 version independently 
williamr@2
   374
        *   from IPv6 feature beeing available or not.
williamr@2
   375
        * @return The constructed CApSettingsHandler object.
williamr@2
   376
        *
williamr@2
   377
        * @deprecated
williamr@2
   378
        */
williamr@2
   379
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   380
                        TBool aStartWithSelection,
williamr@2
   381
                        TSelectionListType aListType,
williamr@2
   382
                        TSelectionMenuType aSelMenuType,
williamr@2
   383
                        TInt aIspFilter,
williamr@2
   384
                        TInt aBearerFilter,
williamr@2
   385
                        TInt aSortType,
williamr@2
   386
                        TInt aReqIpvType
williamr@2
   387
                        );
williamr@2
   388
williamr@2
   389
williamr@2
   390
williamr@2
   391
        /**
williamr@2
   392
        * Two-phased constructor. Leaves on failure.
williamr@2
   393
        * This function shall be used to create the access point 
williamr@2
   394
        * settings/selection handling UI object. It is customizable through 
williamr@2
   395
        * the parameters. This object is a small layer above the UI part and
williamr@2
   396
        * it provides a standard interface to select, edit, create access 
williamr@2
   397
        * points. It has two main parts, Select and Edit. The first parameter,
williamr@2
   398
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
   399
        * In case of selection, there is the possibility to use this module in
williamr@2
   400
        * many applications. For this, two layouts are implemented, one is list
williamr@2
   401
        * pane used by General Settings which provides the list in a list-pane.
williamr@2
   402
        * The other layout is for the other applications requiring access point
williamr@2
   403
        * selection, a popup-list style as the decision was that General 
williamr@2
   404
        * Settings will use list-pane and all other apps. popup-list style. 
williamr@2
   405
        * It is the caller who selects the style so if spec. says otherwise,
williamr@2
   406
        * this module still can be used. It is also possible to start the UI 
williamr@2
   407
        * without selection, so if any module has a 'linked/default/etc.'
williamr@2
   408
        * access point and stored it's UID, the module can simply call the 
williamr@2
   409
        * editor part of the UI without having to select the AP once more.
williamr@2
   410
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   411
        * construction parameters are ignored and after construction caller can
williamr@2
   412
        * simply call RunSettingsL(..). In case of selection, a lot of other
williamr@2
   413
        * parameters can be specified to fulfil all requirements. There are 
williamr@2
   414
        * three types of Options menu available: EApSettingsSelMenuNormal, 
williamr@2
   415
        * EApSettingsSelMenuSelectOnly, EApSettingsSelMenuSelectNormal.
williamr@2
   416
        * <br>
williamr@2
   417
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, no way to edit,
williamr@2
   418
        *   delete, create, etc.
williamr@2
   419
        * <br>
williamr@2
   420
        * -EApSettingsSelMenuNormal:Options menu specified in General Settings,
williamr@2
   421
        *   contains Edit, Delete, Create new, etc. menu items.
williamr@2
   422
        * <br>
williamr@2
   423
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal 
williamr@2
   424
        *   BUT the first item is Select. This one makes it possible to select
williamr@2
   425
        *   an access point and also possible to edit, create, delete, etc.
williamr@2
   426
        * <br>
williamr@2
   427
        * The following three parameters specify the filtering and ordering
williamr@2
   428
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   429
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   430
        * <br>
williamr@2
   431
        * KEApIspTypeInternetOnly: Filter allows only access points that are 
williamr@2
   432
        *   capable of only internet access.
williamr@2
   433
        * <br>
williamr@2
   434
        * KEApIspTypeWAPOnly: Filter allows only access points that are 
williamr@2
   435
        *   capable of only WAP access.
williamr@2
   436
        * <br>
williamr@2
   437
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are 
williamr@2
   438
        *   capable of internet AND WAP access.
williamr@2
   439
        * <br>
williamr@2
   440
        * KEApIspTypeWAPMandatory: Filter allows only access points that are 
williamr@2
   441
        *   capable of WAP access AND contain mandatory WAP settings.
williamr@2
   442
        * <br>
williamr@2
   443
        * KEApIspTypeAll: No filtering is done for the isp-type, all types of
williamr@2
   444
        *   access points are shown.
williamr@2
   445
        * <br>
williamr@2
   446
        * It is possible to combine them by simply adding/or-ing together the
williamr@2
   447
        * values, filtering will be done in such a way that only access points
williamr@2
   448
        * with the listed ISP-types will be shown. Second filtering possibility
williamr@2
   449
        * (aBearerFilter) is the desired bearer type. The possible values are 
williamr@2
   450
        * the values of the TApBearerType enum type and their combinations, as
williamr@2
   451
        * in case of the ISP type. The ordering of the list can be specified 
williamr@2
   452
        * with the aSortType parameter. It can have the following values:
williamr@2
   453
        * KEApSortUidAscending: The sorting is done according to the ID of 
williamr@2
   454
        *   the access points in ascending order.
williamr@2
   455
        * KEApSortUidDescending: The sorting is done according to the ID of 
williamr@2
   456
        *   the access points in descending order.
williamr@2
   457
        * KEApSortNameAscending: The sorting is done according to the name of
williamr@2
   458
        *   the access points in ascending order.
williamr@2
   459
        * KEApSortNameDescending: The sorting is done according to the name of
williamr@2
   460
        *   the access points in descending order.
williamr@2
   461
        * Caution! The ordering values can not be combined!
williamr@2
   462
        * @param aDb A database to work on
williamr@2
   463
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   464
        *   select or edit an ap.
williamr@2
   465
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   466
        *   list type.
williamr@2
   467
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   468
        *   menu type.
williamr@2
   469
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   470
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   471
        * @param aSortType Specifies the sort order to use.
williamr@2
   472
        * @param aReqIpvType Specifies whether the caller would like to 
williamr@2
   473
        *   have IPv4, IPv6 or both access points. If it is IPv6 or Both, 
williamr@2
   474
        *   in case of IPv6 support is available as a feature, it will be 
williamr@2
   475
        *   supported. If IPv6 feature is not supported by the phone, it 
williamr@2
   476
        *   simply defaults to the normal IPv4 version.
williamr@2
   477
        *   If it is IPv4, it uses the default IPv4 version independently 
williamr@2
   478
        *   from IPv6 feature beeing available or not.
williamr@2
   479
        * @return The constructed CApSettingsHandler object.
williamr@2
   480
        *
williamr@2
   481
        * @deprecated
williamr@2
   482
        */
williamr@2
   483
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   484
                        CActiveApDb& aDb,
williamr@2
   485
                        TBool aStartWithSelection,
williamr@2
   486
                        TSelectionListType aListType,
williamr@2
   487
                        TSelectionMenuType aSelMenuType,
williamr@2
   488
                        TInt aIspFilter,
williamr@2
   489
                        TInt aBearerFilter,
williamr@2
   490
                        TInt aSortType,
williamr@2
   491
                        TInt aReqIpvType
williamr@2
   492
                        );
williamr@2
   493
williamr@2
   494
williamr@2
   495
williamr@2
   496
williamr@2
   497
        /**
williamr@2
   498
        * Two-phased constructor. Leaves on failure.
williamr@2
   499
        * This function shall be used to create the access point 
williamr@2
   500
        * settings/selection handling UI object.It is customizable through the
williamr@2
   501
        * parameters. This object is a small layer above the UI part and
williamr@2
   502
        * it provides a standard interface to select, edit, create access 
williamr@2
   503
        * points. It has two main parts, Select and Edit. The first parameter, 
williamr@2
   504
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
   505
        * In case of selection, there is the possibility to use this module in
williamr@2
   506
        * many applications. For this, two layouts are implemented, one is 
williamr@2
   507
        * list pane used by General Settings which provides the list in a 
williamr@2
   508
        * list-pane. The other layout is for the other applications requiring 
williamr@2
   509
        * access point selection, a popup-list style as the decision was that 
williamr@2
   510
        * General Settings will use list-pane and all other apps. popup-list 
williamr@2
   511
        * style. It is the caller who selects the style so if spec. says 
williamr@2
   512
        * otherwise, this module still can be used.
williamr@2
   513
        * It is also possible to start the UI without selection, so if any 
williamr@2
   514
        * module has a 'linked/default/etc.' access point and stored it's UID,
williamr@2
   515
        * the module can simply call the editor part of the UI without having
williamr@2
   516
        * to select the AP once more.
williamr@2
   517
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   518
        * construction parameters are ignored and after construction caller 
williamr@2
   519
        * can simply call RunSettingsL(..).
williamr@2
   520
        * In case of selection, a lot of other parameters can be specified to
williamr@2
   521
        * fulfil all requirements. There are three types of Options menu 
williamr@2
   522
        * available: EApSettingsSelMenuNormal, EApSettingsSelMenuSelectOnly,
williamr@2
   523
        * EApSettingsSelMenuSelectNormal.
williamr@2
   524
        * <br>
williamr@2
   525
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, no way to edit,
williamr@2
   526
        *   delete, create, etc.
williamr@2
   527
        * <br>
williamr@2
   528
        * -EApSettingsSelMenuNormal:Options menu specified in General Settings,
williamr@2
   529
        *   contains Edit, Delete, Create new, etc. menu items.
williamr@2
   530
        * <br>
williamr@2
   531
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal 
williamr@2
   532
        *   BUT the first item is Select. This one makes it possible to select 
williamr@2
   533
        *   an access point and also possible to edit, create, delete, etc.
williamr@2
   534
        * <br>
williamr@2
   535
        * The following three parameters specify the filtering and ordering 
williamr@2
   536
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   537
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   538
        * <br>
williamr@2
   539
        * KEApIspTypeInternetOnly: Filter allows only access points that are 
williamr@2
   540
        *   capable of only internet access.
williamr@2
   541
        * <br>
williamr@2
   542
        * KEApIspTypeWAPOnly: Filter allows only access points that are 
williamr@2
   543
        *   capable of only WAP access.
williamr@2
   544
        * <br>
williamr@2
   545
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are 
williamr@2
   546
        *   capable of internet AND WAP access.
williamr@2
   547
        * <br>
williamr@2
   548
        * KEApIspTypeWAPMandatory: Filter allows only access points that are 
williamr@2
   549
        *   capable of WAP access AND contain mandatory WAP settings.
williamr@2
   550
        * <br>
williamr@2
   551
        * KEApIspTypeAll: No filtering is done for the isp-type, all types of
williamr@2
   552
        *   access points are shown.
williamr@2
   553
        * <br>
williamr@2
   554
        * It is possible to combine them by simply adding/or-ing together the 
williamr@2
   555
        * values, filtering will be done in such a way that only access points 
williamr@2
   556
        * with the listed ISP-types will be shown.
williamr@2
   557
        * Second filtering possibility (aBearerFilter) is the desired bearer 
williamr@2
   558
        * type. The possible values are the values of the TApBearerType enum 
williamr@2
   559
        * type and their combinations, as in case of the ISP type.
williamr@2
   560
        * The ordering of the list can be specified with the aSortType 
williamr@2
   561
        * parameter. It can have the following values:
williamr@2
   562
        * KEApSortUidAscending: The sorting is done according to the ID of 
williamr@2
   563
        *   the access points in ascending order.
williamr@2
   564
        * KEApSortUidDescending: The sorting is done according to the ID of 
williamr@2
   565
        *   the access points in descending order.
williamr@2
   566
        * KEApSortNameAscending: The sorting is done according to the name of 
williamr@2
   567
        *   the access points in ascending order.
williamr@2
   568
        * KEApSortNameDescending: The sorting is done according to the name of 
williamr@2
   569
        *   the access points in descending order.
williamr@2
   570
        * Caution! The ordering values can not be combined!
williamr@2
   571
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   572
        *   select or edit an ap.
williamr@2
   573
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   574
        *   list type.
williamr@2
   575
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   576
        *   menu type.
williamr@2
   577
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   578
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   579
        * @param aSortType Specifies the sort order to use.
williamr@2
   580
        * @param aReqIpvType Specifies whether the caller would like to 
williamr@2
   581
        *   have IPv4, IPv6 or both access points. If it is IPv6 or Both, 
williamr@2
   582
        *   in case of IPv6 support is available as a feature, it will be 
williamr@2
   583
        *   supported. If IPv6 feature is not supported by the phone, it 
williamr@2
   584
        *   simply defaults to the normal IPv4 version.
williamr@2
   585
        *   If it is IPv4, it uses the default IPv4 version independently 
williamr@2
   586
        *   from IPv6 feature beeing available or not.
williamr@2
   587
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   588
        *   additional VPN filtering.
williamr@2
   589
        * @return The constructed CApSettingsHandler object.
williamr@2
   590
        *
williamr@2
   591
        * @deprecated
williamr@2
   592
        */
williamr@2
   593
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   594
                        TBool aStartWithSelection,
williamr@2
   595
                        TSelectionListType aListType,
williamr@2
   596
                        TSelectionMenuType aSelMenuType,
williamr@2
   597
                        TInt aIspFilter,
williamr@2
   598
                        TInt aBearerFilter,
williamr@2
   599
                        TInt aSortType,
williamr@2
   600
                        TInt aReqIpvType,
williamr@2
   601
                        TVpnFilterType aVpnFilterType
williamr@2
   602
                        );
williamr@2
   603
williamr@2
   604
williamr@2
   605
williamr@2
   606
        /**
williamr@2
   607
        * Two-phased constructor. Leaves on failure.
williamr@2
   608
        * This function shall be used to create the access point 
williamr@2
   609
        * settings/selection handling UI object. It is customizable through 
williamr@2
   610
        * the parameters. This object is a small layer above the UI part and
williamr@2
   611
        * it provides a standard interface to select, edit, create access 
williamr@2
   612
        * points. It has two main parts, Select and Edit. The first parameter,
williamr@2
   613
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
   614
        * In case of selection, there is the possibility to use this module in
williamr@2
   615
        * many applications. For this, two layouts are implemented, one is list
williamr@2
   616
        * pane used by General Settings which provides the list in a list-pane.
williamr@2
   617
        * The other layout is for the other applications requiring access point
williamr@2
   618
        * selection, a popup-list style as the decision was that General 
williamr@2
   619
        * Settings will use list-pane and all other apps. popup-list style. 
williamr@2
   620
        * It is the caller who selects the style so if spec. says otherwise,
williamr@2
   621
        * this module still can be used. It is also possible to start the UI 
williamr@2
   622
        * without selection, so if any module has a 'linked/default/etc.'
williamr@2
   623
        * access point and stored it's UID, the module can simply call the 
williamr@2
   624
        * editor part of the UI without having to select the AP once more.
williamr@2
   625
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   626
        * construction parameters are ignored and after construction caller can
williamr@2
   627
        * simply call RunSettingsL(..). In case of selection, a lot of other
williamr@2
   628
        * parameters can be specified to fulfil all requirements. There are 
williamr@2
   629
        * three types of Options menu available: EApSettingsSelMenuNormal, 
williamr@2
   630
        * EApSettingsSelMenuSelectOnly, EApSettingsSelMenuSelectNormal.
williamr@2
   631
        * <br>
williamr@2
   632
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, no way to edit,
williamr@2
   633
        *   delete, create, etc.
williamr@2
   634
        * <br>
williamr@2
   635
        * -EApSettingsSelMenuNormal:Options menu specified in General Settings,
williamr@2
   636
        *   contains Edit, Delete, Create new, etc. menu items.
williamr@2
   637
        * <br>
williamr@2
   638
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal 
williamr@2
   639
        *   BUT the first item is Select. This one makes it possible to select
williamr@2
   640
        *   an access point and also possible to edit, create, delete, etc.
williamr@2
   641
        * <br>
williamr@2
   642
        * The following three parameters specify the filtering and ordering
williamr@2
   643
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   644
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   645
        * <br>
williamr@2
   646
        * KEApIspTypeInternetOnly: Filter allows only access points that are 
williamr@2
   647
        *   capable of only internet access.
williamr@2
   648
        * <br>
williamr@2
   649
        * KEApIspTypeWAPOnly: Filter allows only access points that are 
williamr@2
   650
        *   capable of only WAP access.
williamr@2
   651
        * <br>
williamr@2
   652
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are 
williamr@2
   653
        *   capable of internet AND WAP access.
williamr@2
   654
        * <br>
williamr@2
   655
        * KEApIspTypeWAPMandatory: Filter allows only access points that are 
williamr@2
   656
        *   capable of WAP access AND contain mandatory WAP settings.
williamr@2
   657
        * <br>
williamr@2
   658
        * KEApIspTypeAll: No filtering is done for the isp-type, all types of
williamr@2
   659
        *   access points are shown.
williamr@2
   660
        * <br>
williamr@2
   661
        * It is possible to combine them by simply adding/or-ing together the
williamr@2
   662
        * values, filtering will be done in such a way that only access points
williamr@2
   663
        * with the listed ISP-types will be shown. Second filtering possibility
williamr@2
   664
        * (aBearerFilter) is the desired bearer type. The possible values are 
williamr@2
   665
        * the values of the TApBearerType enum type and their combinations, as
williamr@2
   666
        * in case of the ISP type. The ordering of the list can be specified 
williamr@2
   667
        * with the aSortType parameter. It can have the following values:
williamr@2
   668
        * KEApSortUidAscending: The sorting is done according to the ID of 
williamr@2
   669
        *   the access points in ascending order.
williamr@2
   670
        * KEApSortUidDescending: The sorting is done according to the ID of 
williamr@2
   671
        *   the access points in descending order.
williamr@2
   672
        * KEApSortNameAscending: The sorting is done according to the name of
williamr@2
   673
        *   the access points in ascending order.
williamr@2
   674
        * KEApSortNameDescending: The sorting is done according to the name of
williamr@2
   675
        *   the access points in descending order.
williamr@2
   676
        * Caution! The ordering values can not be combined!
williamr@2
   677
        * @param aDb A database to work on
williamr@2
   678
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   679
        *   select or edit an ap.
williamr@2
   680
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   681
        *   list type.
williamr@2
   682
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   683
        *   menu type.
williamr@2
   684
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   685
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   686
        * @param aSortType Specifies the sort order to use.
williamr@2
   687
        * @param aReqIpvType Specifies whether the caller would like to 
williamr@2
   688
        *   have IPv4, IPv6 or both access points. If it is IPv6 or Both, 
williamr@2
   689
        *   in case of IPv6 support is available as a feature, it will be 
williamr@2
   690
        *   supported. If IPv6 feature is not supported by the phone, it 
williamr@2
   691
        *   simply defaults to the normal IPv4 version.
williamr@2
   692
        *   If it is IPv4, it uses the default IPv4 version independently 
williamr@2
   693
        *   from IPv6 feature beeing available or not.
williamr@2
   694
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   695
        *   additional VPN filtering.
williamr@2
   696
        * @return The constructed CApSettingsHandler object.
williamr@2
   697
        *
williamr@2
   698
        * @deprecated
williamr@2
   699
        */
williamr@2
   700
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   701
                        CActiveApDb& aDb,
williamr@2
   702
                        TBool aStartWithSelection,
williamr@2
   703
                        TSelectionListType aListType,
williamr@2
   704
                        TSelectionMenuType aSelMenuType,
williamr@2
   705
                        TInt aIspFilter,
williamr@2
   706
                        TInt aBearerFilter,
williamr@2
   707
                        TInt aSortType,
williamr@2
   708
                        TInt aReqIpvType,
williamr@2
   709
                        TVpnFilterType aVpnFilterType
williamr@2
   710
                        );
williamr@2
   711
williamr@2
   712
williamr@2
   713
williamr@2
   714
williamr@2
   715
williamr@2
   716
        /**
williamr@2
   717
        * Two-phased constructor. Leaves on failure.
williamr@2
   718
        * This function shall be used to create the access point 
williamr@2
   719
        * settings/selection handling UI object. It is customizable through 
williamr@2
   720
        * the parameters. This object is a small layer above the UI part and
williamr@2
   721
        * it provides a standard interface to select, edit, create access 
williamr@2
   722
        * points. It has two main parts, Select and Edit. The first parameter,
williamr@2
   723
        * aStartWithSelection gives whether we would like to select or edit.
williamr@2
   724
        * In case of selection, there is the possibility to use this module in
williamr@2
   725
        * many applications. For this, two layouts are implemented, one is list
williamr@2
   726
        * pane used by General Settings which provides the list in a list-pane.
williamr@2
   727
        * The other layout is for the other applications requiring access point
williamr@2
   728
        * selection, a popup-list style as the decision was that General 
williamr@2
   729
        * Settings will use list-pane and all other apps. popup-list style. 
williamr@2
   730
        * It is the caller who selects the style so if spec. says otherwise,
williamr@2
   731
        * this module still can be used. It is also possible to start the UI 
williamr@2
   732
        * without selection, so if any module has a 'linked/default/etc.'
williamr@2
   733
        * access point and stored it's UID, the module can simply call the 
williamr@2
   734
        * editor part of the UI without having to select the AP once more.
williamr@2
   735
        * In case of editing only, (aStartWithSelection is EFalse), all other 
williamr@2
   736
        * construction parameters are ignored and after construction caller can
williamr@2
   737
        * simply call RunSettingsL(..). In case of selection, a lot of other
williamr@2
   738
        * parameters can be specified to fulfil all requirements. There are 
williamr@2
   739
        * three types of Options menu available: EApSettingsSelMenuNormal, 
williamr@2
   740
        * EApSettingsSelMenuSelectOnly, EApSettingsSelMenuSelectNormal.
williamr@2
   741
        * <br>
williamr@2
   742
        *-EApSettingsSelMenuSelectOnly: Only Select is visible, no way to edit,
williamr@2
   743
        *   delete, create, etc.
williamr@2
   744
        * <br>
williamr@2
   745
        * -EApSettingsSelMenuNormal:Options menu specified in General Settings,
williamr@2
   746
        *   contains Edit, Delete, Create new, etc. menu items.
williamr@2
   747
        * <br>
williamr@2
   748
        * -EApSettingsSelMenuSelectNormal: Same as in EApSettingsSelMenuNormal 
williamr@2
   749
        *   BUT the first item is Select. This one makes it possible to select
williamr@2
   750
        *   an access point and also possible to edit, create, delete, etc.
williamr@2
   751
        * <br>
williamr@2
   752
        * The following three parameters specify the filtering and ordering
williamr@2
   753
        * criteria for the selection list creation. First, it is possible to 
williamr@2
   754
        * specify which ISP-type we are looking for. The possible values are:
williamr@2
   755
        * <br>
williamr@2
   756
        * KEApIspTypeInternetOnly: Filter allows only access points that are 
williamr@2
   757
        *   capable of only internet access.
williamr@2
   758
        * <br>
williamr@2
   759
        * KEApIspTypeWAPOnly: Filter allows only access points that are 
williamr@2
   760
        *   capable of only WAP access.
williamr@2
   761
        * <br>
williamr@2
   762
        * KEApIspTypeInternetAndWAP: Filter allows only access points that are 
williamr@2
   763
        *   capable of internet AND WAP access.
williamr@2
   764
        * <br>
williamr@2
   765
        * KEApIspTypeWAPMandatory: Filter allows only access points that are 
williamr@2
   766
        *   capable of WAP access AND contain mandatory WAP settings.
williamr@2
   767
        * <br>
williamr@2
   768
        * KEApIspTypeAll: No filtering is done for the isp-type, all types of
williamr@2
   769
        *   access points are shown.
williamr@2
   770
        * <br>
williamr@2
   771
        * It is possible to combine them by simply adding/or-ing together the
williamr@2
   772
        * values, filtering will be done in such a way that only access points
williamr@2
   773
        * with the listed ISP-types will be shown. Second filtering possibility
williamr@2
   774
        * (aBearerFilter) is the desired bearer type. The possible values are 
williamr@2
   775
        * the values of the TApBearerType enum type and their combinations, as
williamr@2
   776
        * in case of the ISP type. The ordering of the list can be specified 
williamr@2
   777
        * with the aSortType parameter. It can have the following values:
williamr@2
   778
        * KEApSortUidAscending: The sorting is done according to the ID of 
williamr@2
   779
        *   the access points in ascending order.
williamr@2
   780
        * KEApSortUidDescending: The sorting is done according to the ID of 
williamr@2
   781
        *   the access points in descending order.
williamr@2
   782
        * KEApSortNameAscending: The sorting is done according to the name of
williamr@2
   783
        *   the access points in ascending order.
williamr@2
   784
        * KEApSortNameDescending: The sorting is done according to the name of
williamr@2
   785
        *   the access points in descending order.
williamr@2
   786
        * Caution! The ordering values can not be combined!
williamr@2
   787
        * @param aDb A database to work on
williamr@2
   788
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   789
        *   select or edit an ap.
williamr@2
   790
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   791
        *   list type.
williamr@2
   792
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   793
        *   menu type.
williamr@2
   794
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   795
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   796
        * @param aSortType Specifies the sort order to use.
williamr@2
   797
        * @param aReqIpvType Specifies whether the caller would like to 
williamr@2
   798
        *   have IPv4, IPv6 or both access points. If it is IPv6 or Both, 
williamr@2
   799
        *   in case of IPv6 support is available as a feature, it will be 
williamr@2
   800
        *   supported. If IPv6 feature is not supported by the phone, it 
williamr@2
   801
        *   simply defaults to the normal IPv4 version.
williamr@2
   802
        *   If it is IPv4, it uses the default IPv4 version independently 
williamr@2
   803
        *   from IPv6 feature beeing available or not.
williamr@2
   804
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   805
        *   additional VPN filtering.
williamr@2
   806
        * @param aIncludeEasyWlan a TBool indicating whether it should 
williamr@2
   807
        *   include the easy wlan AP in the list or not.
williamr@2
   808
        * @return The constructed CApSettingsHandler object.
williamr@2
   809
        *
williamr@2
   810
        * @deprecated
williamr@2
   811
        */
williamr@2
   812
        IMPORT_C static CApSettingsHandler* NewLC(
williamr@2
   813
                        CActiveApDb& aDb,
williamr@2
   814
                        TBool aStartWithSelection,
williamr@2
   815
                        TSelectionListType aListType,
williamr@2
   816
                        TSelectionMenuType aSelMenuType,
williamr@2
   817
                        TInt aIspFilter,
williamr@2
   818
                        TInt aBearerFilter,
williamr@2
   819
                        TInt aSortType,
williamr@2
   820
                        TInt aReqIpvType,
williamr@2
   821
                        TVpnFilterType aVpnFilterType,
williamr@2
   822
                        TBool aIncludeEasyWlan
williamr@2
   823
                        );
williamr@2
   824
williamr@2
   825
williamr@2
   826
williamr@2
   827
williamr@2
   828
        /**
williamr@2
   829
        * Destructor.
williamr@2
   830
        *
williamr@2
   831
        * @deprecated
williamr@2
   832
        */
williamr@2
   833
        IMPORT_C ~CApSettingsHandler();
williamr@2
   834
williamr@2
   835
williamr@2
   836
    protected:
williamr@2
   837
        /**
williamr@2
   838
        * Constructor.
williamr@2
   839
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   840
        *   select or edit an ap.
williamr@2
   841
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   842
        *   list type.
williamr@2
   843
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   844
        *   menu type.
williamr@2
   845
        *
williamr@2
   846
        * @deprecated
williamr@2
   847
        */
williamr@2
   848
        IMPORT_C CApSettingsHandler(
williamr@2
   849
                                    TBool aStartWithSelection,
williamr@2
   850
                                    TSelectionListType aListType,
williamr@2
   851
                                    TSelectionMenuType aSelMenuType
williamr@2
   852
                                    );
williamr@2
   853
williamr@2
   854
        /**
williamr@2
   855
        * Constructor.
williamr@2
   856
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   857
        *   select or edit an ap.
williamr@2
   858
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   859
        *   list type.
williamr@2
   860
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   861
        *   menu type.
williamr@2
   862
        * @param aHelpMajor Major help ID
williamr@2
   863
        *
williamr@2
   864
        * @deprecated
williamr@2
   865
        */
williamr@2
   866
        IMPORT_C CApSettingsHandler(
williamr@2
   867
                                    TBool aStartWithSelection,
williamr@2
   868
                                    TSelectionListType aListType,
williamr@2
   869
                                    TSelectionMenuType aSelMenuType,
williamr@2
   870
                                    TUid aHelpMajor
williamr@2
   871
                                    );
williamr@2
   872
williamr@2
   873
williamr@2
   874
        /**
williamr@2
   875
        * Constructor.
williamr@2
   876
        * @param aStartWithSelection A boolean value indicating whether to 
williamr@2
   877
        *   select or edit an ap.
williamr@2
   878
        * @param aListType A TSelectionListType enum indicating the desired
williamr@2
   879
        *   list type.
williamr@2
   880
        * @param aSelMenuType A TSelectionMenuType enum indicating the desired
williamr@2
   881
        *   menu type.
williamr@2
   882
        * @param aNeedIpv6Support Whether IPv6 is supported or not
williamr@2
   883
        */
williamr@2
   884
        CApSettingsHandler(
williamr@2
   885
                            TBool aStartWithSelection,
williamr@2
   886
                            TSelectionListType aListType,
williamr@2
   887
                            TSelectionMenuType aSelMenuType,
williamr@2
   888
                            TBool aNeedIpv6Support
williamr@2
   889
                            );
williamr@2
   890
williamr@2
   891
williamr@2
   892
williamr@2
   893
        /**
williamr@2
   894
        * Second-phase constructor.
williamr@2
   895
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   896
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   897
        * @param aSortType Specifies the sort order to use.
williamr@2
   898
        *
williamr@2
   899
        * @deprecated
williamr@2
   900
        */
williamr@2
   901
        IMPORT_C void ConstructL(
williamr@2
   902
                                TInt aIspFilter,
williamr@2
   903
                                TInt aBearerFilter,
williamr@2
   904
                                TInt aSortType
williamr@2
   905
                                );
williamr@2
   906
williamr@2
   907
williamr@2
   908
        /**
williamr@2
   909
        * Second-phase constructor.
williamr@2
   910
        * @param aDb A database to work on
williamr@2
   911
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   912
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   913
        * @param aSortType Specifies the sort order to use.
williamr@2
   914
        *
williamr@2
   915
        * @deprecated
williamr@2
   916
        */
williamr@2
   917
        IMPORT_C void ConstructL(
williamr@2
   918
                                CActiveApDb& aDb,
williamr@2
   919
                                TInt aIspFilter,
williamr@2
   920
                                TInt aBearerFilter,
williamr@2
   921
                                TInt aSortType
williamr@2
   922
                                );
williamr@2
   923
williamr@2
   924
williamr@2
   925
        /**
williamr@2
   926
        * Second-phase constructor.
williamr@2
   927
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   928
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   929
        * @param aSortType Specifies the sort order to use.
williamr@2
   930
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   931
        *   additional VPN filtering.
williamr@2
   932
        *
williamr@2
   933
        * @deprecated
williamr@2
   934
        */
williamr@2
   935
        IMPORT_C void ConstructL(
williamr@2
   936
                                TInt aIspFilter,
williamr@2
   937
                                TInt aBearerFilter,
williamr@2
   938
                                TInt aSortType,
williamr@2
   939
                                TVpnFilterType aVpnFilterType
williamr@2
   940
                                );
williamr@2
   941
williamr@2
   942
williamr@2
   943
        /**
williamr@2
   944
        * Second-phase constructor.
williamr@2
   945
        * @param aDb A database to work on
williamr@2
   946
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   947
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   948
        * @param aSortType Specifies the sort order to use.
williamr@2
   949
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   950
        *   additional VPN filtering.
williamr@2
   951
        *
williamr@2
   952
        * @deprecated
williamr@2
   953
        */
williamr@2
   954
        IMPORT_C void ConstructL(
williamr@2
   955
                                CActiveApDb& aDb,
williamr@2
   956
                                TInt aIspFilter,
williamr@2
   957
                                TInt aBearerFilter,
williamr@2
   958
                                TInt aSortType,
williamr@2
   959
                                TVpnFilterType aVpnFilterType
williamr@2
   960
                                );
williamr@2
   961
williamr@2
   962
williamr@2
   963
williamr@2
   964
williamr@2
   965
        /**
williamr@2
   966
        * Second-phase constructor.
williamr@2
   967
        * @param aDb A database to work on
williamr@2
   968
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   969
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   970
        * @param aSortType Specifies the sort order to use.
williamr@2
   971
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
   972
        *   additional VPN filtering.
williamr@2
   973
        * @param aIncludeEasyWlan a TBool indicating whether it should 
williamr@2
   974
        *   include the easy wlan AP in the list or not.
williamr@2
   975
        *
williamr@2
   976
        * @deprecated
williamr@2
   977
        */
williamr@2
   978
        IMPORT_C void ConstructL(
williamr@2
   979
                                CActiveApDb& aDb,
williamr@2
   980
                                TInt aIspFilter,
williamr@2
   981
                                TInt aBearerFilter,
williamr@2
   982
                                TInt aSortType,
williamr@2
   983
                                TVpnFilterType aVpnFilterType,
williamr@2
   984
                                TBool aIncludeEasyWlan
williamr@2
   985
                                );
williamr@2
   986
williamr@2
   987
williamr@2
   988
    public: // New functions
williamr@2
   989
        /**
williamr@2
   990
        * Sets the filtering used in the access point selection.
williamr@2
   991
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
   992
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
   993
        * @param aSortType Specifies the sort order to use.
williamr@2
   994
        * @return No return value. Leaves on error.
williamr@2
   995
        *
williamr@2
   996
        * @deprecated
williamr@2
   997
        */
williamr@2
   998
        IMPORT_C void SetFilterL(
williamr@2
   999
                                TInt aIspFilter,
williamr@2
  1000
                                TInt aBearerFilter,
williamr@2
  1001
                                TInt aSortType
williamr@2
  1002
                                );
williamr@2
  1003
williamr@2
  1004
williamr@2
  1005
        /**
williamr@2
  1006
        * Sets possible overrides of some texts.
williamr@2
  1007
        * By default, text is read from resources. This provides a way to 
williamr@2
  1008
        * change some of the text to a caller-supplied one. The text must 
williamr@2
  1009
        * be read from resource and must be already localized.
williamr@2
  1010
        * More than one text can be substituted, they are stored internally
williamr@2
  1011
        * in an array.
williamr@2
  1012
        * Currently not supported and supporting it is under discussion.
williamr@2
  1013
        * @param aText2Change TTextID to identify the text to be replaced with
williamr@2
  1014
        * @param aNewText Reference to the substitute text.
williamr@2
  1015
        *
williamr@2
  1016
        * @deprecated
williamr@2
  1017
        */
williamr@2
  1018
        IMPORT_C void SetTextOverrideL( TTextID aText2Change, 
williamr@2
  1019
                                        const TDesC& aNewText );
williamr@2
  1020
williamr@2
  1021
williamr@2
  1022
        /**
williamr@2
  1023
        * Gets possible overrides of a text.
williamr@2
  1024
        * By default, text is read from resources. This provides a way to 
williamr@2
  1025
        * change some of the text to a caller-supplied one. The text must
williamr@2
  1026
        * be read from resource and must be already localized.
williamr@2
  1027
        * More than one text can be substituted, they are stored internally
williamr@2
  1028
        * in an array.
williamr@2
  1029
        * Currently not supported and supporting it is under discussion
williamr@2
  1030
        * @param aTextID TTextID type to identify the text to be replaced with
williamr@2
  1031
        * @return Reference to the substitute text.
williamr@2
  1032
        *
williamr@2
  1033
        * @deprecated
williamr@2
  1034
        */
williamr@2
  1035
        IMPORT_C const TDesC& TextOverrideL( TTextID aTextId );
williamr@2
  1036
williamr@2
  1037
williamr@2
  1038
        /**
williamr@2
  1039
        * Starts the settings component.
williamr@2
  1040
        * Creates dialog(s) from scratch, launches and executes them.
williamr@2
  1041
        * Can leave with error codes.
williamr@2
  1042
        * @param TUint32 aHighlight The UID of the AP to highlight by default
williamr@2
  1043
        * @param TUint32 aSelected The UID of the access point selected 
williamr@2
  1044
        * by the user.
williamr@2
  1045
        * @return The accomplished task's flag-codes:
williamr@2
  1046
        * <br>
williamr@2
  1047
        * KApUiEventNone,
williamr@2
  1048
        * <br>
williamr@2
  1049
        * KApUiEventSelected,
williamr@2
  1050
        * <br>
williamr@2
  1051
        * KApUiEventCreatedBlank,
williamr@2
  1052
        * <br>
williamr@2
  1053
        * KApUiEventCreatedUsedOld,
williamr@2
  1054
        * <br>
williamr@2
  1055
        * KApUiEventEdited,
williamr@2
  1056
        * <br>
williamr@2
  1057
        * KApUiEventDeleted,
williamr@2
  1058
        * <br>
williamr@2
  1059
        * KApUiEventExitRequested
williamr@2
  1060
        * <br>and their combinations. ( Bitwise OR )
williamr@2
  1061
        * <br>
williamr@2
  1062
        * aSelected will be modified only if KApUiEventSelected is included 
williamr@2
  1063
        * in the flags.
williamr@2
  1064
        * <br>
williamr@2
  1065
        * In case it returns KApUiEventExitRequested, the user had choosen
williamr@2
  1066
        * the Exit option from the Options menu which means
williamr@2
  1067
        * that the caller application MUST exit!
williamr@2
  1068
        * <br>
williamr@2
  1069
        * Returns after completion!
williamr@2
  1070
        *
williamr@2
  1071
        * @deprecated
williamr@2
  1072
        */
williamr@2
  1073
        IMPORT_C TInt RunSettingsL( TUint32 aHighLight, TUint32& aSelected );
williamr@2
  1074
williamr@2
  1075
williamr@2
  1076
        /**
williamr@2
  1077
        * Component Validation Test.
williamr@2
  1078
        * @return KErrNone.
williamr@2
  1079
        *
williamr@2
  1080
        * @deprecated
williamr@2
  1081
        */
williamr@2
  1082
        IMPORT_C static TInt Cvt();
williamr@2
  1083
williamr@2
  1084
williamr@2
  1085
    protected:  // New functions
williamr@2
  1086
        /**
williamr@2
  1087
        * @Deprecated
williamr@2
  1088
        * Starts the settings component.
williamr@2
  1089
        * Creates dialog(s) from scratch, launches and executes them.
williamr@2
  1090
        * In case of error, leaves with error codes.
williamr@2
  1091
        * @param TUint32 aHighlight The UID of the AP to highlight by default
williamr@2
  1092
        * @param TUint32 aSelected The UID of the AP selected by the user
williamr@2
  1093
        * @return The accomplished task's flag-codes:
williamr@2
  1094
        * <br>
williamr@2
  1095
        * KApUiEventNone,
williamr@2
  1096
        * <br>
williamr@2
  1097
        * KApUiEventSelected,
williamr@2
  1098
        * <br>
williamr@2
  1099
        * KApUiEventCreatedBlank,
williamr@2
  1100
        * <br>
williamr@2
  1101
        * KApUiEventCreatedUsedOld,
williamr@2
  1102
        * <br>
williamr@2
  1103
        * KApUiEventEdited,
williamr@2
  1104
        * <br>
williamr@2
  1105
        * KApUiEventDeleted
williamr@2
  1106
        * <br>
williamr@2
  1107
        * and their combinations. ( Bitwise OR )
williamr@2
  1108
        * <br>
williamr@2
  1109
        * aSelected will be modified only if KApUiEventSelected is included 
williamr@2
  1110
        * in the flags.
williamr@2
  1111
        * <br>
williamr@2
  1112
        * Returns after completion!
williamr@2
  1113
        */
williamr@2
  1114
        TInt DoRunSettingsL( TUint32 aHighLight, TUint32& aSelected );
williamr@2
  1115
williamr@2
  1116
williamr@2
  1117
        /**
williamr@2
  1118
        * Starts the viewer component.
williamr@2
  1119
        * Creates dialog(s) from scratch, launches and executes it.
williamr@2
  1120
        * In case of error, leaves with error codes.
williamr@2
  1121
        * @param TUint32 aUid The UID of the AP to view/edit
williamr@2
  1122
        * @return Returns the completed task's flags
williamr@2
  1123
        * KApUiEventNone, KApUiEventSelected, KApUiEventCreatedBlank,
williamr@2
  1124
        * KApUiEventCreatedUsedOld, KApUiEventEdited, KApUiEventDeleted,
williamr@2
  1125
        * KApUiEventExitRequested and their combinations. ( Bitwise OR )
williamr@2
  1126
        * In case it returns KApUiEventExitRequested, the user had choosen
williamr@2
  1127
        * the Exit option from the Options menu which means
williamr@2
  1128
        * that the caller application MUST exit!
williamr@2
  1129
        * <br>
williamr@2
  1130
        * Returns after completion!
williamr@2
  1131
        *
williamr@2
  1132
        * @deprecated
williamr@2
  1133
        */
williamr@2
  1134
        IMPORT_C TInt RunViewerL( TUint32 aUid );
williamr@2
  1135
williamr@2
  1136
williamr@2
  1137
        /**
williamr@2
  1138
        * @Deprecated
williamr@2
  1139
        * Starts the viewer component.
williamr@2
  1140
        * Creates dialog(s) from scratch, launches and executes it.
williamr@2
  1141
        * In case of error, leaves with error codes.
williamr@2
  1142
        * @param TUint32 aUid The UID of the AP to view/edit
williamr@2
  1143
        * @return Returns the completed task's flags
williamr@2
  1144
        * KApUiEventNone, KApUiEventSelected, KApUiEventCreatedBlank,
williamr@2
  1145
        * KApUiEventCreatedUsedOld, KApUiEventEdited, KApUiEventDeleted,
williamr@2
  1146
        * KApUiEventExitRequested and their combinations. ( Bitwise OR )
williamr@2
  1147
        * Returns after completion!
williamr@2
  1148
        */
williamr@2
  1149
        TInt DoRunViewerL( TUint32 aUid );
williamr@2
  1150
williamr@2
  1151
williamr@2
  1152
        // handles the Delete access Point command.
williamr@2
  1153
        // @Deprecated
williamr@2
  1154
        void HandleApDeleteCmdL( TUint32 aUid, TBool aIsLast );
williamr@2
  1155
williamr@2
  1156
williamr@2
  1157
        // handles the Create blank new access Point command.
williamr@2
  1158
        // @Deprecated
williamr@2
  1159
        TUint32 HandleApBlankNewL( TInt aBearers, TInt aIsps );
williamr@2
  1160
williamr@2
  1161
williamr@2
  1162
        // handles the Create new access Point by using existing one command.
williamr@2
  1163
        // @Deprecated
williamr@2
  1164
        TUint32 HandleApUseOldNewL();
williamr@2
  1165
williamr@2
  1166
williamr@2
  1167
        // handles the Editing of the newly created access Point.
williamr@2
  1168
        // @Deprecated
williamr@2
  1169
        TUint32 EditAfterCreateL( TUint32 aUid, 
williamr@2
  1170
                                  CApAccessPointItem* aItem = NULL );
williamr@2
  1171
williamr@2
  1172
williamr@2
  1173
        /**
williamr@2
  1174
        * Second-phase internal constructor.
williamr@2
  1175
        * @param aDb A database to work on
williamr@2
  1176
        * @param aIspTypeFilter Filtering criteria on ISP type
williamr@2
  1177
        * @param aBearerFilter Filtering criteria on bearer type
williamr@2
  1178
        * @param aSortType Specifies the sort order to use.
williamr@2
  1179
        * @param aVpnFilterType a TVpnFilterType representing the possible 
williamr@2
  1180
        *   additional VPN filtering.
williamr@2
  1181
        * @param aIncludeEasyWlan a TBool indicating whether it should 
williamr@2
  1182
        *   include the easy wlan AP in the list or not.
williamr@2
  1183
        */
williamr@2
  1184
        void DoConstructL( CActiveApDb* aDb, TInt aIspFilter,
williamr@2
  1185
                           TInt aBearerFilter, TInt aSortType,
williamr@2
  1186
                           TVpnFilterType aVpnFilterType,
williamr@2
  1187
                           TBool aIncludeEasyWlan );
williamr@2
  1188
williamr@2
  1189
williamr@2
  1190
        /**
williamr@2
  1191
        * @Deprecated
williamr@2
  1192
        * Starts the selector component as a list
williamr@2
  1193
        * Creates dialog(s) from scratch, launches and executes them.
williamr@2
  1194
        * In case of error, leaves with error codes.
williamr@2
  1195
        * @param TUint32 aHighlight The UID of the AP to highlight by default
williamr@2
  1196
        * @param TUint32 aSelected The UID of the AP selected by the user
williamr@2
  1197
        * @return The accomplished task's flag-codes:
williamr@2
  1198
        * <br>
williamr@2
  1199
        * KApUiEventNone,
williamr@2
  1200
        * <br>
williamr@2
  1201
        * KApUiEventSelected,
williamr@2
  1202
        * <br>
williamr@2
  1203
        * KApUiEventCreatedBlank,
williamr@2
  1204
        * <br>
williamr@2
  1205
        * KApUiEventCreatedUsedOld,
williamr@2
  1206
        * <br>
williamr@2
  1207
        * KApUiEventEdited,
williamr@2
  1208
        * <br>
williamr@2
  1209
        * KApUiEventDeleted
williamr@2
  1210
        * <br>
williamr@2
  1211
        * and their combinations. ( Bitwise OR )
williamr@2
  1212
        * <br>
williamr@2
  1213
        * aSelected will be modified only if KApUiEventSelected is included 
williamr@2
  1214
        * in the flags.
williamr@2
  1215
        * <br>
williamr@2
  1216
        * Returns after completion!
williamr@2
  1217
        */
williamr@2
  1218
        void DoRunListSettingsL( TUint32 aHighLight, TUint32& aSelected );
williamr@2
  1219
williamr@2
  1220
williamr@2
  1221
        /**
williamr@2
  1222
        * @Deprecated        
williamr@2
  1223
        * Starts the selector component in a setting page
williamr@2
  1224
        * Creates dialog(s) from scratch, launches and executes them.
williamr@2
  1225
        * In case of error, leaves with error codes.
williamr@2
  1226
        * @param TUint32 aHighlight The UID of the AP to highlight by default
williamr@2
  1227
        * @param TUint32 aSelected The UID of the AP selected by the user
williamr@2
  1228
        * @return The accomplished task's flag-codes:
williamr@2
  1229
        * <br>
williamr@2
  1230
        * KApUiEventNone,
williamr@2
  1231
        * <br>
williamr@2
  1232
        * KApUiEventSelected,
williamr@2
  1233
        * <br>
williamr@2
  1234
        * KApUiEventCreatedBlank,
williamr@2
  1235
        * <br>
williamr@2
  1236
        * KApUiEventCreatedUsedOld,
williamr@2
  1237
        * <br>
williamr@2
  1238
        * KApUiEventEdited,
williamr@2
  1239
        * <br>
williamr@2
  1240
        * KApUiEventDeleted
williamr@2
  1241
        * <br>
williamr@2
  1242
        * and their combinations. ( Bitwise OR )
williamr@2
  1243
        * <br>
williamr@2
  1244
        * aSelected will be modified only if KApUiEventSelected is included
williamr@2
  1245
        * in the flags.
williamr@2
  1246
        * <br>
williamr@2
  1247
        * Returns after completion!
williamr@2
  1248
        */
williamr@2
  1249
        void DoRunSetPageSettingsL( TUint32 aHighLight, TUint32& aSelected );
williamr@2
  1250
williamr@2
  1251
williamr@2
  1252
        /**
williamr@2
  1253
        * @Deprecated
williamr@2
  1254
        * handles the Create new access Point by using existing one command.
williamr@2
  1255
        * Called after user has selected the AP to copy
williamr@2
  1256
        * Creates the new Ap and offers it for editing.
williamr@2
  1257
        * @param aSelected The UID of the AP to copy. Shall not be KErrNone.
williamr@2
  1258
        * @return The UID of the newly created Ap
williamr@2
  1259
        */
williamr@2
  1260
        TUint32 DoHandleApUseOldNewL( TUint32 aSelected );
williamr@2
  1261
williamr@2
  1262
        /**
williamr@2
  1263
        * @Deprecated
williamr@2
  1264
        * Selects the Ap to Copy, returns its UID.
williamr@2
  1265
        * If not selected, KErrNone is returned
williamr@2
  1266
        */
williamr@2
  1267
        TUint32 SelectApToCopyL();
williamr@2
  1268
williamr@2
  1269
williamr@2
  1270
        /**
williamr@2
  1271
        * @Deprecated
williamr@2
  1272
        * handles the Create blank new access Point command.
williamr@2
  1273
        */
williamr@2
  1274
        TUint32 DoHandleApBlankNewL( TInt aBearers, TInt aIsps );
williamr@2
  1275
williamr@2
  1276
williamr@2
  1277
        /**
williamr@2
  1278
        * @Deprecated
williamr@2
  1279
        * handles the Delete network group command.
williamr@2
  1280
        * @param aUid The uid of the network to delete
williamr@2
  1281
        */
williamr@2
  1282
        void HandleNetworkDeleteCmdL( TUint32 aUid );
williamr@2
  1283
williamr@2
  1284
williamr@2
  1285
        /**
williamr@2
  1286
        * @Deprecated
williamr@2
  1287
        * Gets the local variant value 
williamr@2
  1288
        * @return A TInt stating the variant
williamr@2
  1289
        */
williamr@2
  1290
        TInt GetVariantL();
williamr@2
  1291
williamr@2
  1292
williamr@2
  1293
        /**
williamr@2
  1294
        * @Deprecated
williamr@2
  1295
        * Gets confirmation about deleting an access point
williamr@2
  1296
        * @param aUid A TUint32 holding the WAP access point ID of the 
williamr@2
  1297
        * access point to be deleted.
williamr@2
  1298
        * @param aIsLast A TBool specifying whether the access point to be 
williamr@2
  1299
        * deleted is the last one or not.
williamr@2
  1300
        * @return A TInt stating the result
williamr@2
  1301
        */
williamr@2
  1302
        TInt ConfirmDeleteL( TUint32 aUid, TBool aIsLast );
williamr@2
  1303
williamr@2
  1304
williamr@2
  1305
        /**
williamr@2
  1306
        * @Deprecated
williamr@2
  1307
        * Wrapper for the public API
williamr@2
  1308
        */
williamr@2
  1309
        void HandleRunSettingsL( TUint32 aHighLight, TUint32& aSelected );
williamr@2
  1310
        
williamr@2
  1311
williamr@2
  1312
    protected:  // Functions from base classes
williamr@2
  1313
williamr@2
  1314
        friend class CApSettingsDlg;
williamr@2
  1315
        friend class CApSelectorDialog;
williamr@2
  1316
        friend class CApSelPopupList;
williamr@2
  1317
        friend class CApNetSelPopupList;
williamr@2
  1318
williamr@2
  1319
    private:
williamr@2
  1320
        /**
williamr@2
  1321
        * @Deprecated
williamr@2
  1322
        * Selects an appropriate bearer type for a given item according to 
williamr@2
  1323
        * the current filtering criterias
williamr@2
  1324
        * @param aBearers The current bearer filter set
williamr@2
  1325
        * @param aItem The CApAccessPointItem whoose bearer type is to be set.
williamr@2
  1326
        */
williamr@2
  1327
        void ChooseBearerTypeL( TInt aBearers, CApAccessPointItem& aItem );
williamr@2
  1328
williamr@2
  1329
        /**
williamr@2
  1330
        * @Deprecated
williamr@2
  1331
        * Duplciates an existing access point identified by the passed WAP ID
williamr@2
  1332
        * @param aUid The WAP Access Point ID of the access point to duplicate
williamr@2
  1333
        * @return The WAP Access Point ID of the newly created access point.
williamr@2
  1334
        */
williamr@2
  1335
        TUint32 HandleDuplicateL( TUint32 aUid );
williamr@2
  1336
williamr@2
  1337
williamr@2
  1338
    private: //data
williamr@2
  1339
        TBool                   iStartWithSelection;
williamr@2
  1340
        TSelectionListType      iListType;
williamr@2
  1341
        TSelectionMenuType      iSelMenuType;
williamr@2
  1342
 
williamr@2
  1343
        TInt                    iIspFilter;
williamr@2
  1344
        TInt                    iBearerFilter;
williamr@2
  1345
        TApSetHandlerExtra*     iExt;           // Extra data holder structure
williamr@2
  1346
williamr@2
  1347
        TInt                    iReqIpvType;    // Default is IPv4
williamr@2
  1348
williamr@2
  1349
// replacing iModel with iImpl, no size change
williamr@2
  1350
//        CApSettingsModel*       iModel;   
williamr@2
  1351
        CApSettingsHandlerImpl* iImpl;          // owned
williamr@2
  1352
        
williamr@2
  1353
        CTextOverrides*         iTextOverrides;
williamr@2
  1354
        TUint32                 iEventStore;    // to hold the events
williamr@2
  1355
        TUid                    iHelpMajor;
williamr@2
  1356
williamr@2
  1357
#ifdef __TEST_OOMDEBUG
williamr@2
  1358
        TBool                           iMemTestOn;
williamr@2
  1359
#endif // __TEST_OOMDEBUG
williamr@2
  1360
williamr@2
  1361
    };
williamr@2
  1362
williamr@2
  1363
#endif
williamr@2
  1364
williamr@2
  1365
// End of File