cellular/PsetNotesUi/Src/PsuiNoteController.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "psuinotecontroller.h" 
    20 #include "PsuiNoteController.h"
    21 #include "psuiinternalconstants.h" 
    21 #include "PsuiInternalConstants.h"
    22 
    22 
    23 // ================= MEMBER FUNCTIONS =======================
    23 // ================= MEMBER FUNCTIONS =======================
    24 
    24 
    25 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    26 // CPsuiNoteController::CPsuiNoteController
    26 // CPsuiNoteController::CPsuiNoteController
    72 // CPsuiNoteController::ShowNoteL
    72 // CPsuiNoteController::ShowNoteL
    73 // ---------------------------------------------------------
    73 // ---------------------------------------------------------
    74 //
    74 //
    75 void CPsuiNoteController::ShowNoteL( TPsuiNoteTypes aType, TInt aResourceID )
    75 void CPsuiNoteController::ShowNoteL( TPsuiNoteTypes aType, TInt aResourceID )
    76     {
    76     {
    77       iNote->ShowNoteL( aType, aResourceID );
    77 	  iNote->ShowNoteL( aType, aResourceID );
    78     }       
    78     }       
    79 
    79 
    80 // ---------------------------------------------------------
    80 // ---------------------------------------------------------
    81 // CPsuiNoteController::ShowBscListL
    81 // CPsuiNoteController::ShowBscListL
    82 // ---------------------------------------------------------
    82 // ---------------------------------------------------------
    83 //
    83 //
    84 void CPsuiNoteController::ShowBscListL( TInt aResourceHeading, TUint8 aBsc[KPSUIMaxBscNumber] )
    84 void CPsuiNoteController::ShowBscListL( TInt aResourceHeading, TUint8 aBsc[KPSUIMaxBscNumber] )
    85     {
    85     {
    86       iNote->ShowBscListL( aResourceHeading, aBsc );
    86 	  iNote->ShowBscListL( aResourceHeading, aBsc );
    87     }
    87     }
    88 
    88 
    89 // ---------------------------------------------------------
    89 // ---------------------------------------------------------
    90 // CPsuiNoteController::SetErrorNoteResourceID
    90 // CPsuiNoteController::SetErrorNoteResourceID
    91 // ---------------------------------------------------------
    91 // ---------------------------------------------------------
    92 //
    92 //
    93 TInt CPsuiNoteController::SetErrorNoteResourceID ( const TInt aErrorCode )
    93 TInt CPsuiNoteController::SetErrorNoteResourceID ( const TInt aErrorCode )
    94     {
    94     {
    95       return iNote->SetErrorNoteResourceID( aErrorCode );
    95 	  return iNote->SetErrorNoteResourceID( aErrorCode );
    96     }
    96     }
    97 
    97 
    98 // ---------------------------------------------------------
    98 // ---------------------------------------------------------
    99 // CPsuiNoteController::RemoveNotesL
    99 // CPsuiNoteController::RemoveNotesL
   100 // ---------------------------------------------------------
   100 // ---------------------------------------------------------
   101 //
   101 //
   102 void CPsuiNoteController::RemoveNotesL()
   102 void CPsuiNoteController::RemoveNotesL()
   103     {
   103     {
   104       delete iNote;
   104 	  delete iNote;
   105       iNote = NULL;
   105 	  iNote = NULL;
   106       iNote = CPsuiNoteMaster::NewL();
   106 	  iNote = CPsuiNoteMaster::NewL();
   107     }
   107     }
   108 
   108 
   109 // ---------------------------------------------------------
   109 // ---------------------------------------------------------
   110 // CPsuiNoteController::KillStaticNoteL
   110 // CPsuiNoteController::KillStaticNoteL
   111 // ---------------------------------------------------------
   111 // ---------------------------------------------------------
   112 //
   112 //
   113 void CPsuiNoteController::KillStaticNoteL()
   113 void CPsuiNoteController::KillStaticNoteL()
   114     {
   114     {
   115       iNote->KillStaticNoteL();
   115 	  iNote->KillStaticNoteL();
   116     }
   116     }
   117 
   117 
   118 // ---------------------------------------------------------
   118 // ---------------------------------------------------------
   119 // CPsuiNoteController::SetEngineContacts
   119 // CPsuiNoteController::SetEngineContacts
   120 // ---------------------------------------------------------
   120 // ---------------------------------------------------------
   122 void CPsuiNoteController::SetEngineContacts( MPsetCallWaiting* aWaitingEngine,
   122 void CPsuiNoteController::SetEngineContacts( MPsetCallWaiting* aWaitingEngine,
   123     MPsetCallBarring* aBarringEngine, MPsetCallDiverting* aDivertEngine,
   123     MPsetCallBarring* aBarringEngine, MPsetCallDiverting* aDivertEngine,
   124     MPsetCli* aCliEngine )
   124     MPsetCli* aCliEngine )
   125     {
   125     {
   126     iNote->SetEngineContacts( aWaitingEngine, aBarringEngine,
   126     iNote->SetEngineContacts( aWaitingEngine, aBarringEngine,
   127         aDivertEngine, aCliEngine );    
   127         aDivertEngine, aCliEngine );	
   128     }
   128     }
   129 
   129 
   130 // ---------------------------------------------------------
   130 // ---------------------------------------------------------
   131 // CPsuiNoteController::ShowBscCFListL
   131 // CPsuiNoteController::ShowBscCFListL
   132 // ---------------------------------------------------------
   132 // ---------------------------------------------------------
   133 //
   133 //
   134 TCFType CPsuiNoteController::ShowBscCFListL( TInt aResourceHeading, 
   134 TCFType CPsuiNoteController::ShowBscCFListL( TInt aResourceHeading, 
   135     CMobilePhoneCFList& aList, TCFType aCFType, TInt& aIndex )
   135     CMobilePhoneCFList& aList, TCFType aCFType, TInt& aIndex )
   136     {
   136     {
   137     return iNote->ShowBscCFListL( aResourceHeading, aList,
   137     return iNote->ShowBscCFListL( aResourceHeading, aList,
   138         aCFType, aIndex );  
   138         aCFType, aIndex );	
   139     }
   139     }
   140 
   140 
   141 // ---------------------------------------------------------
   141 // ---------------------------------------------------------
   142 // CPsuiNoteController::ShowCfInfoL
   142 // CPsuiNoteController::ShowCfInfoL
   143 // ---------------------------------------------------------
   143 // ---------------------------------------------------------
   144 //
   144 //
   145 void CPsuiNoteController::ShowCfInfoL( TCFType& aCFType,
   145 void CPsuiNoteController::ShowCfInfoL( TCFType& aCFType,
   146     const RMobilePhone::TMobilePhoneCFInfoEntryV1& aSetting )
   146     const RMobilePhone::TMobilePhoneCFInfoEntryV1& aSetting )
   147     {
   147     {
   148     iNote->ShowCfInfoL( aCFType, aSetting );    
   148     iNote->ShowCfInfoL( aCFType, aSetting );	
   149     }
   149     }
   150 
   150 
   151 // End of File
   151 // End of File