apengine/apsettingshandlerui/src/apsettingshandlerui.cpp
changeset 71 9f263f780e41
parent 70 ac5daea24fb0
child 72 0c32cf868819
equal deleted inserted replaced
70:ac5daea24fb0 71:9f263f780e41
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Defines the main handler, CApSettingsHandler and public API for 
       
    16 *       the Access Point settings.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <ActiveApDb.h>
       
    23 
       
    24 #include "ApSettingsHandlerUI.h"
       
    25 #include "ApsettingshandleruiImpl.h"
       
    26 #include "ApSettingsHandlerLogger.h"
       
    27 #include <data_caging_path_literals.hrh>
       
    28 
       
    29 
       
    30 // UID of general settings app, in which help texts are included
       
    31 const   TUid    KHelpUidApSettingsHandler = { 0x100058EC };
       
    32 
       
    33 
       
    34 // ================= MEMBER FUNCTIONS =======================
       
    35 
       
    36 // ---------------------------------------------------------
       
    37 // CApSettingsHandler::NewLC
       
    38 // ---------------------------------------------------------
       
    39 //
       
    40 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
    41                                          TBool aStartWithSelection,
       
    42                                          TSelectionListType aListType,
       
    43                                          TSelectionMenuType aSelMenuType,
       
    44                                          TInt aIspFilter,
       
    45                                          TInt aBearerFilter,
       
    46                                          TInt aSortType )
       
    47     {
       
    48     return NULL;
       
    49     }
       
    50 
       
    51 
       
    52 
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // CApSettingsHandler::NewLC
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
    59                                             CActiveApDb& aDb,
       
    60                                             TBool aStartWithSelection,
       
    61                                             TSelectionListType aListType,
       
    62                                             TSelectionMenuType aSelMenuType,
       
    63                                             TInt aIspFilter,
       
    64                                             TInt aBearerFilter,
       
    65                                             TInt aSortType
       
    66                                             )
       
    67     {
       
    68     return NULL;
       
    69     }
       
    70 
       
    71 
       
    72 
       
    73 // ---------------------------------------------------------
       
    74 // CApSettingsHandler::NewLC
       
    75 // ---------------------------------------------------------
       
    76 //
       
    77 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
    78                                          TBool aStartWithSelection,
       
    79                                          TSelectionListType aListType,
       
    80                                          TSelectionMenuType aSelMenuType,
       
    81                                          TInt aIspFilter,
       
    82                                          TInt aBearerFilter,
       
    83                                          TInt aSortType,
       
    84                                          TInt aReqIpvType
       
    85                                          )
       
    86     {
       
    87     return NULL;
       
    88     }
       
    89 
       
    90 
       
    91 
       
    92 
       
    93 // ---------------------------------------------------------
       
    94 // CApSettingsHandler::NewLC
       
    95 // ---------------------------------------------------------
       
    96 //
       
    97 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
    98                                             CActiveApDb& aDb,
       
    99                                             TBool aStartWithSelection,
       
   100                                             TSelectionListType aListType,
       
   101                                             TSelectionMenuType aSelMenuType,
       
   102                                             TInt aIspFilter,
       
   103                                             TInt aBearerFilter,
       
   104                                             TInt aSortType,
       
   105                                             TInt aReqIpvType
       
   106                                             )
       
   107     {
       
   108     return NULL;
       
   109     }
       
   110 
       
   111 
       
   112 
       
   113 
       
   114 
       
   115 // ---------------------------------------------------------
       
   116 // CApSettingsHandler::NewLC
       
   117 // ---------------------------------------------------------
       
   118 //
       
   119 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
   120                                         TBool aStartWithSelection,
       
   121                                         TSelectionListType aListType,
       
   122                                         TSelectionMenuType aSelMenuType,
       
   123                                         TInt aIspFilter,
       
   124                                         TInt aBearerFilter,
       
   125                                         TInt aSortType,
       
   126                                         TInt aReqIpvType,
       
   127                                         TVpnFilterType aVpnFilterType
       
   128                                             )
       
   129     {
       
   130     return NULL;
       
   131     }
       
   132 
       
   133 
       
   134 // ---------------------------------------------------------
       
   135 // CApSettingsHandler::NewLC
       
   136 // ---------------------------------------------------------
       
   137 //
       
   138 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
   139                                             CActiveApDb& aDb,
       
   140                                             TBool aStartWithSelection,
       
   141                                             TSelectionListType aListType,
       
   142                                             TSelectionMenuType aSelMenuType,
       
   143                                             TInt aIspFilter,
       
   144                                             TInt aBearerFilter,
       
   145                                             TInt aSortType,
       
   146                                             TInt aReqIpvType,
       
   147                                             TVpnFilterType aVpnFilterType
       
   148                                             )
       
   149     {
       
   150     return NULL;
       
   151     }
       
   152 
       
   153 
       
   154 
       
   155 
       
   156 
       
   157 
       
   158 // ---------------------------------------------------------
       
   159 // CApSettingsHandler::NewLC
       
   160 // ---------------------------------------------------------
       
   161 //
       
   162 EXPORT_C CApSettingsHandler* CApSettingsHandler::NewLC(
       
   163                                         CActiveApDb& aDb,
       
   164                                         TBool aStartWithSelection,
       
   165                                         TSelectionListType aListType,
       
   166                                         TSelectionMenuType aSelMenuType,
       
   167                                         TInt aIspFilter,
       
   168                                         TInt aBearerFilter,
       
   169                                         TInt aSortType,
       
   170                                         TInt aReqIpvType,
       
   171                                         TVpnFilterType aVpnFilterType,
       
   172                                         TBool aIncludeEasyWlan
       
   173                                         )
       
   174     {
       
   175     return NULL;    
       
   176     }
       
   177 
       
   178 
       
   179 // Destructor
       
   180 EXPORT_C CApSettingsHandler::~CApSettingsHandler()
       
   181     {
       
   182     }
       
   183 
       
   184 
       
   185 
       
   186 // Constructor
       
   187 EXPORT_C CApSettingsHandler::CApSettingsHandler( TBool aStartWithSelection,
       
   188                                                 TSelectionListType aListType,
       
   189                                                 TSelectionMenuType aSelMenuType
       
   190                                                 )
       
   191 :iStartWithSelection( aStartWithSelection ),
       
   192 iListType( aListType ),
       
   193 iSelMenuType( aSelMenuType ),
       
   194 iIspFilter( KEApIspTypeAll ),
       
   195 iBearerFilter( EApBearerTypeAll ),
       
   196 iReqIpvType( EIPv4 ),
       
   197 iEventStore( KApUiEventNone )
       
   198     {
       
   199     }
       
   200 
       
   201 
       
   202 
       
   203 
       
   204 
       
   205 // Constructor
       
   206 CApSettingsHandler::CApSettingsHandler( TBool aStartWithSelection,
       
   207                                         TSelectionListType aListType,
       
   208                                         TSelectionMenuType aSelMenuType,
       
   209                                         TInt aReqIpvType
       
   210                                         )
       
   211 :iStartWithSelection( aStartWithSelection ),
       
   212 iListType( aListType ),
       
   213 iSelMenuType( aSelMenuType ),
       
   214 iIspFilter( KEApIspTypeAll ),
       
   215 iBearerFilter( EApBearerTypeAll ),
       
   216 iReqIpvType( aReqIpvType ),
       
   217 iEventStore( KApUiEventNone )
       
   218     {
       
   219     }
       
   220 
       
   221 
       
   222 
       
   223 // ---------------------------------------------------------
       
   224 // CApSettingsHandler::ConstructL
       
   225 // ---------------------------------------------------------
       
   226 //
       
   227 EXPORT_C void CApSettingsHandler::ConstructL(   TInt aIspFilter,
       
   228                                                 TInt aBearerFilter,
       
   229                                                 TInt aSortType )
       
   230     {
       
   231     }
       
   232 
       
   233 
       
   234 
       
   235 // ---------------------------------------------------------
       
   236 // CApSettingsHandler::ConstructL
       
   237 // ---------------------------------------------------------
       
   238 //
       
   239 EXPORT_C void CApSettingsHandler::ConstructL(   CActiveApDb& aDb,
       
   240                                                 TInt aIspFilter,
       
   241                                                 TInt aBearerFilter,
       
   242                                                 TInt aSortType )
       
   243     {
       
   244     }
       
   245 
       
   246 
       
   247 
       
   248 // ---------------------------------------------------------
       
   249 // CApSettingsHandler::ConstructL
       
   250 // ---------------------------------------------------------
       
   251 //
       
   252 EXPORT_C void CApSettingsHandler::ConstructL(   
       
   253                                              TInt aIspFilter,
       
   254                                              TInt aBearerFilter,
       
   255                                              TInt aSortType,
       
   256                                              TVpnFilterType aVpnFilterType
       
   257                                             )
       
   258     {
       
   259     }
       
   260 
       
   261 
       
   262 
       
   263 // ---------------------------------------------------------
       
   264 // CApSettingsHandler::ConstructL
       
   265 // ---------------------------------------------------------
       
   266 //
       
   267 EXPORT_C void CApSettingsHandler::ConstructL(
       
   268                                              CActiveApDb& aDb,
       
   269                                              TInt aIspFilter,
       
   270                                              TInt aBearerFilter,
       
   271                                              TInt aSortType,
       
   272                                              TVpnFilterType aVpnFilterType
       
   273                                              )
       
   274     {
       
   275     }
       
   276 
       
   277 
       
   278 
       
   279 
       
   280 // ---------------------------------------------------------
       
   281 // CApSettingsHandler::ConstructL
       
   282 // ---------------------------------------------------------
       
   283 //
       
   284 EXPORT_C void CApSettingsHandler::ConstructL(
       
   285                                         CActiveApDb& aDb,
       
   286                                         TInt aIspFilter,
       
   287                                         TInt aBearerFilter,
       
   288                                         TInt aSortType,
       
   289                                         TVpnFilterType aVpnFilterType,
       
   290                                         TBool aIncludeEasyWlan
       
   291                                         )
       
   292     {
       
   293     }
       
   294 
       
   295 
       
   296 // ---------------------------------------------------------
       
   297 // CApSettingsHandler::SetFilter
       
   298 // ---------------------------------------------------------
       
   299 //
       
   300 EXPORT_C void CApSettingsHandler::SetFilterL(   TInt aIspFilter,
       
   301                                                 TInt aBearerFilter,
       
   302                                                 TInt aSortType )
       
   303     {
       
   304     }
       
   305 
       
   306 
       
   307 
       
   308 
       
   309 // ---------------------------------------------------------
       
   310 // CApSettingsHandler::SetTextOverrideL
       
   311 // ---------------------------------------------------------
       
   312 //
       
   313 EXPORT_C void CApSettingsHandler::SetTextOverrideL( TTextID aText2Change,
       
   314                                                     const TDesC& aNewText )
       
   315     {
       
   316     }
       
   317 
       
   318 
       
   319 // ---------------------------------------------------------
       
   320 // CApSettingsHandler::TextOverrideL
       
   321 // ---------------------------------------------------------
       
   322 //
       
   323 EXPORT_C const TDesC& CApSettingsHandler::TextOverrideL( TTextID aTextId )
       
   324     {
       
   325     User::Leave( KErrNotSupported );
       
   326     }
       
   327 
       
   328 
       
   329 
       
   330 // ---------------------------------------------------------
       
   331 // CApSettingsHandler::RunSettingsL
       
   332 // ---------------------------------------------------------
       
   333 //
       
   334 EXPORT_C TInt CApSettingsHandler::RunSettingsL( TUint32 aHighLight,
       
   335                                                 TUint32& aSelected )
       
   336     {
       
   337     return 0;
       
   338     }
       
   339 
       
   340 
       
   341 
       
   342 // ---------------------------------------------------------
       
   343 // CApSettingsHandler::Cvt()
       
   344 // ---------------------------------------------------------
       
   345 //
       
   346 EXPORT_C TInt CApSettingsHandler::Cvt()
       
   347     {
       
   348     return KErrNotSupported;
       
   349     }
       
   350 
       
   351 
       
   352 // ---------------------------------------------------------
       
   353 // CApSettingsHandler::DoRunSettingsL
       
   354 // ---------------------------------------------------------
       
   355 //
       
   356 TInt CApSettingsHandler::DoRunSettingsL( TUint32 /*aHighLight*/,
       
   357                                          TUint32& /*aSelected*/ )
       
   358     {
       
   359     User::Leave(KErrNotSupported);
       
   360     return KErrNotSupported;
       
   361     }
       
   362 
       
   363 
       
   364 // ---------------------------------------------------------
       
   365 // CApSettingsHandler::RunViewerL
       
   366 // ---------------------------------------------------------
       
   367 //
       
   368 EXPORT_C TInt CApSettingsHandler::RunViewerL( TUint32 aUid )
       
   369     {
       
   370     return 0;
       
   371     }
       
   372 
       
   373 
       
   374 
       
   375 // ---------------------------------------------------------
       
   376 // CApSettingsHandler::DoRunViewerL
       
   377 // ---------------------------------------------------------
       
   378 //
       
   379 TInt CApSettingsHandler::DoRunViewerL( TUint32 /*aUid*/ )
       
   380     {
       
   381     User::Leave(KErrNotSupported);
       
   382     return KErrNotSupported;
       
   383     }
       
   384 
       
   385 
       
   386 
       
   387 //----------------------------------------------------------
       
   388 // CApSettingsHandler::HandleApDeleteCmdL
       
   389 //----------------------------------------------------------
       
   390 //
       
   391 void CApSettingsHandler::HandleApDeleteCmdL( TUint32 /*aUid*/, 
       
   392                                              TBool /*aIsLast*/ )
       
   393     {
       
   394     User::Leave(KErrNotSupported);
       
   395     }
       
   396 
       
   397 
       
   398 //----------------------------------------------------------
       
   399 // CApSettingsHandler::HandleApBlankNewL
       
   400 //----------------------------------------------------------
       
   401 //
       
   402 TUint32 CApSettingsHandler::HandleApBlankNewL( TInt /*aBearers*/, 
       
   403                                                TInt /*aIsps*/ )
       
   404     {
       
   405     User::Leave(KErrNotSupported);
       
   406     return KErrNotSupported;
       
   407     }
       
   408 
       
   409 
       
   410 
       
   411 //----------------------------------------------------------
       
   412 // CApSettingsHandler::HandleApUseOldNewL
       
   413 //----------------------------------------------------------
       
   414 //
       
   415 TUint32 CApSettingsHandler::HandleApUseOldNewL()
       
   416     {
       
   417     User::Leave(KErrNotSupported);
       
   418     return KErrNone;
       
   419     }
       
   420 
       
   421 
       
   422 
       
   423 //----------------------------------------------------------
       
   424 // CApSettingsHandler::EditAfterCreateL
       
   425 //----------------------------------------------------------
       
   426 //
       
   427 TUint32 CApSettingsHandler::EditAfterCreateL( TUint32 /*aUid*/,
       
   428                                               CApAccessPointItem* /*aItem*/ )
       
   429     {
       
   430     User::Leave(KErrNotSupported);
       
   431     return KErrNotSupported;  
       
   432     }
       
   433 
       
   434 
       
   435 
       
   436 //----------------------------------------------------------
       
   437 // CApSettingsHandler::DoConstructL
       
   438 //----------------------------------------------------------
       
   439 //
       
   440 void CApSettingsHandler::DoConstructL( CActiveApDb* aDb,
       
   441                                        TInt aIspFilter,
       
   442                                        TInt aBearerFilter,
       
   443                                        TInt aSortType,
       
   444                                        TVpnFilterType aVpnFilterType,
       
   445                                        TBool aIncludeEasyWlan )
       
   446     {
       
   447     }
       
   448 
       
   449 
       
   450 
       
   451 
       
   452 //----------------------------------------------------------
       
   453 // CApSettingsHandler::DoRunSetPageSettingsL
       
   454 //----------------------------------------------------------
       
   455 //
       
   456 void CApSettingsHandler::DoRunSetPageSettingsL( TUint32 /*aHighLight*/,
       
   457                                                 TUint32& /*aSelected*/ )
       
   458     {
       
   459     User::Leave(KErrNotSupported);
       
   460     }
       
   461 
       
   462 
       
   463 
       
   464 //----------------------------------------------------------
       
   465 // CApSettingsHandler::DoRunListSettingsL
       
   466 //----------------------------------------------------------
       
   467 //
       
   468 void CApSettingsHandler::DoRunListSettingsL( TUint32 /*aHighLight*/,
       
   469                                              TUint32& /*aSelected*/ )
       
   470     {
       
   471     User::Leave(KErrNotSupported);
       
   472     }
       
   473 
       
   474 
       
   475 
       
   476 //----------------------------------------------------------
       
   477 // CApSettingsHandler::DoHandleApUseOldNewL
       
   478 //----------------------------------------------------------
       
   479 //
       
   480 TUint32 CApSettingsHandler::DoHandleApUseOldNewL( TUint32 /*aSelected*/ )
       
   481     {
       
   482     User::Leave(KErrNotSupported);
       
   483     return KErrNotSupported;
       
   484     }
       
   485 
       
   486 
       
   487 
       
   488 //----------------------------------------------------------
       
   489 // CApSettingsHandler::SelectApToCopyL
       
   490 //----------------------------------------------------------
       
   491 //
       
   492 TUint32 CApSettingsHandler::SelectApToCopyL()
       
   493     {
       
   494     User::Leave(KErrNotSupported);
       
   495     return KErrNotSupported;
       
   496     }
       
   497 
       
   498 
       
   499 
       
   500 //----------------------------------------------------------
       
   501 // CApSettingsHandler::DoHandleApBlankNewL
       
   502 //----------------------------------------------------------
       
   503 //
       
   504 TUint32 CApSettingsHandler::DoHandleApBlankNewL( TInt /*aBearers*/, TInt /*aIsps*/ )
       
   505     {
       
   506     User::Leave(KErrNotSupported);
       
   507     return KErrNotSupported;
       
   508     }
       
   509 
       
   510 
       
   511 
       
   512 
       
   513 //----------------------------------------------------------
       
   514 // CApSettingsHandler::HandleNetworkDeleteCmdL
       
   515 //----------------------------------------------------------
       
   516 //
       
   517 void CApSettingsHandler::HandleNetworkDeleteCmdL( TUint32 /*aUid*/ )
       
   518     {
       
   519     User::Leave(KErrNotSupported);
       
   520     }
       
   521 
       
   522 
       
   523 
       
   524 //----------------------------------------------------------
       
   525 // CApSettingsHandler::GetVariantL
       
   526 //----------------------------------------------------------
       
   527 //
       
   528 TInt CApSettingsHandler::GetVariantL()
       
   529     {
       
   530     User::Leave(KErrNotSupported);
       
   531     return KErrNotSupported;
       
   532     }
       
   533 
       
   534 
       
   535 //----------------------------------------------------------
       
   536 // CApSettingsHandler::ConfirmDeleteL
       
   537 //----------------------------------------------------------
       
   538 //
       
   539 TInt CApSettingsHandler::ConfirmDeleteL( TUint32 /*aUid*/, TBool /*aIsLast*/ )
       
   540     {
       
   541     User::Leave(KErrNotSupported);
       
   542     return KErrNotSupported;
       
   543     }
       
   544 
       
   545 
       
   546 
       
   547 //----------------------------------------------------------
       
   548 // CApSettingsHandler::HandleRunSettingsL
       
   549 //----------------------------------------------------------
       
   550 //
       
   551 void CApSettingsHandler::HandleRunSettingsL( TUint32 /*aHighLight*/, 
       
   552                                              TUint32& /*aSelected*/ )
       
   553     {
       
   554     User::Leave(KErrNotSupported);
       
   555     }
       
   556 
       
   557 
       
   558 
       
   559 //----------------------------------------------------------
       
   560 // CApSettingsHandler::ChooseBearerTypeL
       
   561 //----------------------------------------------------------
       
   562 //
       
   563 void CApSettingsHandler::ChooseBearerTypeL( TInt /*aBearers*/, 
       
   564                                             CApAccessPointItem& /*aItem*/ )
       
   565     {
       
   566     User::Leave(KErrNotSupported);
       
   567     }
       
   568 
       
   569 
       
   570 
       
   571 
       
   572 //----------------------------------------------------------
       
   573 // CApSettingsHandler::HandleDuplicateL
       
   574 //----------------------------------------------------------
       
   575 //
       
   576 TUint32 CApSettingsHandler::HandleDuplicateL( TUint32 /*aUid*/ )
       
   577     {
       
   578     User::Leave(KErrNotSupported);
       
   579     return KErrNotSupported;
       
   580     }
       
   581 
       
   582 
       
   583 // End of File
       
   584