apengine/apsettingshandlerui/src/ApNetSelPopupList.cpp
author hgs
Wed, 27 Oct 2010 17:43:56 +0300
changeset 70 ac5daea24fb0
permissions -rw-r--r--
201038
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
70
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*     Defines CApNetSelPopupList for access point selection.
hgs
parents:
diff changeset
    16
*
hgs
parents:
diff changeset
    17
*/
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
// INCLUDE FILES
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include <ApNetworkItem.h>
hgs
parents:
diff changeset
    23
#include <featmgr.h>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
#include "ApSettingsHandlerUI.hrh"
hgs
parents:
diff changeset
    26
 
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
#include "ApNetSelPopupList.h"
hgs
parents:
diff changeset
    29
#include "ApNetSelectorListBoxModel.h"
hgs
parents:
diff changeset
    30
#include "ApSettingsModel.h"
hgs
parents:
diff changeset
    31
#include <apsetui.rsg>
hgs
parents:
diff changeset
    32
#include "ApsettingshandleruiImpl.h"
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
hgs
parents:
diff changeset
    35
#include "ApSettingsHandlerLogger.h"
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
#include "AccessPointTextSettingPage.h"
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
#include <ApProtHandler.h>  // for protection of settings
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
// ================= MEMBER FUNCTIONS =======================
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
// ---------------------------------------------------------
hgs
parents:
diff changeset
    47
// CApNetSelPopupList::NewL
hgs
parents:
diff changeset
    48
// ---------------------------------------------------------
hgs
parents:
diff changeset
    49
//
hgs
parents:
diff changeset
    50
CApNetSelPopupList* CApNetSelPopupList::NewL( CApSettingsModel& aModel,
hgs
parents:
diff changeset
    51
                                       CApSettingsHandlerImpl& aHandler,
hgs
parents:
diff changeset
    52
                                       TInt& aCurrentSelectionIndex,
hgs
parents:
diff changeset
    53
                                       TInt& aPreferredUid,
hgs
parents:
diff changeset
    54
                                       TUint32& aEventStore,
hgs
parents:
diff changeset
    55
                                       CDesCArrayFlat* aItemArray,
hgs
parents:
diff changeset
    56
                                       TBool aNeedsNone )
hgs
parents:
diff changeset
    57
    {
hgs
parents:
diff changeset
    58
    return NULL;
hgs
parents:
diff changeset
    59
    }
hgs
parents:
diff changeset
    60
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
// ---------------------------------------------------------
hgs
parents:
diff changeset
    63
// CApNetSelPopupList::ConstructL
hgs
parents:
diff changeset
    64
// ---------------------------------------------------------
hgs
parents:
diff changeset
    65
//
hgs
parents:
diff changeset
    66
void CApNetSelPopupList::ConstructL()
hgs
parents:
diff changeset
    67
    {
hgs
parents:
diff changeset
    68
    }
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
// Destructor
hgs
parents:
diff changeset
    72
CApNetSelPopupList::~CApNetSelPopupList()
hgs
parents:
diff changeset
    73
    {
hgs
parents:
diff changeset
    74
    }
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
// Constructor
hgs
parents:
diff changeset
    79
CApNetSelPopupList::CApNetSelPopupList(
hgs
parents:
diff changeset
    80
                                 CApSettingsModel& aModel,
hgs
parents:
diff changeset
    81
                                 CApSettingsHandlerImpl& aHandler,
hgs
parents:
diff changeset
    82
                                 TInt& aIndex, TInt& aPreferredUid,
hgs
parents:
diff changeset
    83
                                 CDesCArrayFlat* aItemArray,
hgs
parents:
diff changeset
    84
                                 TUint32& aEventStore, TBool aNeedsNone
hgs
parents:
diff changeset
    85
                                 )
hgs
parents:
diff changeset
    86
:CAknRadioButtonSettingPage( R_POPUP_LIST_NETWORK_SETTING_PAGE, 
hgs
parents:
diff changeset
    87
                             aIndex, aItemArray ),
hgs
parents:
diff changeset
    88
iDataModel( &aModel ),
hgs
parents:
diff changeset
    89
iSelected( &aPreferredUid ),
hgs
parents:
diff changeset
    90
iHandler( &aHandler ),
hgs
parents:
diff changeset
    91
iEventStore( &aEventStore ),
hgs
parents:
diff changeset
    92
iNeedsNone( aNeedsNone ),
hgs
parents:
diff changeset
    93
iNeedUnlock( EFalse )
hgs
parents:
diff changeset
    94
    {
hgs
parents:
diff changeset
    95
    }
hgs
parents:
diff changeset
    96
hgs
parents:
diff changeset
    97
hgs
parents:
diff changeset
    98
hgs
parents:
diff changeset
    99
hgs
parents:
diff changeset
   100
hgs
parents:
diff changeset
   101
// ---------------------------------------------------------
hgs
parents:
diff changeset
   102
