photosgallery/slideshow/engine/tsrc/t_cshwtimercontrol/t_cshwtimercontrol.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 0 4e91876724a2
child 15 191387a8b767
equal deleted inserted replaced
12:ce1c7ad1f18b 13:bcb43dc84c44
    31 
    31 
    32 // CONSTRUCTION
    32 // CONSTRUCTION
    33 T_CShwTimerControl* T_CShwTimerControl::NewL()
    33 T_CShwTimerControl* T_CShwTimerControl::NewL()
    34     {
    34     {
    35     T_CShwTimerControl* self = T_CShwTimerControl::NewLC();
    35     T_CShwTimerControl* self = T_CShwTimerControl::NewLC();
    36     CleanupStack::Pop();
    36     CleanupStack::Pop( self );
    37 
       
    38     return self;
    37     return self;
    39     }
    38     }
    40 
    39 
    41 T_CShwTimerControl* T_CShwTimerControl::NewLC()
    40 T_CShwTimerControl* T_CShwTimerControl::NewLC()
    42     {
    41     {
    43     T_CShwTimerControl* self = new( ELeave ) T_CShwTimerControl;
    42     T_CShwTimerControl* self = new( ELeave ) T_CShwTimerControl;
    44     CleanupStack::PushL( self );
    43     CleanupStack::PushL( self );
    45 
       
    46     self->ConstructL();
    44     self->ConstructL();
    47 
       
    48     return self;
    45     return self;
    49     }
    46     }
    50 
    47 
    51 // Destructor (virtual by CBase)
    48 // Destructor (virtual by CBase)
    52 T_CShwTimerControl::~T_CShwTimerControl()
    49 T_CShwTimerControl::~T_CShwTimerControl()
    70 
    67 
    71 void T_CShwTimerControl::SendEventL( MShwEvent* aEvent )
    68 void T_CShwTimerControl::SendEventL( MShwEvent* aEvent )
    72 	{
    69 	{
    73 	// need to clone the event since the caller goes out of scope
    70 	// need to clone the event since the caller goes out of scope
    74 	iEvent = aEvent->CloneLC();
    71 	iEvent = aEvent->CloneLC();
    75 	CleanupStack::Pop();
    72 	CleanupStack::Pop( iEvent );
    76 	
    73 	
    77 	// stop the scheduler loop if its started
    74 	// stop the scheduler loop if its started
    78 	if( iWait.IsStarted() )
    75 	if( iWait.IsStarted() )
    79 		{
    76 		{
    80 		iWait.AsyncStop();
    77 		iWait.AsyncStop();