apengine/apeng/src/APUtils.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:  Declaration of the class CApUtils
       
    15 *     Contains utility functions for access point handling
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "APEngineVariant.hrh"
       
    22 
       
    23 #include "ApUtils.h"
       
    24 #include "ApAccessPointItem.h"
       
    25 #include "ApDataHandler.h"
       
    26 #include "ApEngineCommons.h"
       
    27 #include "ApEngineLogger.h"
       
    28 #include <e32des16.h>
       
    29 #include <es_sock.h>
       
    30 #include <es_enum.h>
       
    31 
       
    32 #include    <featmgr.h>
       
    33 
       
    34 #include <WlanCdbCols.h>
       
    35 
       
    36 
       
    37 // LOCAL CONSTANTS AND MACROS
       
    38 
       
    39 // MODULE DATA STRUCTURES
       
    40 
       
    41 
       
    42 // ================= MEMBER FUNCTIONS =======================
       
    43 
       
    44 // construct/destruct/copy
       
    45 // ---------------------------------------------------------
       
    46 // CApUtils::NewLC
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CApUtils* CApUtils::NewLC( CCommsDatabase& aDb )
       
    50     {
       
    51     return NULL;
       
    52     }
       
    53 
       
    54 
       
    55 
       
    56 // Destructor
       
    57 // ---------------------------------------------------------
       
    58 // CApUtils::~CApUtils
       
    59 // ---------------------------------------------------------
       
    60 //
       
    61 EXPORT_C CApUtils::~CApUtils()
       
    62     {
       
    63     }
       
    64 
       
    65 
       
    66 // C++ default constructor can NOT contain any code that
       
    67 // might leave.
       
    68 //
       
    69 // ---------------------------------------------------------
       
    70 // CApUtils::CApUtils
       
    71 // ---------------------------------------------------------
       
    72 //
       
    73 EXPORT_C CApUtils::CApUtils()
       
    74     {
       
    75     }
       
    76 
       
    77 
       
    78 // Symbian OS default constructor can leave.
       
    79 // ---------------------------------------------------------
       
    80 // CApUtils::ConstructL
       
    81 // ---------------------------------------------------------
       
    82 //
       
    83 EXPORT_C void CApUtils::ConstructL( CCommsDatabase& aDb )
       
    84     {
       
    85     }
       
    86 
       
    87 
       
    88 
       
    89 
       
    90 
       
    91 // utilities
       
    92 
       
    93 // ---------------------------------------------------------
       
    94 // CApUtils::IsAPInUseL
       
    95 // ---------------------------------------------------------
       
    96 //
       
    97 EXPORT_C TBool CApUtils::IsAPInUseL( TUint32 aUid )
       
    98     {
       
    99     return EFalse;
       
   100     }
       
   101 
       
   102 
       
   103 
       
   104 
       
   105 // ---------------------------------------------------------
       
   106 // CApUtils::WapBearerTypeL
       
   107 // ---------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void CApUtils::WapBearerTypeL( TUint32 aUid, TDes& aBearer )
       
   110     {
       
   111     }
       
   112 
       
   113 
       
   114 // ---------------------------------------------------------
       
   115 // CApUtils::BearerTypeL
       
   116 // ---------------------------------------------------------
       
   117 //
       
   118 EXPORT_C TApBearerType CApUtils::BearerTypeL( TUint32 aUid )
       
   119     {
       
   120     User::Leave( KErrNotSupported );
       
   121     }
       
   122 
       
   123 
       
   124 // ---------------------------------------------------------
       
   125 // CApUtils::ISPTypeL
       
   126 // ---------------------------------------------------------
       
   127 //
       
   128 EXPORT_C void CApUtils::ISPTypeL( TUint32 aUid, TCommsDbIspType& aIspType )
       
   129     {
       
   130     }
       
   131 
       
   132 
       
   133 
       
   134 // ---------------------------------------------------------
       
   135 // CApUtils::IsValidNameL
       
   136 // ---------------------------------------------------------
       
   137 //
       
   138 EXPORT_C TBool CApUtils::IsValidNameL( const TDesC& aNameText )
       
   139     {
       
   140     return EFalse;
       
   141     }
       
   142 
       
   143 
       
   144 // ---------------------------------------------------------
       
   145 // CApUtils::MakeValidName
       
   146 // ---------------------------------------------------------
       
   147 //
       
   148 EXPORT_C TBool CApUtils::MakeValidNameL( TDes& aNameText )
       
   149     {
       
   150     return EFalse;
       
   151     }
       
   152 
       
   153 
       
   154 // ---------------------------------------------------------
       
   155 // CApUtils::NameL
       
   156 // ---------------------------------------------------------
       
   157 //
       
   158 EXPORT_C void CApUtils::NameL( TUint32 aUid, TDes& aName )
       
   159     {
       
   160     }
       
   161 
       
   162 
       
   163 
       
   164 // ---------------------------------------------------------
       
   165 // CApUtils::SetNameL
       
   166 // ---------------------------------------------------------
       
   167 //
       
   168 EXPORT_C void CApUtils::SetNameL( TDes& aName, TUint32 aUid )
       
   169     {
       
   170     }
       
   171 
       
   172 
       
   173 
       
   174 // ---------------------------------------------------------
       
   175 // CApUtils::SetISPTypeL
       
   176 // ---------------------------------------------------------
       
   177 //
       
   178 EXPORT_C void CApUtils::SetISPTypeL( TUint32 aUid, TCommsDbIspType aIspType )
       
   179     {
       
   180     }
       
   181 
       
   182 
       
   183 
       
   184 // ---------------------------------------------------------
       
   185 // CApUtils::IapIdFromWapIdL
       
   186 // ---------------------------------------------------------
       
   187 //
       
   188 EXPORT_C TUint32 CApUtils::IapIdFromWapIdL( TUint32 aUid )
       
   189     {
       
   190     return 0;
       
   191     }
       
   192 
       
   193 
       
   194 // ---------------------------------------------------------
       
   195 // CApUtils::WapIdFromIapIdL
       
   196 // ---------------------------------------------------------
       
   197 //
       
   198 EXPORT_C TUint32 CApUtils::WapIdFromIapIdL( TUint32 aUid )
       
   199     {
       
   200     return 0;
       
   201     }
       
   202 
       
   203 
       
   204 // ---------------------------------------------------------
       
   205 // CApUtils::HasMandatoryFieldsFilledL
       
   206 // ---------------------------------------------------------
       
   207 //
       
   208 EXPORT_C TBool CApUtils::HasMandatoryFieldsFilledL( TUint32 aUid )
       
   209     {
       
   210     return EFalse;
       
   211     }
       
   212 
       
   213 
       
   214 
       
   215 // ---------------------------------------------------------
       
   216 // CApUtils::IAPExistsL
       
   217 // ---------------------------------------------------------
       
   218 //
       
   219 EXPORT_C TBool CApUtils::IAPExistsL( TUint32 aUid )
       
   220     {
       
   221     return EFalse;
       
   222     }
       
   223 
       
   224 
       
   225 // ---------------------------------------------------------
       
   226 // CApUtils::WapApExistsL
       
   227 // ---------------------------------------------------------
       
   228 //
       
   229 EXPORT_C TBool CApUtils::WapApExistsL( TUint32 aUid )
       
   230     {
       
   231     return EFalse;
       
   232     }
       
   233 
       
   234 
       
   235 
       
   236 // ---------------------------------------------------------
       
   237 // CApUtils::DoHasMandatoryFieldsFilledL
       
   238 // ---------------------------------------------------------
       
   239 //
       
   240 EXPORT_C TBool CApUtils::DoHasMandatoryFieldsFilledL(
       
   241                                                   TUint32 aUid,
       
   242                                                   CCommsDbTableView* aWapt,
       
   243                                                   TApBearerType aBearertype )
       
   244     {
       
   245     return EFalse;
       
   246     }
       
   247 
       
   248 
       
   249 
       
   250 // ---------------------------------------------------------
       
   251 // CApUtils::IsValidNameL
       
   252 // ---------------------------------------------------------
       
   253 //
       
   254 EXPORT_C TBool CApUtils::IsValidNameL( const TDesC& aNameText,
       
   255                                        TUint32 aAcceptUid )
       
   256     {
       
   257     return EFalse;
       
   258     }
       
   259 
       
   260 
       
   261 // ---------------------------------------------------------
       
   262 // CApUtils::IsReadOnlyL
       
   263 // ---------------------------------------------------------
       
   264 //
       
   265 EXPORT_C TBool CApUtils::IsReadOnlyL( TUint32 aUid )
       
   266     {
       
   267     return EFalse;
       
   268     }
       
   269 
       
   270 
       
   271 
       
   272 
       
   273 // ---------------------------------------------------------
       
   274 // CApUtils::IsWlanL
       
   275 // ---------------------------------------------------------
       
   276 //
       
   277 TBool CApUtils::IsWlanL( TUint32 aLanCommdbId )
       
   278     {
       
   279     return EFalse;
       
   280     }
       
   281 
       
   282 
       
   283 
       
   284 // ---------------------------------------------------------
       
   285 // CApUtils::HasWlanSSIDL
       
   286 // ---------------------------------------------------------
       
   287 //
       
   288 TBool CApUtils::HasWlanSSIDL( TUint32 aLanCommdbId )
       
   289     {
       
   290     return EFalse;
       
   291     }
       
   292 
       
   293 
       
   294 // ==== OTHER PRIVATE/protected, NON-EXPORTED FUNCTIONS ====
       
   295 
       
   296 // ---------------------------------------------------------
       
   297 // CApUtils::DoWapBearerTypeL
       
   298 // ---------------------------------------------------------
       
   299 //
       
   300 void CApUtils::DoWapBearerTypeL( TUint32 aUid, TDes& aBearer )
       
   301     {
       
   302     }
       
   303 
       
   304 
       
   305 
       
   306 // ---------------------------------------------------------
       
   307 // CApUtils::DoBearerTypeL
       
   308 // ---------------------------------------------------------
       
   309 //
       
   310 TApBearerType CApUtils::DoBearerTypeL( TUint32 aUid )
       
   311     {
       
   312     User::Leave( KErrNotSupported );
       
   313     }
       
   314 
       
   315 
       
   316 
       
   317 // ---------------------------------------------------------
       
   318 // CApUtils::DoISPTypeL
       
   319 // ---------------------------------------------------------
       
   320 //
       
   321 void CApUtils::DoISPTypeL( TUint32 aUid, TCommsDbIspType& aIspType )
       
   322     {
       
   323     }
       
   324 
       
   325 
       
   326 // ---------------------------------------------------------
       
   327 // CApUtils::DoNameL
       
   328 // ---------------------------------------------------------
       
   329 //
       
   330 void CApUtils::DoNameL( TUint32 aUid, TDes& aName )
       
   331     {
       
   332     }
       
   333 
       
   334 
       
   335 // ---------------------------------------------------------
       
   336 // CApUtils::DoSetNameL
       
   337 // ---------------------------------------------------------
       
   338 //
       
   339 void CApUtils::DoSetNameL( TDes& aName, TUint32 aUid )
       
   340     {
       
   341     }
       
   342 
       
   343 
       
   344 // ---------------------------------------------------------
       
   345 // CApUtils::DoSetISPTypeL
       
   346 // ---------------------------------------------------------
       
   347 //
       
   348 void CApUtils::DoSetISPTypeL( TUint32 aUid, TCommsDbIspType aIspType )
       
   349     {
       
   350     }
       
   351 
       
   352 
       
   353 // ---------------------------------------------------------
       
   354 // CApUtils::DoesExistsL
       
   355 // ---------------------------------------------------------
       
   356 //
       
   357 TBool CApUtils::DoesExistsL( TPtrC aTable, TUint32 aUid )
       
   358     {
       
   359     return EFalse;
       
   360     }
       
   361 
       
   362 
       
   363 
       
   364 // ---------------------------------------------------------
       
   365 // CApUtils::DoIsWlanL
       
   366 // ---------------------------------------------------------
       
   367 //
       
   368 TBool CApUtils::DoIsWlanL( TUint32 aLanCommdbId )
       
   369     {
       
   370     return EFalse;
       
   371     }
       
   372 
       
   373 //  End of File