hotspotfw/hsclient/src/hssiaphandler.cpp
changeset 37 195ec9e7dd85
parent 32 5bbf13e885a0
child 39 7b3e49e4608a
equal deleted inserted replaced
33:f54b8905a6ee 37:195ec9e7dd85
   369 //
   369 //
   370 void CHssIapHandler::GetClientIapsL( const TUid aUId, RArray<TUint>& aIapIdArray )
   370 void CHssIapHandler::GetClientIapsL( const TUid aUId, RArray<TUint>& aIapIdArray )
   371     {
   371     {
   372     DEBUG("CHssIapSettingsHandler::GetClientsIapsL");
   372     DEBUG("CHssIapSettingsHandler::GetClientsIapsL");
   373     TBuf<32> buffer;                    // Temporary buffer for found UID from destination.
   373     TBuf<32> buffer;                    // Temporary buffer for found UID from destination.
   374     TUidName uidClient = aUId.Name();   // UID of the client.
       
   375     TUint32 iapId = 0;                  // IAP Identifiier.
   374     TUint32 iapId = 0;                  // IAP Identifiier.
       
   375     TBuf<KIapNameLength> uidClient;     // UID of the client.
       
   376     
       
   377     uidClient.Copy( aUId.Name() );
       
   378     ModifyClientUid( uidClient );
   376 
   379 
   377     RArray<TUint32> destArray = RArray<TUint32>( 10 );  // KCmArrayGranularity instead of 10
   380     RArray<TUint32> destArray = RArray<TUint32>( 10 );  // KCmArrayGranularity instead of 10
   378     CleanupClosePushL( destArray );
   381     CleanupClosePushL( destArray );
   379 
   382 
   380     RCmManagerExt cmManager;
   383     RCmManagerExt cmManager;
   422 
   425 
   423     CleanupStack::PopAndDestroy( &cmManager );
   426     CleanupStack::PopAndDestroy( &cmManager );
   424     CleanupStack::PopAndDestroy( &destArray );
   427     CleanupStack::PopAndDestroy( &destArray );
   425     }
   428     }
   426 
   429 
       
   430 // -----------------------------------------------------------------------------
       
   431 // ModifyClientUid
       
   432 // -----------------------------------------------------------------------------
       
   433 //
       
   434 void CHssIapHandler::ModifyClientUid( TDes& aUid )
       
   435     {
       
   436     DEBUG("CHssIapHandler::ModifyClientUid");
       
   437     TInt indx = aUid.Find( KMark1 );
       
   438     if ( KErrNotFound != indx )
       
   439         {
       
   440         aUid.Delete( indx, 1 );
       
   441         indx = aUid.Find( KMark2 );
       
   442         if ( KErrNotFound != indx )
       
   443             {
       
   444             aUid.Delete( indx, 1 );
       
   445             }
       
   446         }
       
   447     }
       
   448 
   427 // End of File
   449 // End of File