commonappservices/alarmservertest/TestMultipleAlarmsSuite/inc/TestAssociatedDataStep.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 CTestAssociatedDataStep class, which is used for testing the 
       
    15 // integrity of the rich data associated with an alarm.
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __TEST_ASSOCIATED_DATA_STEP_H__
       
    20 #define __TEST_ASSOCIATED_DATA_STEP_H__
       
    21 
       
    22 // User Includes
       
    23 #include "TestBaseStep.h"
       
    24 
       
    25 // System Includes
       
    26 #include <calcontent.h>
       
    27 
       
    28 /*@{*/
       
    29 // Literal constant defined for identifying step name
       
    30 _LIT(KTestAssociatedDataStep, "TestAssociatedDataStep");
       
    31 
       
    32 /*@}*/
       
    33 
       
    34 /**
       
    35 Test the integrity of the rich data associated with an alarm
       
    36 @internalTechnology
       
    37 @test
       
    38 */
       
    39 class CTestAssociatedDataStep : public CTestBaseStep
       
    40 	{
       
    41 public:
       
    42 	CTestAssociatedDataStep(CTestMultipleAlarmsServer& aTestServer);
       
    43 	~CTestAssociatedDataStep();
       
    44 
       
    45 	// TEF pure virtual
       
    46 	TVerdict 				doTestStepL();
       
    47 	
       
    48 	// TEF virtual
       
    49 	TVerdict 				doTestStepPreambleL();
       
    50 	
       
    51 	TBool 					GetEntryIdL(const TPtrC& aAlarmMessage, CCalEntryId*& aEntryId);
       
    52 	TBool 					GetCalEntryL(CCalEntryId* aEntryId, CCalEntry*& aCalEntry, CCalSession* aCalSession);
       
    53 	CCalContent* 			GetAlarmContentL(const CCalEntry* aCalEntry);
       
    54 
       
    55 private:
       
    56 	void 					TestAssociatedDataL(const TPtrC& aAlarmMessage, const TPtrC& aTypeOfAD);
       
    57 	TBool 					FindCalEntryL(const RPointerArray<CCalEntry> aEntryList, const TCalTime& aRecurrenceId, CCalEntry*& aFoundEntry);
       
    58 	void 					DoTestAssociatedDataL(CCalContent* aAlarmContent , const TPtrC& aTypeOfAD);
       
    59 	void 					CheckAlarmContentValuesL(CCalContent*& aAlarmContent, CCalContent::TDisposition aExpectedDisposition, const TDesC& aExpectedMimeType, const TDesC8& aExpectedContent);
       
    60 	void 					TestStoreFileNameL(CCalEntryId* aEntryId);
       
    61 	void 					TestAlarmSoundNameL(const TPtrC& aAlarmMessage);
       
    62 
       
    63 private:
       
    64 	CActiveScheduler*		iActiveScheduler;
       
    65 	};
       
    66 
       
    67 #endif		// __TEST_ASSOCIATED_DATA_STEP_H__