cmmanager/cmmgr/cmmplugins/cmpluginembdestination/src/cmpluginembdestination.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
       
     2 * Copyright (c) 2010 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 CCmPluginEmbDestination
       
    15 *
       
    16 */
       
    17 
       
    18 #include <ecom/ecom.h>      // For REComSession
       
    19 #include <datamobilitycommsdattypes.h>
       
    20 
       
    21 #include "cmpluginembdestination.h"
       
    22 #include "cmmserverdefs.h"
       
    23 
       
    24 #include "OstTraceDefinitions.h"
       
    25 #ifdef OST_TRACE_COMPILER_IN_USE
       
    26 #include "cmpluginembdestinationTraces.h"
       
    27 #endif
       
    28 
       
    29 using namespace CMManager;
       
    30 using namespace CommsDat;
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 // CCmPluginEmbDestination::NewL()
       
    34 // ---------------------------------------------------------
       
    35 //
       
    36 CCmPluginEmbDestination* CCmPluginEmbDestination::NewL(
       
    37         TCmPluginInitParam* aInitParam )
       
    38     {
       
    39     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_NEWL_ENTRY );
       
    40 
       
    41     CCmPluginEmbDestination* self = new( ELeave ) CCmPluginEmbDestination( aInitParam );
       
    42     CleanupStack::PushL( self );
       
    43     self->ConstructL();
       
    44     CleanupStack::Pop( self );
       
    45 
       
    46     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_NEWL_EXIT );
       
    47     return self;
       
    48     }
       
    49 
       
    50 // ----------------------------------------------------------------------------
       
    51 // CCmPluginEmbDestination::CreateInstanceL
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 CCmPluginBaseEng* CCmPluginEmbDestination::CreateInstanceL(
       
    55         TCmPluginInitParam& aInitParam ) const
       
    56     {
       
    57     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_CREATEINSTANCEL_ENTRY );
       
    58 
       
    59     CCmPluginEmbDestination* self = new( ELeave ) CCmPluginEmbDestination( &aInitParam );
       
    60     CleanupStack::PushL( self );
       
    61     self->ConstructL();
       
    62     CleanupStack::Pop( self );
       
    63 
       
    64     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_CREATEINSTANCEL_EXIT );
       
    65     return self;
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // CCmPluginEmbDestination::~CCmPluginEmbDestination()
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 CCmPluginEmbDestination::~CCmPluginEmbDestination()
       
    73     {
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // CCmPluginEmbDestination::CCmPluginEmbDestination()
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 CCmPluginEmbDestination::CCmPluginEmbDestination(
       
    81         TCmPluginInitParam* aInitParam )
       
    82         :
       
    83         CCmPluginBaseEng( aInitParam )
       
    84 	{
       
    85 	iBearerType = KUidEmbeddedDestination;
       
    86 	iDestMetadataTableId = 0;
       
    87 	}
       
    88 
       
    89 // ---------------------------------------------------------------------------
       
    90 // CCmPluginEmbDestination::ConstructL()
       
    91 // ---------------------------------------------------------------------------
       
    92 //
       
    93 void CCmPluginEmbDestination::ConstructL()
       
    94 	{
       
    95     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_CONSTRUCTL_ENTRY );
       
    96 
       
    97     CCmPluginBaseEng::ConstructL();
       
    98 
       
    99     TRAPD( err, iDestMetadataTableId = CCDSNAPMetadataRecord::TableIdL( iSession ) );
       
   100     if ( err == KErrNotFound )
       
   101         {
       
   102         iDestMetadataTableId = CCDSNAPMetadataRecord::CreateTableL( iSession );
       
   103         }
       
   104     else
       
   105         {
       
   106         User::LeaveIfError( err );
       
   107         }
       
   108 
       
   109     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_CONSTRUCTL_EXIT );
       
   110 	}
       
   111 
       
   112 
       
   113 // ---------------------------------------------------------
       
   114 // CCmPluginEmbDestination::CanHandleIapIdL()
       
   115 // ---------------------------------------------------------
       
   116 //
       
   117 TBool CCmPluginEmbDestination::CanHandleIapIdL(
       
   118         TUint32 /*aIapId*/ ) const
       
   119     {
       
   120     return EFalse;
       
   121     }
       
   122 
       
   123 // ---------------------------------------------------------
       
   124 // CCmPluginEmbDestination::CanHandleIapIdL()
       
   125 // ---------------------------------------------------------
       
   126 //
       
   127 TBool CCmPluginEmbDestination::CanHandleIapIdL(
       
   128         CCDIAPRecord* /*aIapRecord*/ ) const
       
   129     {
       
   130     return EFalse;
       
   131     }
       
   132 
       
   133 // ----------------------------------------------------------------------------
       
   134 // CCmPluginEmbDestination::PreparePluginToUpdateRecordsL()
       
   135 // ----------------------------------------------------------------------------
       
   136 //
       
   137 void CCmPluginEmbDestination::PreparePluginToLoadRecordsL()
       
   138     {
       
   139     }
       
   140 
       
   141 // ----------------------------------------------------------------------------
       
   142 // CCmPluginEmbDestination::PreparePluginToUpdateRecordsL()
       
   143 // ----------------------------------------------------------------------------
       
   144 //
       
   145 void CCmPluginEmbDestination::PreparePluginToUpdateRecordsL(
       
   146         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   147         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   148     {
       
   149     }
       
   150 
       
   151 // --------------------------------------------------------------------------
       
   152 // CCmPluginEmbDestination::CreateServiceRecordL
       
   153 // --------------------------------------------------------------------------
       
   154 //
       
   155 void CCmPluginEmbDestination::CreateServiceRecordL()
       
   156     {
       
   157     }
       
   158 
       
   159 // --------------------------------------------------------------------------
       
   160 // CCmPluginEmbDestination::LoadServiceRecordL
       
   161 // --------------------------------------------------------------------------
       
   162 //
       
   163 void CCmPluginEmbDestination::LoadServiceRecordL()
       
   164     {
       
   165     }
       
   166 
       
   167 // ---------------------------------------------------------------------------
       
   168 // CCmPluginEmbDestination::PrepareToCopyDataL
       
   169 // ---------------------------------------------------------------------------
       
   170 //
       
   171 void CCmPluginEmbDestination::PrepareToCopyDataL(
       
   172         CCmPluginBaseEng* /*aCopyInstance*/ )
       
   173     {
       
   174     }
       
   175 
       
   176 // ---------------------------------------------------------------------------
       
   177 // CCmPluginEmbDestination::CopyServiceRecordL
       
   178 // ---------------------------------------------------------------------------
       
   179 //
       
   180 CommsDat::CCDRecordBase* CCmPluginEmbDestination::CopyServiceRecordL()
       
   181     {
       
   182     return NULL;
       
   183     }
       
   184 
       
   185 // ----------------------------------------------------------------------------
       
   186 // CCmPluginEmbDestination::UpdateServiceRecordL()
       
   187 // ----------------------------------------------------------------------------
       
   188 //
       
   189 void CCmPluginEmbDestination::UpdateServiceRecordL(
       
   190         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   191         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   192     {
       
   193     User::Leave( KErrNotSupported );
       
   194     }
       
   195 
       
   196 // ---------------------------------------------------------------------------
       
   197 // CCmPluginEmbDestination::CreateBearerRecordsL
       
   198 // ---------------------------------------------------------------------------
       
   199 //
       
   200 void CCmPluginEmbDestination::CreateBearerRecordsL()
       
   201     {
       
   202     }
       
   203 
       
   204 // --------------------------------------------------------------------------
       
   205 // CCmPluginEmbDestination::LoadBearerRecordsL
       
   206 // --------------------------------------------------------------------------
       
   207 //
       
   208 void CCmPluginEmbDestination::LoadBearerRecordsL()
       
   209     {
       
   210     }
       
   211 
       
   212 // ---------------------------------------------------------------------------
       
   213 // CCmPluginEmbDestination::ServiceRecordIdLC
       
   214 // ---------------------------------------------------------------------------
       
   215 //
       
   216 TUint32 CCmPluginEmbDestination::ServiceRecordId() const
       
   217     {
       
   218     return 0;
       
   219     }
       
   220 
       
   221 // ---------------------------------------------------------------------------
       
   222 // CCmPluginEmbDestination::ServiceRecordNameLC
       
   223 // ---------------------------------------------------------------------------
       
   224 //
       
   225 void CCmPluginEmbDestination::ServiceRecordNameLC( HBufC*& /*aName*/ )
       
   226     {
       
   227     }
       
   228 
       
   229 // ---------------------------------------------------------------------------
       
   230 // CCmPluginEmbDestination::BearerRecordIdL()
       
   231 // ---------------------------------------------------------------------------
       
   232 //
       
   233 void CCmPluginEmbDestination::BearerRecordIdL( TUint32& /*aRecordId*/ )
       
   234     {
       
   235     }
       
   236 
       
   237 // ---------------------------------------------------------------------------
       
   238 // CCmPluginEmbDestination::BearerRecordNameLC()
       
   239 // ---------------------------------------------------------------------------
       
   240 //
       
   241 void CCmPluginEmbDestination::BearerRecordNameLC( HBufC*& /*aBearerName*/ )
       
   242     {
       
   243     }
       
   244 
       
   245 // ---------------------------------------------------------------------------
       
   246 // CCmPluginEmbDestination::GetBearerSpecificRecordsL
       
   247 // ---------------------------------------------------------------------------
       
   248 //
       
   249 void CCmPluginEmbDestination::GetBearerSpecificRecordsL(
       
   250         RPointerArray<CommsDat::CCDRecordBase>& /*aRecordArray*/ )
       
   251     {
       
   252     }
       
   253 
       
   254 // --------------------------------------------------------------------------
       
   255 // CCmPluginEmbDestination::DeleteBearerRecordsL
       
   256 // --------------------------------------------------------------------------
       
   257 //
       
   258 void CCmPluginEmbDestination::DeleteBearerRecordsL()
       
   259     {
       
   260     }
       
   261 
       
   262 // ----------------------------------------------------------------------------
       
   263 // CCmPluginEmbDestination::UpdateBearerRecordsL()
       
   264 // ----------------------------------------------------------------------------
       
   265 //
       
   266 void CCmPluginEmbDestination::UpdateBearerRecordsL(
       
   267         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   268         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   269     {
       
   270     User::Leave( KErrNotSupported );
       
   271     }
       
   272 
       
   273 // ---------------------------------------------------------
       
   274 // CCmPluginEmbDestination::ResetBearerRecords()
       
   275 // ---------------------------------------------------------
       
   276 //
       
   277 void CCmPluginEmbDestination::ResetBearerRecords()
       
   278     {
       
   279     }
       
   280 
       
   281 // --------------------------------------------------------------------------
       
   282 // CCmPluginEmbDestination::GetBearerIntAttributeL
       
   283 // --------------------------------------------------------------------------
       
   284 //
       
   285 TUint32 CCmPluginEmbDestination::GetBearerIntAttributeL(
       
   286         TUint32 aAttribute,
       
   287         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   288         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   289     {
       
   290     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_GETBEARERINTATTRIBUTEL_ENTRY );
       
   291 
       
   292     TUint32 retVal( 0 );
       
   293     switch ( aAttribute )
       
   294         {
       
   295         case ECmBearerType:
       
   296             {
       
   297             retVal = iBearerType;
       
   298             }
       
   299             break;
       
   300         case ECmId:
       
   301             {
       
   302             retVal = iCmId;
       
   303             }
       
   304             break;
       
   305         case ECmExtensionLevel:
       
   306             {
       
   307             retVal = KExtensionBaseLevel;
       
   308             }
       
   309             break;
       
   310         case ECmDefaultPriority:
       
   311         case ECmDefaultUiPriority:
       
   312             {
       
   313             retVal = KDataMobilitySelectionPolicyPriorityWildCard;
       
   314             }
       
   315             break;
       
   316         default:
       
   317             {
       
   318             User::Leave( KErrNotSupported );
       
   319             }
       
   320             break;
       
   321         }
       
   322 
       
   323     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_GETBEARERINTATTRIBUTEL_EXIT );
       
   324     return retVal;
       
   325     }
       
   326 
       
   327 // --------------------------------------------------------------------------
       
   328 // CCmPluginEmbDestination::GetBearerBoolAttributeL
       
   329 // --------------------------------------------------------------------------
       
   330 //
       
   331 TBool CCmPluginEmbDestination::GetBearerBoolAttributeL(
       
   332         TUint32 aAttribute,
       
   333         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   334         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   335     {
       
   336     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_GETBEARERBOOLATTRIBUTEL_ENTRY );
       
   337 
       
   338     TBool retVal( 0 );
       
   339     switch ( aAttribute )
       
   340         {
       
   341         case ECmCoverage:
       
   342             {
       
   343             retVal = EFalse;
       
   344             }
       
   345             break;
       
   346         case ECmDestination:
       
   347             {
       
   348             retVal = ETrue;
       
   349             }
       
   350             break;
       
   351         case ECmProtected:
       
   352             {
       
   353             TUint32 protlevel( CMManager::EProtLevel0 );
       
   354             ProtectionLevelL( protlevel );
       
   355             if ( protlevel == CMManager::EProtLevel1 || protlevel == CMManager::EProtLevel2 )
       
   356                 {
       
   357                 retVal = ETrue;
       
   358                 }
       
   359             else
       
   360                 {
       
   361                 retVal = EFalse;
       
   362                 }
       
   363             }
       
   364             break;
       
   365         case ECmHidden:
       
   366             {
       
   367             IsHiddenL( retVal );
       
   368             }
       
   369             break;
       
   370         case ECmBearerHasUi:
       
   371             {
       
   372             retVal = EFalse;
       
   373             }
       
   374             break;
       
   375         default:
       
   376             {
       
   377             User::Leave( KErrNotSupported );
       
   378             }
       
   379             break;
       
   380         }
       
   381 
       
   382     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_GETBEARERBOOLATTRIBUTEL_EXIT );
       
   383     return retVal;
       
   384     }
       
   385 
       
   386 // --------------------------------------------------------------------------
       
   387 // CCmPluginEmbDestination::ProtectionLevelL
       
   388 // --------------------------------------------------------------------------
       
   389 //
       
   390 void CCmPluginEmbDestination::ProtectionLevelL( TUint32& aProtLevel )
       
   391     {
       
   392     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_PROTECTIONLEVELL_ENTRY );
       
   393 
       
   394     CCDSNAPMetadataRecord* metadataRecord; // Owned.
       
   395     metadataRecord = new( ELeave ) CCDSNAPMetadataRecord( iDestMetadataTableId );
       
   396     CleanupStack::PushL( metadataRecord );
       
   397 
       
   398     metadataRecord->iSNAP = iCmId;
       
   399     metadataRecord->LoadL( iSession );
       
   400 
       
   401     aProtLevel = ( metadataRecord->iMetadata & KDestProtectionLevelMask )
       
   402             >> KBitsToShiftDestProtectionLevel;
       
   403 
       
   404     CleanupStack::PopAndDestroy( metadataRecord );
       
   405 
       
   406     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_PROTECTIONLEVELL_EXIT );
       
   407     }
       
   408 
       
   409 // --------------------------------------------------------------------------
       
   410 // CCmPluginEmbDestination::IsHiddenL
       
   411 // --------------------------------------------------------------------------
       
   412 //
       
   413 void CCmPluginEmbDestination::IsHiddenL( TBool& aHidden )
       
   414     {
       
   415     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_ISHIDDENL_ENTRY );
       
   416 
       
   417     aHidden = EFalse;
       
   418 
       
   419     CCDSNAPMetadataRecord* metadataRecord; // Owned.
       
   420     metadataRecord = new( ELeave ) CCDSNAPMetadataRecord( iDestMetadataTableId );
       
   421     CleanupStack::PushL( metadataRecord );
       
   422 
       
   423     metadataRecord->iSNAP = iCmId;
       
   424     metadataRecord->LoadL( iSession );
       
   425 
       
   426     if( ( TUint32 )( metadataRecord->iMetadata ) & CMManager::ESnapMetadataHiddenAgent )
       
   427         {
       
   428         aHidden = ETrue;
       
   429         }
       
   430 
       
   431     CleanupStack::PopAndDestroy( metadataRecord );
       
   432 
       
   433     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_ISHIDDENL_EXIT );
       
   434     }
       
   435 
       
   436 // --------------------------------------------------------------------------
       
   437 // CCmPluginEmbDestination::GetBearerStringAttributeL
       
   438 // --------------------------------------------------------------------------
       
   439 //
       
   440 HBufC* CCmPluginEmbDestination::GetBearerStringAttributeL(
       
   441         TUint32 /*aAttribute*/,
       
   442         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   443         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   444     {
       
   445     HBufC* retVal = NULL;
       
   446 
       
   447     return retVal;
       
   448     }
       
   449 
       
   450 // --------------------------------------------------------------------------
       
   451 // CCmPluginEmbDestination::GetBearerString8AttributeL
       
   452 // --------------------------------------------------------------------------
       
   453 //
       
   454 HBufC8* CCmPluginEmbDestination::GetBearerString8AttributeL(
       
   455         TUint32 /*aAttribute*/,
       
   456         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   457         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   458     {
       
   459     HBufC8* retVal( NULL );
       
   460 
       
   461     return retVal;
       
   462     }
       
   463 
       
   464 // --------------------------------------------------------------------------
       
   465 // CCmPluginEmbDestination::SetBearerIntAttributeL
       
   466 // --------------------------------------------------------------------------
       
   467 //
       
   468 void CCmPluginEmbDestination::SetBearerIntAttributeL(
       
   469         TUint32 /*aAttribute*/,
       
   470         TUint32 /*aValue*/,
       
   471         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   472         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   473     {
       
   474     User::Leave( KErrNotSupported );
       
   475     }
       
   476 
       
   477 // --------------------------------------------------------------------------
       
   478 // CCmPluginEmbDestination::SetBearerBoolAttributeL
       
   479 // --------------------------------------------------------------------------
       
   480 //
       
   481 void CCmPluginEmbDestination::SetBearerBoolAttributeL(
       
   482         TUint32 /*aAttribute*/,
       
   483         TBool /*aValue*/,
       
   484         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   485         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   486     {
       
   487     User::Leave( KErrNotSupported );
       
   488     }
       
   489 
       
   490 // --------------------------------------------------------------------------
       
   491 // CCmPluginEmbDestination::SetBearerStringAttributeL
       
   492 // --------------------------------------------------------------------------
       
   493 //
       
   494 void CCmPluginEmbDestination::SetBearerStringAttributeL(
       
   495         TUint32 /*aAttribute*/,
       
   496         const TDesC16& /*aValue*/,
       
   497         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   498         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   499     {
       
   500     User::Leave( KErrNotSupported );
       
   501     }
       
   502 
       
   503 // --------------------------------------------------------------------------
       
   504 // CCmPluginEmbDestination::SetBearerString8AttributeL
       
   505 // --------------------------------------------------------------------------
       
   506 //
       
   507 void CCmPluginEmbDestination::SetBearerString8AttributeL(
       
   508         TUint32 /*aAttribute*/,
       
   509         const TDesC8& /*aValue*/,
       
   510         RPointerArray<CommsDat::CCDRecordBase>& /*aGenRecordArray*/,
       
   511         RPointerArray<CommsDat::CCDRecordBase>& /*aBearerSpecRecordArray*/ )
       
   512     {
       
   513     User::Leave( KErrNotSupported );
       
   514     }
       
   515 
       
   516 // ---------------------------------------------------------------------------
       
   517 // CCmPluginEmbDestination::GetBearerInfoIntL
       
   518 // ---------------------------------------------------------------------------
       
   519 //
       
   520 TUint32 CCmPluginEmbDestination::GetBearerInfoIntL(
       
   521         TUint32 aAttribute ) const
       
   522     {
       
   523     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_GETBEARERINFOINTL_ENTRY );
       
   524 
       
   525     TUint32 retVal( 0 );
       
   526     switch ( aAttribute )
       
   527         {
       
   528         case ECmBearerType:
       
   529             {
       
   530             retVal = iBearerType;
       
   531             }
       
   532             break;
       
   533         case ECmDefaultUiPriority:
       
   534         case ECmDefaultPriority:
       
   535             {
       
   536             retVal = KDataMobilitySelectionPolicyPriorityWildCard;
       
   537             }
       
   538             break;
       
   539         case ECmExtensionLevel:
       
   540             {
       
   541             retVal = KExtensionBaseLevel;
       
   542             }
       
   543             break;
       
   544         default:
       
   545             {
       
   546             User::Leave( KErrNotSupported );
       
   547             }
       
   548             break;
       
   549         }
       
   550 
       
   551     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_GETBEARERINFOINTL_EXIT );
       
   552     return retVal;
       
   553     }
       
   554 
       
   555 // ---------------------------------------------------------------------------
       
   556 // CCmPluginEmbDestination::GetBearerInfoBoolL
       
   557 // ---------------------------------------------------------------------------
       
   558 //
       
   559 TBool CCmPluginEmbDestination::GetBearerInfoBoolL( TUint32 aAttribute ) const
       
   560     {
       
   561     OstTraceFunctionEntry0( CCMPLUGINEMBDESTINATION_GETBEARERINFOBOOLL_ENTRY );
       
   562 
       
   563     TBool retVal( EFalse );
       
   564     switch ( aAttribute )
       
   565         {
       
   566         case ECmCoverage:
       
   567             {
       
   568             retVal = EFalse;
       
   569             }
       
   570             break;
       
   571         case ECmDestination:
       
   572             {
       
   573             retVal = ETrue;
       
   574             }
       
   575             break;
       
   576         case ECmBearerHasUi:
       
   577             {
       
   578             retVal = EFalse;
       
   579             }
       
   580             break;
       
   581         case ECmVirtual:
       
   582             {
       
   583             retVal = EFalse;
       
   584             }
       
   585             break;
       
   586         default:
       
   587             {
       
   588             User::Leave( KErrNotSupported );
       
   589             }
       
   590             break;
       
   591         }
       
   592 
       
   593     OstTraceFunctionExit0( CCMPLUGINEMBDESTINATION_GETBEARERINFOBOOLL_EXIT );
       
   594     return retVal;
       
   595     }
       
   596 
       
   597 // ---------------------------------------------------------------------------
       
   598 // CCmPluginEmbDestination::GetBearerInfoStringL
       
   599 // ---------------------------------------------------------------------------
       
   600 //
       
   601 HBufC* CCmPluginEmbDestination::GetBearerInfoStringL(
       
   602         TUint32 /*aAttribute*/ ) const
       
   603     {
       
   604     HBufC* retVal( NULL );
       
   605 
       
   606     User::Leave( KErrNotSupported );
       
   607 
       
   608     return retVal;
       
   609     }
       
   610 
       
   611 // ---------------------------------------------------------------------------
       
   612 // CCmPluginEmbDestination::GetBearerInfoString8L
       
   613 // ---------------------------------------------------------------------------
       
   614 //
       
   615 HBufC8* CCmPluginEmbDestination::GetBearerInfoString8L(
       
   616         TUint32 /*aAttribute*/ ) const
       
   617     {
       
   618     HBufC8* retVal( NULL );
       
   619 
       
   620     User::Leave( KErrNotSupported );
       
   621 
       
   622     return retVal;
       
   623     }
       
   624 
       
   625 // ---------------------------------------------------------------------------
       
   626 // CCmPluginEmbDestination::CopyBearerRecordsL
       
   627 // ---------------------------------------------------------------------------
       
   628 //
       
   629 void CCmPluginEmbDestination::CopyBearerRecordsL(
       
   630         CCmPluginBaseEng* /*aCopyInstance*/ )
       
   631     {
       
   632     }
       
   633 
       
   634 // ---------------------------------------------------------------------------
       
   635 // CCmPluginEmbDestination::GetBearerTableIdsToBeObserved
       
   636 // ---------------------------------------------------------------------------
       
   637 //
       
   638 void CCmPluginEmbDestination::GetBearerTableIdsToBeObservedL(
       
   639         RArray<TUint32>& /*aTableIdArray*/ ) const
       
   640     {
       
   641     }
       
   642 
       
   643 // End of file