// CApNetSelPopupList::SetHighlighted()
hgs
parents:
diff changeset
   103
// called when needs to change the highlighting
hgs
parents:
diff changeset
   104
// ---------------------------------------------------------
hgs
parents:
diff changeset
   105
//
hgs
parents:
diff changeset
   106
void CApNetSelPopupList::SetHighlighted()
hgs
parents:
diff changeset
   107
    {
hgs
parents:
diff changeset
   108
    }
hgs
parents:
diff changeset
   109
hgs
parents:
diff changeset
   110
hgs
parents:
diff changeset
   111
// ---------------------------------------------------------
hgs
parents:
diff changeset
   112
// CApNetSelPopupList::GetHelpContext()
hgs
parents:
diff changeset
   113
// ---------------------------------------------------------
hgs
parents:
diff changeset
   114
//
hgs
parents:
diff changeset
   115
void CApNetSelPopupList::GetHelpContext(TCoeHelpContext& aContext) const
hgs
parents:
diff changeset
   116
    {
hgs
parents:
diff changeset
   117
    }
hgs
parents:
diff changeset
   118
hgs
parents:
diff changeset
   119
hgs
parents:
diff changeset
   120
// ---------------------------------------------------------
hgs
parents:
diff changeset
   121
// CApNetSelPopupList::HandleApDbEventL
hgs
parents:
diff changeset
   122
// called by the active access point framework
hgs
parents:
diff changeset
   123
// ---------------------------------------------------------
hgs
parents:
diff changeset
   124
//
hgs
parents:
diff changeset
   125
void CApNetSelPopupList::HandleApDbEventL( TEvent anEvent )
hgs
parents:
diff changeset
   126
    {
hgs
parents:
diff changeset
   127
    }
hgs
parents:
diff changeset
   128
hgs
parents:
diff changeset
   129
hgs
parents:
diff changeset
   130
// ---------------------------------------------------------
hgs
parents:
diff changeset
   131
// CApNetSelPopupList::ActivateL()
hgs
parents:
diff changeset
   132
// called after the dialog is shown
hgs
parents:
diff changeset
   133
// used to handle empty list - query
hgs
parents:
diff changeset
   134
// ---------------------------------------------------------
hgs
parents:
diff changeset
   135
//
hgs
parents:
diff changeset
   136
void CApNetSelPopupList::ActivateL()
hgs
parents:
diff changeset
   137
    {
hgs
parents:
diff changeset
   138
    }
hgs
parents:
diff changeset
   139
hgs
parents:
diff changeset
   140
hgs
parents:
diff changeset
   141
hgs
parents:
diff changeset
   142
// ---------------------------------------------------------
hgs
parents:
diff changeset
   143
// CApNetSelPopupList::SelectCurrentItemL()
hgs
parents:
diff changeset
   144
// called after the setting had been changed
hgs
parents:
diff changeset
   145
// ---------------------------------------------------------
hgs
parents:
diff changeset
   146
//
hgs
parents:
diff changeset
   147
void CApNetSelPopupList::SelectCurrentItemL()
hgs
parents:
diff changeset
   148
    {
hgs
parents:
diff changeset
   149
    }
hgs
parents:
diff changeset
   150
hgs
parents:
diff changeset
   151
hgs
parents:
diff changeset
   152
hgs
parents:
diff changeset
   153
// ---------------------------------------------------------
hgs
parents:
diff changeset
   154
// CApNetSelPopupList::OkToExitL( TInt aButtonId )
hgs
parents:
diff changeset
   155
// called by framework when the OK button is pressed
hgs
parents:
diff changeset
   156
// ---------------------------------------------------------
hgs
parents:
diff changeset
   157
//
hgs
parents:
diff changeset
   158
TBool CApNetSelPopupList::OkToExitL( TInt aButtonId )
hgs
parents:
diff changeset
   159
    {
hgs
parents:
diff changeset
   160
    return EFalse;
hgs
parents:
diff changeset
   161
    }
hgs
parents:
diff changeset
   162
hgs
parents:
diff changeset
   163
hgs
parents:
diff changeset
   164
hgs
parents:
diff changeset
   165
// ---------------------------------------------------------
hgs
parents:
diff changeset
   166
// CApNetSelPopupList::FillListBoxWithDataL()
hgs
parents:
diff changeset
   167
// called when listbox needs to be filled with data
hgs
parents:
diff changeset
   168
// ---------------------------------------------------------
hgs
parents:
diff changeset
   169
//
hgs
parents:
diff changeset
   170
void CApNetSelPopupList::FillListBoxWithDataL()
hgs
parents:
diff changeset
   171
    {
hgs
parents:
diff changeset
   172
    }
hgs
parents:
diff changeset
   173
hgs
parents:
diff changeset
   174
hgs
parents:
diff changeset
   175
// ---------------------------------------------------------
hgs
parents:
diff changeset
   176
// CApNetSelPopupList::SetSelectedL()
hgs
parents:
diff changeset
   177
