equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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 * Simple Timer Operation. Completes observer when time expires |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __SMTPTIMEROP_H__ |
|
20 #define __SMTPTIMEROP_H__ |
|
21 |
|
22 #include <msvapi.h> |
|
23 |
|
24 class CMsvEmailConnectionProgressProvider; |
|
25 class CMtmStore; |
|
26 |
|
27 |
|
28 /** |
|
29 * Simple Timer Operation. Completes observer when time expires. |
|
30 */ |
|
31 class CSmtpTimerOp : public CMsvOperation |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * |
|
36 */ |
|
37 CSmtpTimerOp( |
|
38 CMsvSession& aMsvSession, |
|
39 TInt aPriority, |
|
40 TRequestStatus& aObserverRequestStatus ); |
|
41 |
|
42 /** |
|
43 * |
|
44 */ |
|
45 virtual ~CSmtpTimerOp(); |
|
46 |
|
47 /** |
|
48 * |
|
49 */ |
|
50 void ConstructL(); |
|
51 |
|
52 /** |
|
53 * |
|
54 */ |
|
55 virtual const TDesC8& ProgressL(); |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 void At(const TTime& aTime); |
|
61 |
|
62 /** |
|
63 * |
|
64 */ |
|
65 void After(TTimeIntervalMicroSeconds32 aInterval); |
|
66 |
|
67 protected: |
|
68 |
|
69 /** |
|
70 * From CActive |
|
71 */ |
|
72 virtual void DoCancel(); |
|
73 |
|
74 /** |
|
75 * From CActive |
|
76 */ |
|
77 virtual void RunL(); |
|
78 |
|
79 protected: // Data |
|
80 RTimer iTimer; |
|
81 TBuf8<1> iProgress; |
|
82 }; |
|
83 |
|
84 |
|
85 |
|
86 #endif |