201023
authorhgs
Thu, 10 Jun 2010 15:44:54 +0300
changeset 36 682dd021f9be
parent 33 f54b8905a6ee
child 39 7b3e49e4608a
201023
hotspotfw/hsclient/inc/hssiaphandler.h
hotspotfw/hsclient/src/hssiaphandler.cpp
--- a/hotspotfw/hsclient/inc/hssiaphandler.h	Thu May 27 13:55:50 2010 +0300
+++ b/hotspotfw/hsclient/inc/hssiaphandler.h	Thu Jun 10 15:44:54 2010 +0300
@@ -109,6 +109,12 @@
         void ConvertAsciiToHex( const TDes8& aSource, 
                                                 HBufC8*& aDest );   
                                                                          
+        /**
+        * Removes brackets from UID
+        * @param aUid, UID of the client
+        */
+        void ModifyClientUid( TDes& aUid );
+       
     private: // Data
         
         /**
--- a/hotspotfw/hsclient/src/hssiaphandler.cpp	Thu May 27 13:55:50 2010 +0300
+++ b/hotspotfw/hsclient/src/hssiaphandler.cpp	Thu Jun 10 15:44:54 2010 +0300
@@ -371,8 +371,11 @@
     {
     DEBUG("CHssIapSettingsHandler::GetClientsIapsL");
     TBuf<32> buffer;                    // Temporary buffer for found UID from destination.
-    TUidName uidClient = aUId.Name();   // UID of the client.
     TUint32 iapId = 0;                  // IAP Identifiier.
+    TBuf<KIapNameLength> uidClient;     // UID of the client.
+    
+    uidClient.Copy( aUId.Name() );
+    ModifyClientUid( uidClient );
 
     RArray<TUint32> destArray = RArray<TUint32>( 10 );  // KCmArrayGranularity instead of 10
     CleanupClosePushL( destArray );
@@ -424,4 +427,23 @@
     CleanupStack::PopAndDestroy( &destArray );
     }
 
+// -----------------------------------------------------------------------------
+// ModifyClientUid
+// -----------------------------------------------------------------------------
+//
+void CHssIapHandler::ModifyClientUid( TDes& aUid )
+    {
+    DEBUG("CHssIapHandler::ModifyClientUid");
+    TInt indx = aUid.Find( KMark1 );
+    if ( KErrNotFound != indx )
+        {
+        aUid.Delete( indx, 1 );
+        indx = aUid.Find( KMark2 );
+        if ( KErrNotFound != indx )
+            {
+            aUid.Delete( indx, 1 );
+            }
+        }
+    }
+
 // End of File