cmmanager/cmmgr/Framework/Src/cmpluginbase.cpp
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 21 b8e8e15e80f2
child 23 7ec726f93df1
child 28 860702281757
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
     1 /*
       
     2 * Copyright (c) 2006 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 plugin base class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    19 #include <commsdat_partner.h>
       
    20 #endif
       
    21 #include <cmmanager.rsg>
       
    22 #include <es_sock.h>    // RSocketServ, RConnection
       
    23 #include <in_sock.h>    // KAfInet
       
    24 #include <es_enum.h>    // TConnectionInfo
       
    25 #include <StringLoader.h>
       
    26 #include <AknUtils.h>
       
    27 #include <data_caging_path_literals.hrh>
       
    28 #include <sysutil.h> 
       
    29 #include <cmpluginbase.h>
       
    30 
       
    31 #include <cmmanager.h>
       
    32 #include "cmmanagerimpl.h"
       
    33 #include "cmdestinationimpl.h"
       
    34 #include <cmpluginbase.h>
       
    35 #include <cmpsettingsconsts.h>
       
    36 #include "cmlogger.h"
       
    37 #include <cmcommonui.h>
       
    38 
       
    39 using namespace CMManager;
       
    40 using namespace CommsDat;
       
    41 
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CCmPluginBase::CCmPluginBase
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 EXPORT_C CCmPluginBase::CCmPluginBase( CCmPluginBaseEng* plugin )
       
    48     : iPlugin( plugin )
       
    49     {
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // CCmPluginBase::~CCmPluginBase
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 EXPORT_C CCmPluginBase::~CCmPluginBase()
       
    57     {
       
    58     if (iPlugin)
       
    59         {
       
    60         TRAP_IGNORE( CmMgr().RemoveCMFromPoolL(this) );
       
    61         }
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // CCmPluginBase::ConstructL
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 EXPORT_C void CCmPluginBase::ConstructL()
       
    69     {
       
    70     iPlugin->ConstructL();
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------------------------
       
    74 // CCmPluginBase::ConstructL
       
    75 // ---------------------------------------------------------------------------
       
    76 //
       
    77  CCmPluginBase* CCmPluginBase::CreateInstanceL( TCmPluginInitParam& aInitParam )
       
    78     {
       
    79     CCmPluginBaseEng* plugin = iPlugin->CreateInstanceL(aInitParam);
       
    80 	CleanupStack::PushL( plugin );
       
    81     CCmPluginBase* connMethod = new (ELeave) CCmPluginBase(plugin);     
       
    82     CleanupStack::Pop( plugin );  // plugin        
       
    83     return connMethod;
       
    84     }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // CCmPluginBase::RunSettingsL
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 TInt CCmPluginBase::RunSettingsL()
       
    91     {
       
    92     return iPlugin->RunSettingsL();
       
    93     }
       
    94 
       
    95 // ---------------------------------------------------------------------------
       
    96 // CCmPluginBase::InitializeWithUiL
       
    97 // ---------------------------------------------------------------------------
       
    98 //
       
    99 TInt CCmPluginBase::InitializeWithUiL(TBool aManuallyConfigure)
       
   100     {
       
   101     return iPlugin->InitializeWithUiL(aManuallyConfigure);
       
   102     }
       
   103 
       
   104 // ---------------------------------------------------------------------------
       
   105 // CCmPluginBase::CanHandleIapIdL
       
   106 // ---------------------------------------------------------------------------
       
   107 //
       
   108 TBool CCmPluginBase::CanHandleIapIdL(TUint32 aIapId) const
       
   109     {
       
   110     return iPlugin->CanHandleIapIdL(aIapId);
       
   111     }
       
   112 
       
   113 // ---------------------------------------------------------------------------
       
   114 // CCmPluginBase::CanHandleIapIdL
       
   115 // ---------------------------------------------------------------------------
       
   116 //
       
   117 TBool CCmPluginBase::CanHandleIapIdL(CommsDat::CCDIAPRecord* aIapRecord) const
       
   118     {
       
   119     return iPlugin->CanHandleIapIdL(aIapRecord);
       
   120     }
       
   121 
       
   122 // ---------------------------------------------------------------------------
       
   123 // CCmPluginBase::AdditionalReset
       
   124 // ---------------------------------------------------------------------------
       
   125 //
       
   126 void CCmPluginBase::AdditionalReset()
       
   127     {
       
   128     iPlugin->AdditionalReset();
       
   129     }
       
   130 
       
   131 // ---------------------------------------------------------------------------
       
   132 // CCmPluginBase::ServiceRecordIdLC
       
   133 // ---------------------------------------------------------------------------
       
   134 //
       
   135 void CCmPluginBase::ServiceRecordIdLC(HBufC* &aServiceName, 
       
   136                                        TUint32& aRecordId)
       
   137     {
       
   138     iPlugin->ServiceRecordIdLC(aServiceName, aRecordId);
       
   139     }
       
   140 
       
   141 
       
   142 // ---------------------------------------------------------------------------
       
   143 // CCmPluginBase::BearerRecordIdLC
       
   144 // ---------------------------------------------------------------------------
       
   145 //
       
   146 void CCmPluginBase::BearerRecordIdLC(HBufC* &aBearerName, 
       
   147                                        TUint32& aRecordId)
       
   148     {
       
   149     iPlugin->BearerRecordIdLC(aBearerName, aRecordId);
       
   150     }
       
   151 
       
   152 
       
   153 // ---------------------------------------------------------------------------
       
   154 // CCmPluginBase::PrepareToDeleteRecordsL
       
   155 // ---------------------------------------------------------------------------
       
   156 //
       
   157 void CCmPluginBase::PrepareToDeleteRecordsL()
       
   158     {
       
   159     iPlugin->PrepareToDeleteRecordsL();
       
   160     }
       
   161 
       
   162 
       
   163 // ---------------------------------------------------------------------------
       
   164 // CCmPluginBase::DeleteAdditionalRecordsL
       
   165 // ---------------------------------------------------------------------------
       
   166 //
       
   167 void CCmPluginBase::DeleteAdditionalRecordsL()
       
   168     {
       
   169     iPlugin->DeleteAdditionalRecordsL();
       
   170     }
       
   171 
       
   172 
       
   173 // ---------------------------------------------------------------------------
       
   174 // CCmPluginBase::CreateNewServiceRecordL
       
   175 // ---------------------------------------------------------------------------
       
   176 //
       
   177 void CCmPluginBase::CreateNewServiceRecordL()
       
   178     {
       
   179     iPlugin->CreateNewServiceRecordL();
       
   180     }
       
   181 
       
   182 // ---------------------------------------------------------------------------
       
   183 // CCmPluginBase::
       
   184 // ---------------------------------------------------------------------------
       
   185 //
       
   186 void CCmPluginBase::CreateAdditionalRecordsL()
       
   187     {
       
   188     iPlugin->CreateAdditionalRecordsL();
       
   189     }
       
   190 
       
   191 // ---------------------------------------------------------------------------
       
   192 // CCmPluginBase::PrepareToCopyDataL
       
   193 // ---------------------------------------------------------------------------
       
   194 //
       
   195 void CCmPluginBase::PrepareToCopyDataL(CCmPluginBaseEng& aDestInst) const
       
   196     {
       
   197     iPlugin->PrepareToCopyDataL(aDestInst);
       
   198     }
       
   199 
       
   200 // ---------------------------------------------------------------------------
       
   201 // CCmPluginBase::CopyAdditionalDataL
       
   202 // ---------------------------------------------------------------------------
       
   203 //
       
   204 void CCmPluginBase::CopyAdditionalDataL(CCmPluginBaseEng& aDestInst) const
       
   205     {
       
   206     iPlugin->CopyAdditionalDataL(aDestInst);
       
   207     }
       
   208 
       
   209 // ---------------------------------------------------------------------------
       
   210 // CCmPluginBase::LoadAdditionalRecordsL
       
   211 // ---------------------------------------------------------------------------
       
   212 //
       
   213 void CCmPluginBase::LoadAdditionalRecordsL()
       
   214     {
       
   215     iPlugin->LoadAdditionalRecordsL();
       
   216     }
       
   217 
       
   218 // ---------------------------------------------------------------------------
       
   219 // CCmPluginBase::UpdateAdditionalRecordsL
       
   220 // ---------------------------------------------------------------------------
       
   221 //
       
   222 void CCmPluginBase::UpdateAdditionalRecordsL()
       
   223     {
       
   224     iPlugin->UpdateAdditionalRecordsL();
       
   225     }
       
   226 
       
   227 // ---------------------------------------------------------------------------
       
   228 // CCmPluginBase::IsLinkedToIap
       
   229 // ---------------------------------------------------------------------------
       
   230 //
       
   231 EXPORT_C TBool CCmPluginBase::IsLinkedToIap( TUint32 aIapId )
       
   232     {
       
   233     return iPlugin->IsLinkedToIap( aIapId );
       
   234     }
       
   235 
       
   236 // ---------------------------------------------------------------------------
       
   237 // CCmPluginBase::IsLinkedToIap
       
   238 // ---------------------------------------------------------------------------
       
   239 //
       
   240 EXPORT_C TBool CCmPluginBase::IsLinkedToSnap( TUint32 aSnapId )
       
   241     {
       
   242     return iPlugin->IsLinkedToSnap( aSnapId );
       
   243     }
       
   244 
       
   245 // ---------------------------------------------------------------------------
       
   246 // CCmPluginBase::GetIntAttributeL
       
   247 // ---------------------------------------------------------------------------
       
   248 //
       
   249 EXPORT_C TUint32 
       
   250             CCmPluginBase::GetIntAttributeL( const TUint32 aAttribute ) const
       
   251     {
       
   252     return iPlugin->GetIntAttributeL(aAttribute);
       
   253     }
       
   254 
       
   255 // ---------------------------------------------------------------------------
       
   256 // CCmPluginBase::GetBoolAttributeL
       
   257 // ---------------------------------------------------------------------------
       
   258 //
       
   259 EXPORT_C TBool 
       
   260         CCmPluginBase::GetBoolAttributeL( const TUint32 aAttribute ) const
       
   261     {
       
   262     return iPlugin->GetBoolAttributeL(aAttribute);
       
   263     }
       
   264 
       
   265 // ---------------------------------------------------------------------------
       
   266 // CCmPluginBase::GetStringAttributeL
       
   267 // ---------------------------------------------------------------------------
       
   268 //
       
   269 EXPORT_C HBufC* 
       
   270     CCmPluginBase::GetStringAttributeL( const TUint32 aAttribute ) const
       
   271     {
       
   272     return iPlugin->GetStringAttributeL(aAttribute);
       
   273     }
       
   274 
       
   275 // ---------------------------------------------------------------------------
       
   276 // CCmPluginBase::GetString8AttributeL
       
   277 // ---------------------------------------------------------------------------
       
   278 //
       
   279 EXPORT_C HBufC8* 
       
   280     CCmPluginBase::GetString8AttributeL( const TUint32 aAttribute ) const
       
   281     {
       
   282     return iPlugin->GetString8AttributeL(aAttribute);
       
   283     }
       
   284     
       
   285 // ---------------------------------------------------------------------------
       
   286 // CCmPluginBase::SetIntAttributeL
       
   287 // ---------------------------------------------------------------------------
       
   288 //
       
   289 EXPORT_C void CCmPluginBase::SetIntAttributeL( const TUint32 aAttribute, 
       
   290                                                   TUint32 aValue )
       
   291     {
       
   292     iPlugin->SetIntAttributeL(aAttribute, aValue);
       
   293     }
       
   294 
       
   295 // ---------------------------------------------------------------------------
       
   296 // CCmPluginBase::SetBoolAttributeL
       
   297 // ---------------------------------------------------------------------------
       
   298 //
       
   299 EXPORT_C void CCmPluginBase::SetBoolAttributeL( const TUint32 aAttribute, 
       
   300                                                    TBool aValue )
       
   301     {
       
   302     iPlugin->SetBoolAttributeL(aAttribute, aValue);
       
   303     }
       
   304     
       
   305 // ---------------------------------------------------------------------------
       
   306 // CCmPluginBase::SetStringAttributeL
       
   307 // ---------------------------------------------------------------------------
       
   308 //
       
   309 EXPORT_C void CCmPluginBase::SetStringAttributeL( const TUint32 aAttribute, 
       
   310                                                      const TDesC16& aValue )
       
   311     {
       
   312     iPlugin->SetStringAttributeL(aAttribute, aValue);
       
   313     }
       
   314     
       
   315 // ---------------------------------------------------------------------------
       
   316 // CCmPluginBase::SetString8AttributeL
       
   317 // ---------------------------------------------------------------------------
       
   318 //
       
   319 EXPORT_C void CCmPluginBase::SetString8AttributeL( const TUint32 aAttribute, 
       
   320                                                       const TDesC8& aValue )
       
   321     {
       
   322     iPlugin->SetString8AttributeL(aAttribute, aValue);
       
   323     }
       
   324     
       
   325 // ---------------------------------------------------------------------------
       
   326 // CCmPluginBase::RestoreAttributeL
       
   327 // ---------------------------------------------------------------------------
       
   328 //
       
   329 EXPORT_C void CCmPluginBase::RestoreAttributeL( const TUint32 aAttribute )
       
   330     {
       
   331     iPlugin->RestoreAttributeL(aAttribute);
       
   332     }
       
   333 
       
   334 // ---------------------------------------------------------------------------
       
   335 // CCmPluginBase::Destination
       
   336 // ---------------------------------------------------------------------------
       
   337 //
       
   338 EXPORT_C CCmDestinationImpl* CCmPluginBase::Destination() const
       
   339     {
       
   340     return iPlugin->Destination();
       
   341     }
       
   342     
       
   343 // ---------------------------------------------------------------------------
       
   344 // CCmPluginBase::UpdateL
       
   345 // ---------------------------------------------------------------------------
       
   346 //
       
   347 EXPORT_C void CCmPluginBase::UpdateL()
       
   348     {
       
   349     iPlugin->UpdateL();
       
   350     iPlugin->SetIdValidity(ETrue);
       
   351     }
       
   352 
       
   353 // ---------------------------------------------------------------------------
       
   354 // CCmPluginBase::NumOfConnMethodReferencesL
       
   355 // ---------------------------------------------------------------------------
       
   356 //
       
   357 EXPORT_C TInt CCmPluginBase::NumOfConnMethodReferencesL()
       
   358     {
       
   359     return iPlugin->NumOfConnMethodReferencesL();
       
   360     }
       
   361 
       
   362 // ---------------------------------------------------------------------------
       
   363 // CCmPluginBase::Session
       
   364 // ---------------------------------------------------------------------------
       
   365 //
       
   366 EXPORT_C CMDBSession& CCmPluginBase::Session()const
       
   367     {
       
   368     return iPlugin->Session();
       
   369     }
       
   370 
       
   371 // ---------------------------------------------------------------------------
       
   372 // Delete this connection methond.
       
   373 // Record ids are checked to be sure that we delete only records
       
   374 // that were loaded before.
       
   375 // ---------------------------------------------------------------------------
       
   376 //
       
   377 EXPORT_C TBool CCmPluginBase::DeleteL( TBool aForced,
       
   378                                           TBool aOneRefAllowed )
       
   379     {
       
   380     return iPlugin->DeleteL(aForced, aOneRefAllowed);
       
   381     }
       
   382 
       
   383 // ---------------------------------------------------------------------------
       
   384 // CCmPluginBase::LoadL
       
   385 // ---------------------------------------------------------------------------
       
   386 //
       
   387 EXPORT_C void CCmPluginBase::LoadL( TUint32 aIapId )
       
   388     {
       
   389     iPlugin->LoadL(aIapId);
       
   390     CmMgr().ConnMethodUpdatedL( this->Plugin() );
       
   391     iPlugin->SetIdValidity(ETrue);
       
   392     }
       
   393 
       
   394 // ---------------------------------------------------------------------------
       
   395 // CCmPluginBase::ReLoadL
       
   396 // ---------------------------------------------------------------------------
       
   397 //
       
   398 void CCmPluginBase::ReLoadL()
       
   399     {
       
   400     TUint32 cmID = iPlugin->GetIntAttributeL( ECmId );    
       
   401     TUint32 refCounter = iPlugin->iRefCounter;
       
   402     
       
   403     iPlugin->iRefCounter = 1;
       
   404     CCmManagerImpl* mgr = &CmMgr();
       
   405     mgr->RemoveCMFromPoolL(iPlugin);
       
   406     iPlugin = NULL;
       
   407     CCmPluginBase* cm = mgr->GetConnectionMethodL( cmID );
       
   408     iPlugin = cm->iPlugin;
       
   409     cm->iPlugin = NULL;
       
   410     delete cm;
       
   411     iPlugin->SetIdValidity(ETrue);
       
   412     iPlugin->iRefCounter = refCounter;
       
   413     }
       
   414     
       
   415 // ---------------------------------------------------------------------------
       
   416 // CCmPluginBase::CreateNewL
       
   417 // ---------------------------------------------------------------------------
       
   418 //
       
   419 EXPORT_C void CCmPluginBase::CreateNewL()
       
   420     {
       
   421     iPlugin->CreateNewL();
       
   422     }
       
   423 
       
   424 // ---------------------------------------------------------------------------
       
   425 // CCmPluginBase::CreateCopyL
       
   426 // ---------------------------------------------------------------------------
       
   427 //
       
   428 EXPORT_C CCmPluginBase* CCmPluginBase::CreateCopyL() const
       
   429     {
       
   430     CCmPluginBaseEng* plugin = iPlugin->CreateCopyL();
       
   431 	CleanupStack::PushL( plugin );    
       
   432     CCmPluginBase* connMethod = CmMgr().CreateConnectionMethodL(plugin);
       
   433     CleanupStack::Pop( plugin );      
       
   434     return connMethod;
       
   435     }
       
   436     
       
   437 // ---------------------------------------------------------------------------
       
   438 // CCmPluginBase::AddResourceFileL
       
   439 // ---------------------------------------------------------------------------
       
   440 //
       
   441 EXPORT_C void CCmPluginBase::AddResourceFileL( const TDesC& aName )
       
   442     {
       
   443     iPlugin->AddResourceFileL(aName);
       
   444     }
       
   445     
       
   446 // ---------------------------------------------------------------------------
       
   447 // CCmPluginBase::RemoveResourceFile
       
   448 // ---------------------------------------------------------------------------
       
   449 //
       
   450 EXPORT_C void CCmPluginBase::RemoveResourceFile( const TDesC& aName )
       
   451     {
       
   452     iPlugin->RemoveResourceFile(aName);
       
   453     }
       
   454     
       
   455 // ---------------------------------------------------------------------------
       
   456 // CCmPluginBase::AllocReadL
       
   457 // ---------------------------------------------------------------------------
       
   458 //
       
   459 EXPORT_C HBufC* CCmPluginBase::AllocReadL( TInt aResourceId ) const
       
   460     {
       
   461     return iPlugin->AllocReadL( aResourceId );
       
   462     }
       
   463     
       
   464 // ---------------------------------------------------------------------------
       
   465 // CCmPluginBase::OpenTransactionLC
       
   466 // ---------------------------------------------------------------------------
       
   467 //
       
   468 void CCmPluginBase::OpenTransactionLC()
       
   469     {
       
   470     iPlugin->OpenTransactionLC();
       
   471     }
       
   472 
       
   473 // ---------------------------------------------------------------------------
       
   474 // CCmPluginBase::CommitTransactionL
       
   475 // ---------------------------------------------------------------------------
       
   476 //
       
   477 void CCmPluginBase::CommitTransactionL( TInt aError )
       
   478     {
       
   479     iPlugin->CommitTransactionL(aError);
       
   480     }
       
   481 
       
   482 // ---------------------------------------------------------------------------
       
   483 // CCmPluginBase::PrepareToLoadRecordsL
       
   484 // ---------------------------------------------------------------------------
       
   485 //
       
   486 void CCmPluginBase::DoLoadL( TUint32 aIapId )
       
   487     {
       
   488     iPlugin->CommitTransactionL(aIapId);
       
   489     }
       
   490 
       
   491 // ---------------------------------------------------------------------------
       
   492 // CCmPluginBase::PrepareToLoadRecordsL
       
   493 // ---------------------------------------------------------------------------
       
   494 //
       
   495 EXPORT_C void CCmPluginBase::PrepareToLoadRecordsL()
       
   496     {
       
   497     iPlugin->PrepareToLoadRecordsL();
       
   498     }
       
   499     
       
   500 // ---------------------------------------------------------------------------
       
   501 // CCmPluginBase::LoadIAPRecordL
       
   502 // ---------------------------------------------------------------------------
       
   503 //
       
   504 void CCmPluginBase::LoadIAPRecordL( TUint32 aIapId )
       
   505     {
       
   506     iPlugin->LoadIAPRecordL(aIapId);
       
   507     }
       
   508 
       
   509 // ---------------------------------------------------------------------------
       
   510 // CCmPluginBase::LoadProxySettingL
       
   511 // ---------------------------------------------------------------------------
       
   512 //
       
   513 void CCmPluginBase::LoadProxySettingL()
       
   514     {
       
   515     iPlugin->LoadProxySettingL();
       
   516     }
       
   517 
       
   518 // ---------------------------------------------------------------------------
       
   519 // CCmPluginBase::LoadServiceSettingL
       
   520 // ---------------------------------------------------------------------------
       
   521 //
       
   522 EXPORT_C void CCmPluginBase::LoadServiceSettingL()
       
   523     {
       
   524     iPlugin->LoadServiceSettingL();
       
   525     }
       
   526     
       
   527 // ---------------------------------------------------------------------------
       
   528 // CCmPluginBase::LoadChargeCardSettingL
       
   529 // ---------------------------------------------------------------------------
       
   530 //
       
   531 void CCmPluginBase::LoadChargeCardSettingL( TUint32 aRecordId )
       
   532     {
       
   533     iPlugin->LoadChargeCardSettingL(aRecordId);
       
   534     }
       
   535 
       
   536 // ---------------------------------------------------------------------------
       
   537 // CCmPluginBase::LoadNetworkSettingL
       
   538 // ---------------------------------------------------------------------------
       
   539 //
       
   540 void CCmPluginBase::LoadNetworkSettingL()
       
   541     {
       
   542     iPlugin->LoadNetworkSettingL();
       
   543     }
       
   544     
       
   545 // ---------------------------------------------------------------------------
       
   546 // CCmPluginBase::LoadLocationSettingL
       
   547 // ---------------------------------------------------------------------------
       
   548 //
       
   549 void CCmPluginBase::LoadLocationSettingL()
       
   550     {
       
   551     iPlugin->LoadLocationSettingL();
       
   552     }
       
   553 
       
   554 // ---------------------------------------------------------------------------
       
   555 // CCmPluginBase::PrepareToUpdateRecordsL
       
   556 // ---------------------------------------------------------------------------
       
   557 //
       
   558 EXPORT_C void CCmPluginBase::PrepareToUpdateRecordsL()
       
   559     {
       
   560     iPlugin->PrepareToUpdateRecordsL();
       
   561     }
       
   562     
       
   563 // ---------------------------------------------------------------------------
       
   564 // CCmPluginBase::UpdateIAPRecordL
       
   565 // ---------------------------------------------------------------------------
       
   566 //
       
   567 void CCmPluginBase::UpdateIAPRecordL()
       
   568     {
       
   569     iPlugin->UpdateIAPRecordL();
       
   570     }
       
   571 
       
   572 // ---------------------------------------------------------------------------
       
   573 // CCmPluginBase::UpdateProxyRecordL
       
   574 // ---------------------------------------------------------------------------
       
   575 //
       
   576 EXPORT_C void CCmPluginBase::UpdateProxyRecordL()
       
   577     {
       
   578     iPlugin->UpdateProxyRecordL();
       
   579     }
       
   580 
       
   581 
       
   582 // ---------------------------------------------------------------------------
       
   583 // CCmPluginBase::UpdateSeamlessnessRecordL
       
   584 // ---------------------------------------------------------------------------
       
   585 //
       
   586 void CCmPluginBase::UpdateSeamlessnessRecordL()
       
   587     {
       
   588     iPlugin->UpdateSeamlessnessRecordL();
       
   589     }
       
   590 
       
   591 // ---------------------------------------------------------------------------
       
   592 // CCmPluginBase::UpdateChargeCardRecordL
       
   593 // ---------------------------------------------------------------------------
       
   594 //
       
   595 void CCmPluginBase::UpdateChargeCardRecordL()
       
   596     {
       
   597     iPlugin->UpdateChargeCardRecordL();
       
   598     }
       
   599 
       
   600 // ---------------------------------------------------------------------------
       
   601 // CCmPluginBase::UpdateServiceRecordL
       
   602 // ---------------------------------------------------------------------------
       
   603 //
       
   604 EXPORT_C void CCmPluginBase::UpdateServiceRecordL()
       
   605     {
       
   606     iPlugin->UpdateServiceRecordL();
       
   607     }
       
   608 
       
   609 // ---------------------------------------------------------------------------
       
   610 // CCmPluginBase::UpdateNetworkRecordL
       
   611 // ---------------------------------------------------------------------------
       
   612 //
       
   613 void CCmPluginBase::UpdateNetworkRecordL()
       
   614     {
       
   615     iPlugin->UpdateNetworkRecordL();
       
   616     }
       
   617 
       
   618 // ---------------------------------------------------------------------------
       
   619 // CCmPluginBase::UpdateLocationRecordL
       
   620 // ---------------------------------------------------------------------------
       
   621 //
       
   622 void CCmPluginBase::UpdateLocationRecordL()
       
   623     {
       
   624     iPlugin->UpdateLocationRecordL();
       
   625     }
       
   626 
       
   627 // ---------------------------------------------------------------------------
       
   628 // CCmPluginBase::UpdateConnPrefSettingL
       
   629 // ---------------------------------------------------------------------------
       
   630 //
       
   631 void CCmPluginBase::UpdateConnPrefSettingL()
       
   632     {
       
   633     iPlugin->UpdateConnPrefSettingL();
       
   634     }
       
   635 
       
   636 // ---------------------------------------------------------------------------
       
   637 // CCmPluginBase::EnableProxyL
       
   638 // ---------------------------------------------------------------------------
       
   639 //
       
   640 EXPORT_C void CCmPluginBase::EnableProxyL( TBool aEnable )
       
   641     {
       
   642     iPlugin->EnableProxyL(aEnable);
       
   643     }
       
   644     
       
   645 // ---------------------------------------------------------------------------
       
   646 // CCmPluginBase::EnableChargeCardL
       
   647 // ---------------------------------------------------------------------------
       
   648 //
       
   649 EXPORT_C void CCmPluginBase::EnableChargeCardL( TBool aEnable )
       
   650     {
       
   651     iPlugin->EnableChargeCardL(aEnable);
       
   652     }
       
   653     
       
   654 // ---------------------------------------------------------------------------
       
   655 // CCmPluginBase::EnableLocationL
       
   656 // ---------------------------------------------------------------------------
       
   657 //
       
   658 EXPORT_C void CCmPluginBase::EnableLocationL( TBool aEnable )
       
   659     {
       
   660     iPlugin->EnableLocationL(aEnable);
       
   661     }
       
   662 
       
   663 // ---------------------------------------------------------------------------
       
   664 // CCmPluginBase::LoadWapRecordL
       
   665 // ---------------------------------------------------------------------------
       
   666 //
       
   667 void CCmPluginBase::LoadWapRecordL()
       
   668     {
       
   669     iPlugin->LoadWapRecordL();
       
   670     }
       
   671 
       
   672 // ---------------------------------------------------------------------------
       
   673 // CCmPluginBase::LoadSeamlessnessRecordL
       
   674 // ---------------------------------------------------------------------------
       
   675 //
       
   676 void CCmPluginBase::LoadSeamlessnessRecordL()
       
   677     {
       
   678     iPlugin->LoadSeamlessnessRecordL();
       
   679     }
       
   680 
       
   681 // ---------------------------------------------------------------------------
       
   682 // CCmPluginBase::UpdateWapRecordL
       
   683 // ---------------------------------------------------------------------------
       
   684 //
       
   685 void CCmPluginBase::UpdateWapRecordL()
       
   686     {
       
   687     iPlugin->UpdateWapRecordL();
       
   688     }
       
   689 
       
   690 // ---------------------------------------------------------------------------
       
   691 // CCmPluginBase::NewWapRecordL
       
   692 // ---------------------------------------------------------------------------
       
   693 //
       
   694 void CCmPluginBase::NewWapRecordL()
       
   695     {
       
   696     iPlugin->NewWapRecordL();
       
   697     }
       
   698 
       
   699 // ---------------------------------------------------------------------------
       
   700 // CCmPluginBase::NewSeamlessnessRecordL
       
   701 // ---------------------------------------------------------------------------
       
   702 //
       
   703 CCDIAPMetadataRecord* CCmPluginBase::NewSeamlessnessRecordL( TBool aSetDef )
       
   704     {
       
   705     return iPlugin->NewSeamlessnessRecordL(aSetDef);
       
   706     }
       
   707 
       
   708 // ---------------------------------------------------------------------------
       
   709 // CCmPluginBase::SetAttribute
       
   710 // ---------------------------------------------------------------------------
       
   711 //
       
   712 void CCmPluginBase::SetAttribute( CCDRecordBase* aRecord, 
       
   713                                      TUint32 aAttribute, 
       
   714                                      TBool aSet )
       
   715     {
       
   716     iPlugin->SetAttribute(aRecord, aAttribute, aSet);
       
   717     }
       
   718 
       
   719 // ---------------------------------------------------------------------------
       
   720 // CCmPluginBase::CopyAttributes
       
   721 // ---------------------------------------------------------------------------
       
   722 //
       
   723 void CCmPluginBase::CopyAttributes( CCDRecordBase* aSrcRecord, 
       
   724                                        CCDRecordBase* aDstRecord )
       
   725     {
       
   726     iPlugin->CopyAttributes(aSrcRecord, aDstRecord);
       
   727     }
       
   728 
       
   729 // ---------------------------------------------------------------------------
       
   730 // CCmPluginBase::FindWAPRecordL
       
   731 // ---------------------------------------------------------------------------
       
   732 //
       
   733 CCDWAPIPBearerRecord* CCmPluginBase::FindWAPRecordL()
       
   734     {
       
   735     return iPlugin->FindWAPRecordL();
       
   736     }
       
   737 
       
   738 // ---------------------------------------------------------------------------
       
   739 // CCmPluginBase::FindSeamlessnessRecordL
       
   740 // ---------------------------------------------------------------------------
       
   741 //
       
   742 CCDIAPMetadataRecord* CCmPluginBase::FindSeamlessnessRecordL()
       
   743     {
       
   744     return iPlugin->FindSeamlessnessRecordL();
       
   745     }
       
   746 
       
   747 // ---------------------------------------------------------------------------
       
   748 // CCmPluginBase::IAPRecordElementId
       
   749 // ---------------------------------------------------------------------------
       
   750 TMDBElementId CCmPluginBase::IAPRecordElementId() const
       
   751     {
       
   752     return iPlugin->IAPRecordElementId();
       
   753     }
       
   754 // ---------------------------------------------------------------------------
       
   755 // CCmPluginBase::ParentDestination
       
   756 // ---------------------------------------------------------------------------
       
   757 EXPORT_C CCmDestinationImpl* CCmPluginBase::ParentDestination() const 
       
   758     { 
       
   759     return iPlugin->ParentDestination();
       
   760     }
       
   761 
       
   762 // ---------------------------------------------------------------------------
       
   763 // CCmPluginBase::CmMgr
       
   764 // ---------------------------------------------------------------------------
       
   765 EXPORT_C CCmManagerImpl& CCmPluginBase::CmMgr() const 
       
   766     { 
       
   767     return iPlugin->CmMgr();
       
   768     };
       
   769 
       
   770 
       
   771 // ---------------------------------------------------------------------------
       
   772 // CCmPluginBase::Plugin
       
   773 // ---------------------------------------------------------------------------
       
   774 void CCmPluginBase::SetPlugin(CCmPluginBaseEng* aPlugin) 
       
   775     { 
       
   776     iPlugin = aPlugin;
       
   777     };
       
   778 
       
   779 // ---------------------------------------------------------------------------
       
   780 // CCmPluginBase::Plugin
       
   781 // ---------------------------------------------------------------------------
       
   782 EXPORT_C CCmPluginBaseEng* CCmPluginBase::Plugin() const 
       
   783     { 
       
   784     return iPlugin;
       
   785     };
       
   786     
       
   787 // -----------------------------------------------------------------------------
       
   788 // CCmPluginBase::IncrementRefCounter
       
   789 // -----------------------------------------------------------------------------
       
   790 void CCmPluginBase::IncrementRefCounter()
       
   791     {
       
   792     iPlugin->IncrementRefCounter();
       
   793     }
       
   794 // -----------------------------------------------------------------------------
       
   795 // CCmPluginBase::DecrementRefCounter
       
   796 // -----------------------------------------------------------------------------
       
   797 void CCmPluginBase::DecrementRefCounter()
       
   798     {
       
   799     iPlugin->DecrementRefCounter();
       
   800     }
       
   801 // -----------------------------------------------------------------------------
       
   802 // CCmPluginBase::GetRefCounter
       
   803 // -----------------------------------------------------------------------------
       
   804 TInt CCmPluginBase::GetRefCounter()
       
   805     {
       
   806     return iPlugin->GetRefCounter();
       
   807     }
       
   808                                                                     
       
   809 // -----------------------------------------------------------------------------
       
   810 // CCmPluginBase::GetAdditionalUids
       
   811 // -----------------------------------------------------------------------------
       
   812 EXPORT_C void CCmPluginBase::GetAdditionalUids( RArray<TUint32>& aIapIds )
       
   813     {
       
   814     iPlugin->GetAdditionalUids( aIapIds );
       
   815     }
       
   816 
       
   817 //-----------------------------------------------------------------------------
       
   818 // CCmPluginBase::FilterPossibleParentsL
       
   819 // -----------------------------------------------------------------------------
       
   820 void CCmPluginBase::FilterPossibleParentsL( RArray<TUint32>& aDests )
       
   821     {
       
   822     iPlugin->FilterPossibleParentsL( aDests );
       
   823     }