equal
deleted
inserted
replaced
|
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 CProgressCallBack class, which is needed to be |
|
15 // passed for asynchronous operations on the CalInterimAPI |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __PROGRESS_CALL_BACK_H__ |
|
20 #define __PROGRESS_CALL_BACK_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "TestMultipleAlarmsServer.h" |
|
24 |
|
25 // System Includes |
|
26 #include <calprogresscallback.h> |
|
27 |
|
28 /** |
|
29 Class which implements the MCalProgressCallBack mixin which has |
|
30 to be passed when making asynchronous calls on CalInterimAPI |
|
31 @internalTechnology |
|
32 @test |
|
33 */ |
|
34 class CProgressCallBack : public CActive, public MCalProgressCallBack |
|
35 { |
|
36 public: |
|
37 CProgressCallBack(TRequestStatus& aStatus); |
|
38 |
|
39 // From MCalProgressCallBack |
|
40 void Progress(TInt aPercentageCompleted); |
|
41 void Completed(TInt aError); |
|
42 TBool NotifyProgress(); |
|
43 |
|
44 // From CActive |
|
45 void RunL(); |
|
46 void DoCancel(); |
|
47 private: |
|
48 TRequestStatus& iRequestStatus; |
|
49 }; |
|
50 |
|
51 #endif // __PROGRESS_CALL_BACK_H__ |
|
52 |
|
53 |