adaptationlayer/tsy/nokiatsy_dll/src/cmmphonebookstoremesshandler.cpp
changeset 0 63b37f68c1ce
child 5 8ccc39f9d787
equal deleted inserted replaced
-1:000000000000 0:63b37f68c1ce
       
     1 /*
       
     2 * Copyright (c) 2009 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 the License "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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 //  INCLUDE FILES
       
    19 #include <etelmm.h>
       
    20 #include <etelmmerr.h>
       
    21 #include <ctsy/pluginapi/cmmdatapackage.h>
       
    22 #include <ctsy/serviceapi/mmtsy_ipcdefs.h>
       
    23 #include "tsylogger.h"
       
    24 #include <ctsy/serviceapi/gsmerror.h>
       
    25 #include <tisi.h>
       
    26 
       
    27 #include "cmmphonebookstoremesshandler.h"
       
    28 #include "cmmphonemesshandler.h"
       
    29 #include "cmmstaticutility.h"
       
    30 #include "cmmphonebookalphastring.h"
       
    31 #include "cmmphonebookoperationinit.h"
       
    32 #include "cmmphonebookoperationinit3g_adn.h"
       
    33 #include "cmmphonebookstoreoperationlist.h"
       
    34 #include "cmmphonebookstoreoperationbase.h"
       
    35 #include "cmmmessagerouter.h"
       
    36 #include "osttracedefinitions.h"
       
    37 #ifdef OST_TRACE_COMPILER_IN_USE
       
    38 #include "cmmphonebookstoremesshandlertraces.h"
       
    39 #endif
       
    40 
       
    41 
       
    42 // EXTERNAL DATA STRUCTURES
       
    43     // None
       
    44 
       
    45 // EXTERNAL FUNCTION PROTOTYPES
       
    46     // None
       
    47 
       
    48 // CONSTANTS
       
    49     // None
       
    50 
       
    51 // MACROS
       
    52     // None
       
    53 
       
    54 // LOCAL CONSTANTS AND MACROS
       
    55     // None
       
    56 
       
    57 // MODULE DATA STRUCTURES
       
    58     // None
       
    59 
       
    60 // LOCAL FUNCTION PROTOTYPES
       
    61     // None
       
    62 
       
    63 
       
    64 // ==================== LOCAL FUNCTIONS ======================================
       
    65     // None
       
    66 
       
    67 
       
    68 // ================= MEMBER FUNCTIONS ========================================
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler
       
    72 // C++ default constructor can NOT contain any code, that
       
    73 // might leave.
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler()
       
    77     {
       
    78     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::\
       
    79         CMmPhoneBookStoreMessHandler.");
       
    80 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER, "CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler" );
       
    81     }
       
    82 
       
    83 // ---------------------------------------------------------------------------
       
    84 // CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler
       
    85 // C++ destructor.
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler()
       
    89     {
       
    90     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::\
       
    91         ~CMmPhoneBookStoreMessHandler.");
       
    92 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER, "CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler" );
       
    93     delete iOperationlist;
       
    94 
       
    95 #ifdef INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
       
    96     if ( iAas )
       
    97       {
       
    98       iAas->Reset();
       
    99       delete iAas;
       
   100       }
       
   101     if ( iGas )
       
   102       {
       
   103       iGas->Reset();
       
   104       delete iGas;
       
   105       }
       
   106 #endif // INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
       
   107     }
       
   108 
       
   109 // ---------------------------------------------------------------------------
       
   110 // CMmPhoneBookStoreMessHandler::NewL
       
   111 // Two-phased constructor.
       
   112 // Creates a new CMmPhoneBookStoreMessHandler object instance.
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 CMmPhoneBookStoreMessHandler* CMmPhoneBookStoreMessHandler::NewL(
       
   116     CMmMessageRouter* aMessageRouter,  // Pointer to message router
       
   117     CMmUiccMessHandler* aUiccMessHandler) //Pointer to the Uicc Message handler
       
   118     {
       
   119     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::NewL.");
       
   120 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_NEWL, "CMmPhoneBookStoreMessHandler::NewL" );
       
   121 
       
   122     // Create PhoneBookStore messagehandler
       
   123     CMmPhoneBookStoreMessHandler* mmPhoneBookStoreMessHandler =
       
   124         new( ELeave ) CMmPhoneBookStoreMessHandler();
       
   125 
       
   126     CleanupStack::PushL( mmPhoneBookStoreMessHandler );
       
   127 
       
   128     mmPhoneBookStoreMessHandler->iMessageRouter = aMessageRouter;
       
   129     mmPhoneBookStoreMessHandler->iMmUiccMessHandler = aUiccMessHandler;
       
   130 
       
   131     mmPhoneBookStoreMessHandler->ConstructL(
       
   132         mmPhoneBookStoreMessHandler,
       
   133         aUiccMessHandler
       
   134         );
       
   135 
       
   136     CleanupStack::Pop( mmPhoneBookStoreMessHandler );
       
   137 
       
   138     return mmPhoneBookStoreMessHandler;
       
   139     }
       
   140 
       
   141 // ---------------------------------------------------------------------------
       
   142 // CMmPhoneBookStoreMessHandler::ConstructL
       
   143 // Initialises object attributes.
       
   144 // ---------------------------------------------------------------------------
       
   145 //
       
   146 void CMmPhoneBookStoreMessHandler::ConstructL(
       
   147     CMmPhoneBookStoreMessHandler* /*mmPhoneBookStoreMessHandler*/,
       
   148     CMmUiccMessHandler* aUiccMessHandler)
       
   149     {
       
   150     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ConstructL");
       
   151 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONSTRUCTL, "CMmPhoneBookStoreMessHandler::ConstructL" );
       
   152 
       
   153     iOperationlist = CMmPhoneBookStoreOperationList::NewL( this , aUiccMessHandler );
       
   154     iNumberOfFdnInfoResps = 0;
       
   155     }
       
   156 
       
   157 // ---------------------------------------------------------------------------
       
   158 // CMmPhoneBookStoreMessHandler::ExtFuncL
       
   159 // Directs requests from CommonTsy to right method
       
   160 // ---------------------------------------------------------------------------
       
   161 //
       
   162 TInt CMmPhoneBookStoreMessHandler::ExtFuncL(
       
   163     TInt aIpc,
       
   164     const CMmDataPackage* aDataPackage )
       
   165     {
       
   166     TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - arrived. \
       
   167         IPC: %d", aIpc);
       
   168 OstTrace1( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;aIpc=%d", aIpc );
       
   169 
       
   170     TInt ret( KErrNotSupported );
       
   171     CMmPhoneBookStoreOperationBase* operation( NULL );
       
   172 
       
   173     if ( EMmTsyPhoneBookStoreCacheCancelIPC == aIpc )
       
   174         {
       
   175         // processing cache cancel IPC
       
   176         TUint8 trans( 0 );
       
   177         ret = CMmPhoneBookStoreOperationList::CalculateTransactionId(
       
   178                   EMmTsyPhoneBookStoreCacheIPC, aDataPackage, trans );
       
   179         if ( KErrNone == ret )
       
   180             {
       
   181             operation = iOperationlist->Find( trans ); // seek from the beginning
       
   182             if ( NULL != operation )
       
   183                 {
       
   184                 if ( operation->IsPrepared() )
       
   185                     { // found running operation - cancel it
       
   186                     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - cancel running cache operation");
       
   187                     OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - cancel running cache operation" );
       
   188                     operation->CancelReq();
       
   189                     ret = KErrNone;
       
   190                     }
       
   191                 else
       
   192                     { // look for pending operation
       
   193                     operation = iOperationlist->Find( trans, operation );
       
   194                     if ( NULL != operation && operation->IsPrepared() )
       
   195                         { // pending operation is found - cancel it
       
   196                         TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - cancel pending cacheing");
       
   197                         OstTrace0( TRACE_NORMAL, DUP3_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - cancel pending cacheing" );
       
   198                         operation->CancelReq();
       
   199                         ret = KErrNone;
       
   200                         }
       
   201                     else
       
   202                         { // pending operation is either not found or already canceled
       
   203                           // this is error situation: multiple cancel requests
       
   204                         TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - error: nothing to cancel");
       
   205                         OstTrace0( TRACE_NORMAL, DUP2_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - error: nothing to cancel" );
       
   206                         ret = KErrServerBusy;
       
   207                         }
       
   208                     }
       
   209                 }
       
   210             else
       
   211                 {
       
   212                 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - already canceled");
       
   213                 OstTrace0( TRACE_NORMAL, DUP10_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - already canceled" );
       
   214                 }
       
   215             }
       
   216         }
       
   217     else if ( EMmTsyPhoneBookStoreCacheIPC == aIpc )
       
   218         {
       
   219         // processing cache IPC
       
   220         TUint8 trans( 0 );
       
   221         ret = CMmPhoneBookStoreOperationList::CalculateTransactionId(
       
   222                   aIpc, aDataPackage, trans );
       
   223         if ( KErrNone == ret )
       
   224             {
       
   225             operation = iOperationlist->Find( trans );
       
   226             if ( NULL != operation )
       
   227                 { // found running cacheing operation - look for pending
       
   228                   // we can not reactivate this one, because even if it is canceled
       
   229                   // it is waiting for the response from CellMo
       
   230                 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - cacheing already running");
       
   231                 OstTrace0( TRACE_NORMAL, DUP4_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - cacheing already running" );
       
   232                 if ( !operation->IsPrepared() )
       
   233                     { // pending operation creation/reactivation is allowed
       
   234                       // only if running one is canceled
       
   235                     operation = iOperationlist->Find( trans, operation );
       
   236                     if ( NULL != operation )
       
   237                         {
       
   238                         TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - pending cacheing is found");
       
   239                         OstTrace0( TRACE_NORMAL, DUP5_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - pending cacheing is found" );
       
   240                         ret = operation->PrepareReq( aIpc, aDataPackage );
       
   241 
       
   242                         if ( KErrArgument == ret )
       
   243                             {
       
   244                             // request preparation fails - needs to be removed
       
   245 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns %d", ret);
       
   246 OstTrace1( TRACE_NORMAL, DUP14_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns %d", ret );
       
   247                             iOperationlist->RemoveLastOperationFromList();
       
   248                             }
       
   249                         else if ( KErrNone != ret )
       
   250                             { // this happens when there are 2 consequent
       
   251                               // cache requests without cancellation:
       
   252                               // cache-cancel-cache-cache
       
   253                             TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - error: pending operation is active");
       
   254                             OstTrace0( TRACE_NORMAL, DUP6_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - error: pending operation is active" );
       
   255                             ret = KErrServerBusy;
       
   256                             }
       
   257                         else
       
   258                             {
       
   259                             TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - pending operation reactivated");
       
   260                             OstTrace0( TRACE_NORMAL, DUP7_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - pending operation reactivated" );
       
   261                             }
       
   262                         }
       
   263                     else
       
   264                         { // no pending operation - create and prepare
       
   265                         TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - preparing pending cacheing");
       
   266                         OstTrace0( TRACE_NORMAL, DUP8_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - preparing pending cacheing" );
       
   267                         operation = iOperationlist->BuildL( aDataPackage, aIpc );
       
   268                         ret = operation->PrepareReq( aIpc, aDataPackage );
       
   269 
       
   270                         if ( KErrArgument == ret )
       
   271                             {
       
   272 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns %d", ret);
       
   273 OstTrace1( TRACE_NORMAL, DUP13_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns %d", ret );
       
   274                             // here we remove the newly created operation
       
   275                             // we could turn it back into non-prepared state,
       
   276                             // but this breaks the concept
       
   277                             iOperationlist->RemoveLastOperationFromList();
       
   278                             }
       
   279                         }
       
   280                     }
       
   281                 else
       
   282                     { // operation was not canceled:
       
   283                       // cache-cache
       
   284                     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL; running operation was not canceled");
       
   285                     OstTrace0( TRACE_NORMAL, DUP9_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL; running operation was not canceled" );
       
   286                     ret = KErrServerBusy;
       
   287                     }
       
   288                 }
       
   289             else
       
   290                 { // no cacheing is running - create, prepare & launch
       
   291                 operation = iOperationlist->BuildL( aDataPackage, aIpc );
       
   292                 ret = operation->PrepareReq( aIpc, aDataPackage );
       
   293 
       
   294                 if ( KErrNone == ret )
       
   295                     {
       
   296                     ret = operation->LaunchReq();
       
   297                     }
       
   298 
       
   299                 if ( KErrNone != ret )
       
   300                     {
       
   301                     // in case request preparation or phonetsender fail
       
   302 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns  %d", ret);
       
   303 OstTrace1( TRACE_NORMAL, DUP12_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;PrepareReq returns  %d", ret );
       
   304                     // it is safe to ignore return value here
       
   305                     iOperationlist->RemoveLastOperationFromList();
       
   306                     }
       
   307                 }
       
   308             }
       
   309         }
       
   310     else
       
   311         { // all other IPC's
       
   312         
       
   313         operation = iOperationlist->BuildL( aDataPackage, aIpc );
       
   314             ret = operation->UICCCreateReq(aIpc,aDataPackage );
       
   315 
       
   316         if ( KErrNone != ret)
       
   317             {
       
   318 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret);
       
   319 OstTrace1( TRACE_NORMAL, DUP11_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret );
       
   320             // it is safe to ignore return value here
       
   321             iOperationlist->RemoveLastOperationFromList();
       
   322             }
       
   323         }
       
   324 
       
   325     return ret;
       
   326     }
       
   327 
       
   328 
       
   329 
       
   330 // ---------------------------------------------------------------------------
       
   331 // CMmPhoneBookStoreMessHandler::ReceiveMessageL
       
   332 // Called when an ISI message has been received.
       
   333 // ---------------------------------------------------------------------------
       
   334 //
       
   335 TInt CMmPhoneBookStoreMessHandler::ProcessUiccMsg(
       
   336     TInt aTraId,
       
   337     TInt aStatus,
       
   338     const TDesC8 &aFileData  ) // received data in UICC Server Message
       
   339     {
       
   340     TInt ret(KErrNone);
       
   341    
       
   342     TBool complete( EFalse );
       
   343     
       
   344     TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. transactId:%d", aTraId);
       
   345     OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg" );
       
   346     
       
   347 
       
   348     switch(aTraId)
       
   349         {
       
   350         case ETrIdPbInit:
       
   351             // Check for operation with transaction id
       
   352             CMmPhoneBookStoreOperationBase* operation;
       
   353             operation = iOperationlist->Find( aTraId );
       
   354             if( operation )
       
   355                 {
       
   356                 ret = operation->HandleUICCPbRespL(complete, aStatus, aFileData, aTraId);
       
   357                 }
       
   358 
       
   359             break;
       
   360         case ETrIdPbRead:
       
   361             break;
       
   362         case ETrIdPbUpdate:
       
   363             break;
       
   364         case ETrIdPbDelete:
       
   365             
       
   366             break;
       
   367         default:
       
   368             TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::\
       
   369                 ProcessUiccMsg. switch case -> default");
       
   370             OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg. switch case -> default" );
       
   371             break;
       
   372         }
       
   373     return(ret);
       
   374     }
       
   375 
       
   376 
       
   377 
       
   378 
       
   379 // ---------------------------------------------------------------------------
       
   380 // CMmPhoneBookStoreMessHandler::MessageRouter
       
   381 // Gets pointer to CMmMessageRouter object.
       
   382 // ---------------------------------------------------------------------------
       
   383 //
       
   384 CMmMessageRouter* CMmPhoneBookStoreMessHandler::MessageRouter()
       
   385     {
       
   386     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::MessageRouter");
       
   387 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_MESSAGEROUTER, "CMmPhoneBookStoreMessHandler::MessageRouter" );
       
   388 
       
   389     return iMessageRouter;
       
   390     }
       
   391 
       
   392 
       
   393 
       
   394 // ---------------------------------------------------------------------------
       
   395 // CMmPhoneBookStoreMessHandler::UiccMessHandler
       
   396 // Gets pointer to CMmMessageRouter object.
       
   397 // ---------------------------------------------------------------------------
       
   398 //
       
   399 CMmUiccMessHandler* CMmPhoneBookStoreMessHandler::UiccMessHandler()
       
   400     {
       
   401     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::UiccMessHandler");
       
   402 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_UICCMESSHANDLER, "CMmPhoneBookStoreMessHandler::UiccMessHandler" );
       
   403 
       
   404     return iMmUiccMessHandler;
       
   405     }
       
   406 
       
   407 
       
   408 // ---------------------------------------------------------------------------
       
   409 // CMmPhoneBookStoreMessHandler::PhoNetSender
       
   410 // Gets pointer to PhoNetSender object.
       
   411 // ---------------------------------------------------------------------------
       
   412 //
       
   413 CMmPhoNetSender* CMmPhoneBookStoreMessHandler::PhoNetSender()
       
   414     {
       
   415     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::PhoNetSender");
       
   416 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PHONETSENDER, "CMmPhoneBookStoreMessHandler::PhoNetSender" );
       
   417 
       
   418     return iPhoNetSender;
       
   419     }
       
   420 
       
   421 #ifdef INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
       
   422 // ---------------------------------------------------------------------------
       
   423 // CMmPhoneBookStoreMessHandler::Gas
       
   424 // Gets pointer to list of Group Alpha String
       
   425 // ---------------------------------------------------------------------------
       
   426 //
       
   427 CArrayPtrSeg<CMmPhonebookAlphaString>* CMmPhoneBookStoreMessHandler::Gas()
       
   428     {
       
   429     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::Gas");
       
   430 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GAS, "CMmPhoneBookStoreMessHandler::Gas" );
       
   431 
       
   432     return iGas;
       
   433     }
       
   434 
       
   435 // ---------------------------------------------------------------------------
       
   436 // CMmPhoneBookStoreMessHandler::SetGas
       
   437 // Sets pointer to list of Group Alpha String
       
   438 // ---------------------------------------------------------------------------
       
   439 //
       
   440 void CMmPhoneBookStoreMessHandler::SetGas(
       
   441     CArrayPtrSeg<CMmPhonebookAlphaString>* aGas )
       
   442     {
       
   443     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::SetGas");
       
   444 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_SETGAS, "CMmPhoneBookStoreMessHandler::SetGas" );
       
   445     iGas = aGas;
       
   446     }
       
   447 
       
   448 // ---------------------------------------------------------------------------
       
   449 // CMmPhoneBookStoreMessHandler::Aas
       
   450 // Gets pointer to list of Additional Alpha String
       
   451 // ---------------------------------------------------------------------------
       
   452 //
       
   453 CArrayPtrSeg<CMmPhonebookAlphaString>* CMmPhoneBookStoreMessHandler::Aas()
       
   454     {
       
   455     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::Aas");
       
   456 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_AAS, "CMmPhoneBookStoreMessHandler::Aas" );
       
   457 
       
   458     return iAas;
       
   459     }
       
   460 
       
   461 // ---------------------------------------------------------------------------
       
   462 // CMmPhoneBookStoreMessHandler::SetGas
       
   463 // Sets pointer to list of Additional Alpha String
       
   464 // ---------------------------------------------------------------------------
       
   465 //
       
   466 void CMmPhoneBookStoreMessHandler::SetAas(
       
   467     CArrayPtrSeg<CMmPhonebookAlphaString>* aAas )
       
   468     {
       
   469     TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::SetAas");
       
   470 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_SETAAS, "CMmPhoneBookStoreMessHandler::SetAas" );
       
   471     iAas = aAas;
       
   472     }
       
   473 #endif // INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
       
   474 
       
   475 // End of File