|
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: Describes one tracked invitation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCAINVITETRACKER_H |
|
20 #define CCAINVITETRACKER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class MCAInviteTrackerCallback; |
|
27 class MCAInvitation; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Describes one tracked invitation. |
|
33 * Wrapper to CCAInvitation class to provide expiry-handling features |
|
34 * |
|
35 * @lib CAEngine.lib |
|
36 * @since 1.2 |
|
37 */ |
|
38 class CCAInviteTracker : public CTimer |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aCallback is callback interface to invite expire handling |
|
45 * @param aInvitation Invitation that is wrapped |
|
46 */ |
|
47 static CCAInviteTracker* NewL( MCAInviteTrackerCallback* aCallback, |
|
48 MCAInvitation* aInvitation ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CCAInviteTracker(); |
|
54 |
|
55 public: // New methods |
|
56 |
|
57 /** |
|
58 * Invitation that this class capsulates |
|
59 * @return Invitation data |
|
60 */ |
|
61 MCAInvitation* Invitation() const; |
|
62 |
|
63 private: // Methods from base classes |
|
64 |
|
65 /** |
|
66 * Called when active object completes |
|
67 */ |
|
68 void RunL(); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * By default Symbian OS constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 * @see CCAInviteTracker::NewL |
|
80 */ |
|
81 CCAInviteTracker( MCAInviteTrackerCallback* aCallback, |
|
82 MCAInvitation* aInvitation ); |
|
83 |
|
84 private: // Data |
|
85 // Doesn't own. Invitation data |
|
86 MCAInvitation* iInvitation; |
|
87 // Doesn't own. Callback interface to invite expire-handling |
|
88 MCAInviteTrackerCallback* iCallback; |
|
89 // Timeout value (in seconds) |
|
90 TInt iTimeout; |
|
91 }; |
|
92 |
|
93 #endif // CCAINVITETRACKER_H |
|
94 |
|
95 // End of File |