commonappservices/alarmservertest/TestMultipleAlarmsSuite/inc/TestMultipleAlarmsServer.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 CTestMultipleAlarmsServer class, which represents
       
    15 // the TEF test server
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __TEST_MULTIPLE_ALARMS_SERVER_H__
       
    20 #define __TEST_MULTIPLE_ALARMS_SERVER_H__
       
    21 
       
    22 // User Includes
       
    23 
       
    24 // System Includes
       
    25 #include <test/testexecuteserverbase.h>
       
    26 #include <test/testexecutestepbase.h>
       
    27 #include <calsession.h>
       
    28 #include <calentryview.h>
       
    29 #include <uikon/eikalsrv.h>
       
    30 #include <asshddefs.h>
       
    31 
       
    32 /*@{*/
       
    33 // Literal constant defined for calendar file
       
    34 _LIT(KTestCalFile, "c:testcal.vcs");
       
    35 /*@}*/
       
    36 
       
    37 class CAlarmControlsManager;
       
    38 
       
    39 /**
       
    40 The test server.
       
    41 @internalTechnology
       
    42 @test
       
    43 */
       
    44 class CTestMultipleAlarmsServer : public CTestServer
       
    45 	{
       
    46 public:
       
    47 	// Construction
       
    48 	static	CTestMultipleAlarmsServer*	NewL();
       
    49 
       
    50 	// Destruction
       
    51 	~CTestMultipleAlarmsServer();
       
    52 
       
    53 	// Base class pure virtual
       
    54 	virtual	CTestStep* 					CreateTestStep(const TDesC& aStepName);
       
    55 	
       
    56 	// Other functions used by the test steps
       
    57 	RThread& 							AltSrvThread();
       
    58 	CAlarmControlsManager*& 			AlarmControlsManager();
       
    59 	CEikServAlarmAlertServer*&			AlertServer();
       
    60 	TInt& 								CurrentMaxAlarms();
       
    61 	TInt 								CurrentMaxAlarms() const;
       
    62 	TInt& 								NoOfCurrentlyNotifyingAlarms();
       
    63 	TAlarmId& 							CurrentlyPlayingAlarmId();
       
    64 	TBool 								LogSessionShared();
       
    65 	
       
    66 private:
       
    67 	void 								ConstructL();
       
    68 	
       
    69 private:
       
    70 	CAlarmControlsManager* 				iAlmCtrlsMgr;
       
    71 	CEikServAlarmAlertServer*			iAlertServer;
       
    72 	TInt 								iCurrentMaxAlarms;	
       
    73 	TInt 								iNoOfCurrentlyNotifyingAlarms;
       
    74 	TAlarmId 							iCurrentlyPlayingAlarmId;
       
    75 	RThread 							iAltSrvThread;
       
    76 	TBool 								iLogSessionShared;
       
    77 };
       
    78 
       
    79 #endif		// __TEST_MULTIPLE_ALARMS_SERVER_H__
       
    80