diff -r 989d2f495d90 -r fc9cf246af83 serviceproviders/sapi_calendar/tsrc/testing/tcalendarservice/tcal_getlist/inc/calgetlisttestcases.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/serviceproviders/sapi_calendar/tsrc/testing/tcalendarservice/tcal_getlist/inc/calgetlisttestcases.h Thu Aug 27 07:43:07 2009 +0300 @@ -0,0 +1,107 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ?Description +* +*/ + + + +#ifndef CALGETLISTTESTCASES_H +#define CALGETLISTTESTCASES_H + +#include + +#include "calendarheader.h" +//#include "teststartconsolealarmserver.h" + +class CCalendarService; +class CEntryAttributes; + +class CCalGetlistTestCases: public CActive, public MCalCallbackBase + { + + enum TTestCaseType + { + KGetlistGuidFilterAsync, + KGetlistLuidFilterAsync, + KGetlistTmRgFilterAsync, + KGetlistTextFilterAsync, + KGetlistTypeFilterAsync, + KGetlistInvalidGuidFilterAsync, + KGetlistInvalidLuidFilterAsync, + }; + public: + + static CCalGetlistTestCases* NewL( TInt& aResult, TBool aEntryArray = ETrue); + + ~CCalGetlistTestCases(); + + void TestGetlistGuidFilterAsyncL(); + + void TestGetlistLuidFilterAsyncL(); + + void TestGetlistTmRgFilterAsyncL(); + + void TestGetlistTextFilterAsyncL(); + + void TestGetlistTypeFilterAsyncL(); + + void TestGetlistInvalidGuidFilterAsyncL(); + + void TestGetlistInvalidLuidFilterAsyncL(); + + + TInt Result(); + + void addSomeEntries( const TDesC& aName ); + + private: + + void ConstructL(); + + CCalGetlistTestCases(TInt& aResult, TBool aEntryArray = ETrue); + + + //for the sake of ActiveObject + virtual void DoCancel(); + + virtual void RunL(); + + + void Start(); + + void NotifyResultL(TInt aErrCode, TAny* aResult); + + private: + + CActiveSchedulerWait* iWaitSchedular; + + CCalendarService* iCalendarService; + + TInt& iResult; + + TBool iEntryArray; + + TTestCaseType iTestCaseType; + + + // RPointerArray entryList; + // RPointerArray instanceList; + RPointerArray iArruids; + }; + + + +#endif // CALGETLISTTESTCASES_H +