// ---------------------------------------------------------
hgs
parents:
diff changeset
   178
//
hgs
parents:
diff changeset
   179
void CApNetSelPopupList::SetSelectedL()
hgs
parents:
diff changeset
   180
    {
hgs
parents:
diff changeset
   181
    }
hgs
parents:
diff changeset
   182
hgs
parents:
diff changeset
   183
hgs
parents:
diff changeset
   184
hgs
parents:
diff changeset
   185
hgs
parents:
diff changeset
   186
// ---------------------------------------------------------
hgs
parents:
diff changeset
   187
// CApNetSelPopupList::DynInitMenuPaneL
hgs
parents:
diff changeset
   188
// ---------------------------------------------------------
hgs
parents:
diff changeset
   189
//
hgs
parents:
diff changeset
   190
void CApNetSelPopupList::DynInitMenuPaneL( TInt aResourceId,
hgs
parents:
diff changeset
   191
                                        CEikMenuPane* aMenuPane )
hgs
parents:
diff changeset
   192
    {
hgs
parents:
diff changeset
   193
    }
hgs
parents:
diff changeset
   194
hgs
parents:
diff changeset
   195
hgs
parents:
diff changeset
   196
// From MEikCommandObserver
hgs
parents:
diff changeset
   197
// ---------------------------------------------------------
hgs
parents:
diff changeset
   198
// CApNetSelPopupList::ProcessCommandL
hgs
parents:
diff changeset
   199
// ---------------------------------------------------------
hgs
parents:
diff changeset
   200
//
hgs
parents:
diff changeset
   201
void CApNetSelPopupList::ProcessCommandL( TInt aCommandId )
hgs
parents:
diff changeset
   202
    {
hgs
parents:
diff changeset
   203
    }
hgs
parents:
diff changeset
   204
hgs
parents:
diff changeset
   205
hgs
parents:
diff changeset
   206
hgs
parents:
diff changeset
   207
// From CCoeControl
hgs
parents:
diff changeset
   208
// ---------------------------------------------------------
hgs
parents:
diff changeset
   209
// CApNetSelPopupList::OfferKeyEventL
hgs
parents:
diff changeset
   210
// ---------------------------------------------------------
hgs
parents:
diff changeset
   211
//
hgs
parents:
diff changeset
   212
TKeyResponse CApNetSelPopupList::OfferKeyEventL( const TKeyEvent& aKeyEvent,
hgs
parents:
diff changeset
   213
                                              TEventCode aType)
hgs
parents:
diff changeset
   214
    {
hgs
parents:
diff changeset
   215
    User::Leave( KErrNotSupported );
hgs
parents:
diff changeset
   216
    }
hgs
parents:
diff changeset
   217
hgs
parents:
diff changeset
   218
hgs
parents:
diff changeset
   219
hgs
parents:
diff changeset
   220
// ---------------------------------------------------------
hgs
parents:
diff changeset
   221
// CApNetSelPopupList::Need2DeleteSelect
hgs
parents:
diff changeset
   222
// ---------------------------------------------------------
hgs
parents:
diff changeset
   223
//
hgs
parents:
diff changeset
   224
TBool CApNetSelPopupList::Need2DeleteSelect( TInt aResourceId )
hgs
parents:
diff changeset
   225
    {
hgs
parents:
diff changeset
   226
    return EFalse;
hgs
parents:
diff changeset
   227
    }
hgs
parents:
diff changeset
   228
hgs
parents:
diff changeset
   229
hgs
parents:
diff changeset
   230
hgs
parents:
diff changeset
   231
// ---------------------------------------------------------
hgs
parents:
diff changeset
   232
// CApNetSelPopupList::Need2DeleteOpenDelete
hgs
parents:
diff changeset
   233
// ---------------------------------------------------------
hgs
parents:
diff changeset
   234
//
hgs
parents:
diff changeset
   235
TBool CApNetSelPopupList::Need2DeleteOpenDelete( TInt aResourceId )
hgs
parents:
diff changeset
   236
    {
hgs
parents:
diff changeset
   237
    return EFalse;
hgs
parents:
diff changeset
   238
    }
hgs
parents:
diff changeset
   239
hgs
parents:
diff changeset
   240
hgs
parents:
diff changeset
   241
hgs
parents:
diff changeset
   242
// ---------------------------------------------------------
hgs
parents:
diff changeset
   243
// CApNetSelPopupList::HandleCreateNewNetworkGroupL
hgs
parents:
diff changeset
   244
// ---------------------------------------------------------
hgs
parents:
diff changeset
   245
//
hgs
parents:
diff changeset
   246
TBool CApNetSelPopupList::HandleCreateNewNetworkGroupL()
hgs
parents:
diff changeset
   247
    {
hgs
parents:
diff changeset
   248
    return EFalse;
hgs
parents:
diff changeset
   249
    }
hgs
parents:
diff changeset
   250
hgs
parents:
diff changeset
   251
// End of File