calendarui/controller/src/calenexitingstate.cpp
branchRCL_3
changeset 66 bd7edf625bdd
parent 65 12af337248b1
equal deleted inserted replaced
65:12af337248b1 66:bd7edf625bdd
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Calendar state machine
    14 * Description:   Calendar state machine
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 
    18 
    18 
    19 
    19 // includes
    20 // includes
    20 #include "calenexitingstate.h"
    21 #include "calenexitingstate.h"
    21 #include "calendarui_debug.h"           // Debug macros
    22 #include "calendarui_debug.h"           // Debug macros
    22 #include "calencontroller.h"
    23 #include "calencontroller.h"
    23 #include "calenstatemachine.h"
    24 #include "calenstatemachine.h"
    24 #include "calennotifier.h"
    25 #include "calennotifier.h"
    25 #include "OstTraceDefinitions.h"
       
    26 #ifdef OST_TRACE_COMPILER_IN_USE
       
    27 #include "calenexitingstateTraces.h"
       
    28 #endif
       
    29 
    26 
    30 // ----------------------------------------------------------------------------
    27 // ----------------------------------------------------------------------------
    31 // CCalenExitingState::NewLC
    28 // CCalenExitingState::NewLC
    32 // First stage construction
    29 // First stage construction
    33 // ----------------------------------------------------------------------------
    30 // ----------------------------------------------------------------------------
    34 CCalenExitingState* CCalenExitingState::NewLC( CCalenController& aController,
    31 CCalenExitingState* CCalenExitingState::NewLC( CCalenController& aController,
    35                                                        RHashSet<TCalenNotification>&  aOutstandingNotifications )
    32                                                        RHashSet<TCalenNotification>&  aOutstandingNotifications )
    36     {
    33     {
    37     OstTraceFunctionEntry0( CCALENEXITINGSTATE_NEWLC_ENTRY );
    34     TRACE_ENTRY_POINT;
    38 
    35 
    39     CCalenExitingState* self = new ( ELeave ) CCalenExitingState( aController,aOutstandingNotifications);
    36     CCalenExitingState* self = new ( ELeave ) CCalenExitingState( aController,aOutstandingNotifications);
    40     CleanupStack::PushL( self );
    37     CleanupStack::PushL( self );
    41     self->ConstructL();
    38     self->ConstructL();
    42 
    39 
    43     OstTraceFunctionExit0( CCALENEXITINGSTATE_NEWLC_EXIT );
    40     TRACE_EXIT_POINT;
    44     return self;
    41     return self;
    45     }
    42     }
    46 
    43 
    47 // ----------------------------------------------------------------------------
    44 // ----------------------------------------------------------------------------
    48 // CCalenExitingState::ConstructL
    45 // CCalenExitingState::ConstructL
    49 // Second stage construction
    46 // Second stage construction
    50 // ----------------------------------------------------------------------------
    47 // ----------------------------------------------------------------------------
    51 void CCalenExitingState::ConstructL()
    48 void CCalenExitingState::ConstructL()
    52     {
    49     {
    53     OstTraceFunctionEntry0( CCALENEXITINGSTATE_CONSTRUCTL_ENTRY );
    50     TRACE_ENTRY_POINT;
    54     
       
    55     BaseConstructL();
    51     BaseConstructL();
    56     
    52     
    57     OstTraceFunctionExit0( CCALENEXITINGSTATE_CONSTRUCTL_EXIT );
    53     TRACE_EXIT_POINT;
    58     }
    54     }
    59     
    55     
    60 // ----------------------------------------------------------------------------
    56 // ----------------------------------------------------------------------------
    61 // CCalenExitingState::CCalenExitingState
    57 // CCalenExitingState::CCalenExitingState
    62 // C++ Constructor
    58 // C++ Constructor
    63 // ----------------------------------------------------------------------------
    59 // ----------------------------------------------------------------------------
    64 CCalenExitingState::CCalenExitingState( CCalenController& aController,
    60 CCalenExitingState::CCalenExitingState( CCalenController& aController,
    65                                                     RHashSet<TCalenNotification>&  aOutstandingNotifications )
    61                                                     RHashSet<TCalenNotification>&  aOutstandingNotifications )
    66     : CCalenState( aController, aOutstandingNotifications )
    62     : CCalenState( aController, aOutstandingNotifications )
    67     {
    63     {
    68     OstTraceFunctionEntry0( CCALENEXITINGSTATE_CCALENEXITINGSTATE_ENTRY );
    64     TRACE_ENTRY_POINT;
    69     
    65     
    70     OstTraceFunctionExit0( CCALENEXITINGSTATE_CCALENEXITINGSTATE_EXIT );
    66     TRACE_EXIT_POINT;
    71     }
    67     }
    72     
    68     
    73 // ----------------------------------------------------------------------------
    69 // ----------------------------------------------------------------------------
    74 // CCalenExitingState::CCalenExitingState
    70 // CCalenExitingState::CCalenExitingState
    75 // Destructor
    71 // Destructor
    76 // ----------------------------------------------------------------------------    
    72 // ----------------------------------------------------------------------------    
    77 CCalenExitingState::~CCalenExitingState()
    73 CCalenExitingState::~CCalenExitingState()
    78     {
    74     {
    79     OstTraceFunctionEntry0( DUP1_CCALENEXITINGSTATE_CCALENEXITINGSTATE_ENTRY );
    75     TRACE_ENTRY_POINT;
    80     
    76     
    81     OstTraceFunctionExit0( DUP1_CCALENEXITINGSTATE_CCALENEXITINGSTATE_EXIT );
    77     TRACE_EXIT_POINT;
    82     }
    78     }
    83 
    79 
    84 // ----------------------------------------------------------------------------
    80 // ----------------------------------------------------------------------------
    85 // CCalenExitingState::HandleCommandL
    81 // CCalenExitingState::HandleCommandL
    86 // From CCalenState
    82 // From CCalenState
    87 // ----------------------------------------------------------------------------    
    83 // ----------------------------------------------------------------------------    
    88 TBool CCalenExitingState::HandleCommandL( const TCalenCommand& /*aCommand*/,
    84 TBool CCalenExitingState::HandleCommandL( const TCalenCommand& /*aCommand*/,
    89                                         CCalenStateMachine& /*aStateMachine*/  )
    85                                         CCalenStateMachine& /*aStateMachine*/  )
    90     {
    86     {
    91     OstTraceFunctionEntry0( CCALENEXITINGSTATE_HANDLECOMMANDL_ENTRY );
    87     TRACE_ENTRY_POINT;
    92     
    88     TRACE_EXIT_POINT;
    93     OstTraceFunctionExit0( CCALENEXITINGSTATE_HANDLECOMMANDL_EXIT );
       
    94     return EFalse;
    89     return EFalse;
    95     }
    90     }
    96 
    91 
    97 // ----------------------------------------------------------------------------
    92 // ----------------------------------------------------------------------------
    98 // CCalenExitingState::HandleNotificationL
    93 // CCalenExitingState::HandleNotificationL
    99 // From CCalenState
    94 // From CCalenState
   100 // ----------------------------------------------------------------------------        
    95 // ----------------------------------------------------------------------------        
   101 void CCalenExitingState::HandleNotificationL(const TCalenNotification& /*aNotification*/,
    96 void CCalenExitingState::HandleNotificationL(const TCalenNotification& /*aNotification*/,
   102                                               CCalenStateMachine& /*aStateMachine*/ )
    97                                               CCalenStateMachine& /*aStateMachine*/ )
   103     {
    98     {
   104     OstTraceFunctionEntry0( CCALENEXITINGSTATE_HANDLENOTIFICATIONL_ENTRY );
    99     TRACE_ENTRY_POINT;
   105     
   100     TRACE_EXIT_POINT;
   106     OstTraceFunctionExit0( CCALENEXITINGSTATE_HANDLENOTIFICATIONL_EXIT );
       
   107     }  
   101     }  
   108 
   102 
   109 
   103 
   110  // end of file
   104  // end of file