commonappservices/alarmservertest/TestMultipleAlarmsSuite/inc/AlarmActionPerformer.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Contains declaration of CAlarmActionPerformer class, which is used to
       
    15 // perform actions like snooze, clear etc. on an alarm
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __ALARM_ACTION_PERFORMER_H__
       
    20 #define __ALARM_ACTION_PERFORMER_H__
       
    21 
       
    22 // User Includes
       
    23 #include "DummyAlarmControl.h"
       
    24 #include "AlarmControlsManager.h"
       
    25 
       
    26 /**
       
    27 Class used to perform actions like snooze, clear etc. on an alarm
       
    28 @internalTechnology
       
    29 @test
       
    30 */
       
    31 class CAlarmActionPerformer : public CActive
       
    32 	{
       
    33 public:	
       
    34 	CAlarmActionPerformer();
       
    35 	
       
    36 	// From CActive
       
    37 	void					RunL();
       
    38 	void 					DoCancel();
       
    39 
       
    40 	TRequestStatus* 		Status();
       
    41 	void 					SetCommonParams(CDummyAlarmControl* aAlarmControl, TRequestStatus* aStatus, RThread& aTestStepThreadDuplicateHandle, const TestMultipleAlarms::TAlarmAction& aAlarmAction);
       
    42 	void 					SetMinsToSnooze(const TInt& aMinsToSnooze);
       
    43 	
       
    44 private:
       
    45 	TRequestStatus* 					iExternalRequest;
       
    46 	CDummyAlarmControl*					iAlarmControl;
       
    47 	TInt 								iMinsToSnooze;
       
    48 	RThread								iTestStepThreadDuplicateHandle;
       
    49 	TestMultipleAlarms::TAlarmAction	iAlarmAction;
       
    50 	};
       
    51 
       
    52 #endif		// __ALARM_ACTION_PERFORMER_H__
       
    53 
       
    54