apengine/apsettingshandlerui/src/ApSelectorDialog.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 dialog CApSelectorDialog for access point selection.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "APSettingsHandlerUIVariant.hrh"
       
    22 
       
    23 #include <aknnavide.h>
       
    24 #include <akntitle.h>
       
    25 #include <eikmenup.h>
       
    26 
       
    27 #include <ApListItem.h>
       
    28 #include <apsetui.rsg>
       
    29 
       
    30 #include <featmgr.h>
       
    31 
       
    32 #include "ApSelectorDialog.h"
       
    33 #include "ApSelectorListBoxModel.h"
       
    34 #include "ApSelectorListbox.h"
       
    35 #include "ApSettingsModel.h"
       
    36 #include "ApsettingshandleruiImpl.h"
       
    37 #include "ApSettingsHandlerUI.hrh"
       
    38 #include "TextOverrides.h"
       
    39 
       
    40 #include "ApSettingsHandlerLogger.h"
       
    41 
       
    42 #include <VpnApEngine.h>
       
    43 // CONSTANTS
       
    44 
       
    45 
       
    46 
       
    47 // ================= MEMBER FUNCTIONS =======================
       
    48 // ---------------------------------------------------------
       
    49 // CApSelectorDialog::ConstructAndRunLD
       
    50 // Constructs the dialog and runs it.
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 TInt CApSelectorDialog::ConstructAndRunLD( CApSettingsModel& aModel,
       
    54                                           CApSettingsHandlerImpl& aHandler,
       
    55                                           TUint32 aHighLight,
       
    56                                           TUint32& aSelected )
       
    57     {
       
    58     return 0;
       
    59     }
       
    60 
       
    61 
       
    62 
       
    63 
       
    64 // ---------------------------------------------------------
       
    65 // CApSelectorDialog::~CApSelectorDialog
       
    66 // Destructor
       
    67 // ---------------------------------------------------------
       
    68 //
       
    69 CApSelectorDialog::~CApSelectorDialog()
       
    70     {
       
    71     }
       
    72 
       
    73 
       
    74 
       
    75 // ---------------------------------------------------------
       
    76 // CApSelectorDialog::NewLC
       
    77 // Two-phase dconstructor, second phase is ConstructAndRunLD
       
    78 // ---------------------------------------------------------
       
    79 //
       
    80 CApSelectorDialog* CApSelectorDialog::NewL(
       
    81                                         TSelectionListType aListType,
       
    82                                         TSelectionMenuType aSelMenuType,
       
    83                                         TInt aIspFilter,
       
    84                                         TInt aBearerFilter,
       
    85                                         TInt aSortType,
       
    86                                         TUint32& aEventStore,
       
    87                                         TBool aNoEdit,
       
    88                                         TInt aReqIpvType
       
    89                                         )
       
    90     {
       
    91     return NULL;
       
    92     }
       
    93 
       
    94 
       
    95 
       
    96 
       
    97 // ---------------------------------------------------------
       
    98 // CApSelectorDialog::CApSelectorDialog
       
    99 // Constructor
       
   100 // ---------------------------------------------------------
       
   101 //
       
   102 CApSelectorDialog::CApSelectorDialog( TSelectionListType aListType,
       
   103                                       TSelectionMenuType aSelMenuType,
       
   104                                       TInt aIspFilter,
       
   105                                       TInt aBearerFilter,
       
   106                                       TInt aSortType,
       
   107                                       TUint32& aEventStore,
       
   108                                       TBool aNoEdit,
       
   109                                       TInt aReqIpvType
       
   110                                      )
       
   111 :iListType( aListType ),
       
   112 iSelMenuType( aSelMenuType ),
       
   113 iIspFilter( aIspFilter ),
       
   114 iBearerFilter( aBearerFilter ),
       
   115 iSortType( aSortType ),
       
   116 iEventStore( &aEventStore ),
       
   117 iNeedUnlock( EFalse ),
       
   118 iModelPassed( EFalse ),
       
   119 iExitReason( EExitNone ),
       
   120 iReqIpvType( aReqIpvType ),
       
   121 iInitialised( EFalse ),
       
   122 iNoEdit(aNoEdit)
       
   123     {
       
   124     }
       
   125 
       
   126 
       
   127 
       
   128 // ---------------------------------------------------------
       
   129 // CApSelectorDialog::InitTextsL
       
   130 // called before the dialog is shown
       
   131 // to initialize localized textual data
       
   132 // ---------------------------------------------------------
       
   133 //
       
   134 void CApSelectorDialog::InitTextsL()
       
   135     {
       
   136     }
       
   137 
       
   138 
       
   139 
       
   140 // ---------------------------------------------------------
       
   141 // CApSelectorDialog::HandleListboxDataChangeL
       
   142 // called before the dialog is shown to initialize listbox data
       
   143 // ---------------------------------------------------------
       
   144 //
       
   145 void CApSelectorDialog::HandleListboxDataChangeL()
       
   146     {
       
   147     }
       
   148 
       
   149 
       
   150 
       
   151 // ---------------------------------------------------------
       
   152 // CApSelectorDialog::SetTextOverrides
       
   153 // called by framework before dialog is shown
       
   154 // ---------------------------------------------------------
       
   155 //
       
   156 void CApSelectorDialog::SetTextOverrides( CTextOverrides *aOverrides )
       
   157     {
       
   158     }
       
   159 
       
   160 
       
   161 
       
   162 
       
   163 // ---------------------------------------------------------
       
   164 // CApSelectorDialog::CheckIfEmptyL()
       
   165 // called on activation and after the db has changed
       
   166 // used to handle empty list - query
       
   167 // ---------------------------------------------------------
       
   168 //
       
   169 void CApSelectorDialog::CheckIfEmptyL()
       
   170     {
       
   171     }
       
   172 
       
   173 
       
   174 // ---------------------------------------------------------
       
   175 // CApSelectorDialog::ActivateL()
       
   176 // called after the dialog is shown
       
   177 // used to handle empty list - query
       
   178 // ---------------------------------------------------------
       
   179 //
       
   180 void CApSelectorDialog::ActivateL()
       
   181     {
       
   182     }
       
   183 
       
   184 
       
   185 
       
   186 // ---------------------------------------------------------
       
   187 // CApSelectorDialog::GetHelpContext()
       
   188 // ---------------------------------------------------------
       
   189 //
       
   190 void CApSelectorDialog::GetHelpContext(TCoeHelpContext& aContext) const
       
   191     {
       
   192     }
       
   193 
       
   194 
       
   195 
       
   196 // ---------------------------------------------------------
       
   197 // CApSelectorDialog::HandleApDbEventLw
       
   198 // called by the active access point framework
       
   199 // ---------------------------------------------------------
       
   200 //
       
   201 void CApSelectorDialog::HandleApDbEventL( TEvent anEvent )
       
   202     {
       
   203     }
       
   204 
       
   205 
       
   206 
       
   207 // From MEikCommandObserver
       
   208 void CApSelectorDialog::ProcessCommandL( TInt aCommandId )
       
   209     {
       
   210     }
       
   211 
       
   212 
       
   213 
       
   214 
       
   215 // From MEikListBoxObserver
       
   216 void CApSelectorDialog::HandleListBoxEventL( CEikListBox* /*aListBox*/,
       
   217                                              TListBoxEvent aEventType )
       
   218     {
       
   219     }
       
   220 
       
   221 
       
   222 
       
   223 //----------------------------------------------------------
       
   224 // CApSelectorDialog::CreateCustomControlL
       
   225 //----------------------------------------------------------
       
   226 //
       
   227 SEikControlInfo CApSelectorDialog::CreateCustomControlL
       
   228 ( TInt aControlType )
       
   229     {
       
   230     User::Leave( KErrNotSupported );
       
   231     }
       
   232 
       
   233 
       
   234 //----------------------------------------------------------
       
   235 // CApSelectorDialog::DynInitMenuPaneL
       
   236 //----------------------------------------------------------
       
   237 //
       
   238 void CApSelectorDialog::DynInitMenuPaneL( TInt aResourceId,
       
   239                                          CEikMenuPane* aMenuPane )
       
   240     {
       
   241     }
       
   242 
       
   243 
       
   244 
       
   245 // ---------------------------------------------------------
       
   246 // CApSelectorDialog::OfferKeyEventL();
       
   247 // ---------------------------------------------------------
       
   248 //
       
   249 TKeyResponse CApSelectorDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
   250                                                TEventCode aType)
       
   251     {
       
   252     User::Leave( KErrNotSupported );
       
   253     }
       
   254 
       
   255 
       
   256 // ---------------------------------------------------------
       
   257 // CApSelectorDialog::PreLayoutDynInitL();
       
   258 // called by framework before dialog is shown
       
   259 // ---------------------------------------------------------
       
   260 //
       
   261 void CApSelectorDialog::PreLayoutDynInitL()
       
   262     {
       
   263     }
       
   264 
       
   265 
       
   266 // ---------------------------------------------------------
       
   267 // CApSelectorDialog::PreLayoutDynInitL();
       
   268 // called by framework before dialog is shown
       
   269 // ---------------------------------------------------------
       
   270 //
       
   271 void CApSelectorDialog::PostLayoutDynInitL()
       
   272     {
       
   273     }
       
   274 
       
   275 
       
   276 // ---------------------------------------------------------
       
   277 // CApSelectorDialog::OkToExitL( TInt aButtonId )
       
   278 // called by framework when the OK button is pressed
       
   279 // ---------------------------------------------------------
       
   280 //
       
   281 TBool CApSelectorDialog::OkToExitL( TInt aButtonId )
       
   282     {
       
   283     return EFalse;
       
   284     }
       
   285 
       
   286 
       
   287 // ---------------------------------------------------------
       
   288 // CApSelectorDialog::SetHighlighted()
       
   289 // called when needs to change the highlighting
       
   290 // ---------------------------------------------------------
       
   291 //
       
   292 void CApSelectorDialog::SetHighlighted()
       
   293     {
       
   294     }
       
   295 
       
   296 
       
   297 
       
   298 
       
   299 
       
   300 
       
   301 // ---------------------------------------------------------
       
   302 // CApSelectorDialog::DoProcessCommandL
       
   303 // called when needs to change the highlighting
       
   304 // ---------------------------------------------------------
       
   305 //
       
   306 void CApSelectorDialog::DoProcessCommandL( TInt aCommandId )
       
   307     {
       
   308     }
       
   309 
       
   310 
       
   311 
       
   312 // End of File
       
   313