apengine/apsettingshandlerui/src/ApSelectorListBoxModel.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:  Implementation of CApSelectorListboxModel.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "ApSelectorListBoxModel.h"
       
    22 #include "ApListItem.h"
       
    23 #include <ApSettingsHandlerCommons.h>
       
    24 
       
    25 #include <featmgr.h>
       
    26 
       
    27 #include "ApSettingsHandlerLogger.h"
       
    28 
       
    29 // CONSTANTS
       
    30 const TInt  KGPRS_ICON_ID        = 0;
       
    31 // No icon for CDMA (yet?) -> use GPRS icon.
       
    32 const TInt  KCDMA_ICON_ID        = KGPRS_ICON_ID;
       
    33 const TInt  KCSD_ICON_ID         = 1;
       
    34 const TInt  KHSCSD_ICON_ID       = 2;
       
    35 // const TInt  KSMS_ICON_ID       = 3;   // DEPRECATED
       
    36 const TInt  KWLAN_ICON_ID        = 4;
       
    37 // fith icon element is the KEASY_WLAN_ICON_ID  but it is not shown 
       
    38 // in our UI, but is used by other modules using our 
       
    39 // resources!!! const TInt  KEASY_WLAN_ICON_ID   = 5;
       
    40 
       
    41 const TInt  KPROTECTED_ICON_ID   = 6;
       
    42 // get real icons !!! now using GPRS...
       
    43 #ifdef __TEST_LAN_BEARER
       
    44     const TInt  KLAN_ICON_ID         = KGPRS_ICON_ID;
       
    45 #endif // __TEST_LAN_BEARER
       
    46 
       
    47 
       
    48 // ================= MEMBER FUNCTIONS =======================
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // CApSelectorListboxModel::CApSelectorListboxModel
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 CApSelectorListboxModel::CApSelectorListboxModel( TGraphicType aGraphicType )
       
    55 :CApListItemList(),
       
    56 iOffset( 0 ),
       
    57 iFeatureInitialised(EFalse),
       
    58 iProtectionSupported(EFalse)
       
    59     {
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------
       
    63 // CApSelectorListboxModel::~CApSelectorListboxModel
       
    64 // ---------------------------------------------------------
       
    65 //
       
    66 CApSelectorListboxModel::~CApSelectorListboxModel()
       
    67     {
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------
       
    71 // CApSelectorListboxModel::MdcaCount
       
    72 // ---------------------------------------------------------
       
    73 //
       
    74 TInt CApSelectorListboxModel::MdcaCount() const
       
    75     {
       
    76     return 0;
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------
       
    80 // CApSelectorListboxModel::MdcaPoint
       
    81 // ---------------------------------------------------------
       
    82 //
       
    83 TPtrC CApSelectorListboxModel::MdcaPoint( TInt aIndex ) const
       
    84     {
       
    85     User::Leave( KErrNotSupported );
       
    86     }
       
    87 
       
    88 
       
    89 // ---------------------------------------------------------
       
    90 // CApSelectorListboxModel::Item4Uid
       
    91 // ---------------------------------------------------------
       
    92 //
       
    93 TInt CApSelectorListboxModel::Item4Uid( TUint32 aUid, TInt& aErr ) const
       
    94     {
       
    95     return KErrNotFound;
       
    96     }
       
    97 
       
    98 
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // CApSelectorListboxModel::SetOwnIconOffset
       
   102 // ---------------------------------------------------------
       
   103 //
       
   104 void CApSelectorListboxModel::SetOwnIconOffset( TInt aOffset )
       
   105     {
       
   106     }
       
   107 
       
   108 
       
   109 // ---------------------------------------------------------
       
   110 // CApSelectorListboxModel::FormatListboxText
       
   111 // ---------------------------------------------------------
       
   112 //
       
   113 void CApSelectorListboxModel::FormatListboxText( TInt aIndex,
       
   114                                                 TDes& aBuf ) const
       
   115     {
       
   116     }
       
   117 
       
   118 // End of File