|
1 /** |
|
2 * Copyright (c) 2005-2009 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 "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TESTCALINTERIMAPI_DCCREATEENTRIES_STEP_H__ |
|
21 #define __TESTCALINTERIMAPI_DCCREATEENTRIES_STEP_H__ |
|
22 #include <test/testexecutestepbase.h> |
|
23 |
|
24 #include <calinstanceview.h> |
|
25 #include <calprogresscallback.h> |
|
26 #include <calentry.h> |
|
27 |
|
28 class CTestCalInterimApiDCCreateEntries; |
|
29 |
|
30 class CTestCalInterimApiDCCallbackForAlarms : public CActive, public MCalProgressCallBack |
|
31 { |
|
32 public: |
|
33 static CTestCalInterimApiDCCallbackForAlarms* NewL(CTestCalInterimApiDCCreateEntries* aParent); |
|
34 ~CTestCalInterimApiDCCallbackForAlarms(); |
|
35 void Start(); |
|
36 |
|
37 // from MCalProgressCallBack |
|
38 void Progress(TInt aPercentageCompleted); |
|
39 void Completed(TInt Completed); |
|
40 TBool NotifyProgress(); |
|
41 private: |
|
42 CTestCalInterimApiDCCallbackForAlarms(CTestCalInterimApiDCCreateEntries* aParent); |
|
43 void Close(); |
|
44 |
|
45 // from CActive |
|
46 void DoCancel(); |
|
47 void RunL(); |
|
48 |
|
49 private: |
|
50 |
|
51 CTestCalInterimApiDCCreateEntries* iTestCalInterimApiSuiteStep; |
|
52 }; |
|
53 |
|
54 |
|
55 class CCalEntryView; |
|
56 class CCalSession; |
|
57 class CTestCalInterimApiDCCreateEntries: public CTestStep |
|
58 { |
|
59 public: |
|
60 CTestCalInterimApiDCCreateEntries(); |
|
61 ~CTestCalInterimApiDCCreateEntries(); |
|
62 virtual TVerdict doTestStepPreambleL(); |
|
63 virtual TVerdict doTestStepL(); |
|
64 virtual TVerdict doTestStepPostambleL(); |
|
65 private: |
|
66 void OpenSessionFileL(); |
|
67 static void CloseAndDeleteRPtrArrayEntries(TAny* aArray); |
|
68 static void CloseAndDeleteRPtrArrayAlarms(TAny* aArray); |
|
69 public: |
|
70 CCalEntryView *iEntryView; |
|
71 CCalSession* iSession; |
|
72 }; |
|
73 |
|
74 _LIT(KTestCalInterimApiDCCreateEntries,"TestCalInterimApiDCCreateEntries"); |
|
75 |
|
76 #endif //__TESTCALINTERIMAPI_DCCREATEENTRIES_STEP_H__ |