|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CALGETLISTTESTCASES_H |
|
21 #define CALGETLISTTESTCASES_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "calendarheader.h" |
|
26 //#include "teststartconsolealarmserver.h" |
|
27 |
|
28 class CCalendarService; |
|
29 class CEntryAttributes; |
|
30 |
|
31 class CCalGetlistTestCases: public CActive, public MCalCallbackBase |
|
32 { |
|
33 |
|
34 enum TTestCaseType |
|
35 { |
|
36 KGetlistGuidFilterAsync, |
|
37 KGetlistLuidFilterAsync, |
|
38 KGetlistTmRgFilterAsync, |
|
39 KGetlistTextFilterAsync, |
|
40 KGetlistTypeFilterAsync, |
|
41 KGetlistInvalidGuidFilterAsync, |
|
42 KGetlistInvalidLuidFilterAsync, |
|
43 }; |
|
44 public: |
|
45 |
|
46 static CCalGetlistTestCases* NewL( TInt& aResult, TBool aEntryArray = ETrue); |
|
47 |
|
48 ~CCalGetlistTestCases(); |
|
49 |
|
50 void TestGetlistGuidFilterAsyncL(); |
|
51 |
|
52 void TestGetlistLuidFilterAsyncL(); |
|
53 |
|
54 void TestGetlistTmRgFilterAsyncL(); |
|
55 |
|
56 void TestGetlistTextFilterAsyncL(); |
|
57 |
|
58 void TestGetlistTypeFilterAsyncL(); |
|
59 |
|
60 void TestGetlistInvalidGuidFilterAsyncL(); |
|
61 |
|
62 void TestGetlistInvalidLuidFilterAsyncL(); |
|
63 |
|
64 |
|
65 TInt Result(); |
|
66 |
|
67 void addSomeEntries( const TDesC& aName ); |
|
68 |
|
69 private: |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 CCalGetlistTestCases(TInt& aResult, TBool aEntryArray = ETrue); |
|
74 |
|
75 |
|
76 //for the sake of ActiveObject |
|
77 virtual void DoCancel(); |
|
78 |
|
79 virtual void RunL(); |
|
80 |
|
81 |
|
82 void Start(); |
|
83 |
|
84 void NotifyResultL(TInt aErrCode, TAny* aResult); |
|
85 |
|
86 private: |
|
87 |
|
88 CActiveSchedulerWait* iWaitSchedular; |
|
89 |
|
90 CCalendarService* iCalendarService; |
|
91 |
|
92 TInt& iResult; |
|
93 |
|
94 TBool iEntryArray; |
|
95 |
|
96 TTestCaseType iTestCaseType; |
|
97 |
|
98 |
|
99 // RPointerArray<CCalEntry> entryList; |
|
100 // RPointerArray<CCalInstance> instanceList; |
|
101 RPointerArray<TUIDSet> iArruids; |
|
102 }; |
|
103 |
|
104 |
|
105 |
|
106 #endif // CALGETLISTTESTCASES_H |
|
107 |