equal
deleted
inserted
replaced
|
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 "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 * Active object for timing "Connect" query for Remote mailbox. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MCECONNECTMAILBOXTIMER_H |
|
22 #define MCECONNECTMAILBOXTIMER_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CMceUi; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Active object to wait three seconds when remote mailbox is opened before |
|
33 * asking from the user to connect mailbox. |
|
34 */ |
|
35 class CMceConnectMailboxTimer : public CActive |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * 2-phase constructor. |
|
40 */ |
|
41 static CMceConnectMailboxTimer* NewL( |
|
42 CMceUi& aMceUi ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CMceConnectMailboxTimer(); |
|
48 |
|
49 /** |
|
50 * Start timer |
|
51 * @param aAccountId: id of the mailbox to be opened |
|
52 */ |
|
53 void SetTimer( TMsvId aAccountId ); |
|
54 |
|
55 private: |
|
56 /** |
|
57 * From CActive |
|
58 */ |
|
59 virtual void DoCancel(); |
|
60 |
|
61 /** |
|
62 * From CActive |
|
63 * Calls MceUi's GoOnlineL function. |
|
64 */ |
|
65 virtual void RunL(); |
|
66 |
|
67 /** |
|
68 * C++ constructor. |
|
69 */ |
|
70 CMceConnectMailboxTimer( CMceUi& aMceUi ); |
|
71 |
|
72 /** |
|
73 * Symbian OS constructor. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 |
|
78 |
|
79 private: |
|
80 RTimer iTimer; |
|
81 CMceUi& iMceUi; |
|
82 TMsvId iAccountId; |
|
83 }; |
|
84 |
|
85 |
|
86 |
|
87 #endif // MCECONNECTMAILBOXTIMER_H |
|
88 |
|
89 // End of File |