|
1 /* |
|
2 * Copyright (c) 2004 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: Concrete client login status handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CCNUICLIENTSTATUSHANDLER_H |
|
19 #define __CCNUICLIENTSTATUSHANDLER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include "CCnUiGroupChannel.h" |
|
24 #include "MCnUiClientStatusHandler.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Concrete client login status handler. |
|
30 * Implements MCnUiClientStatusHandler features |
|
31 * using shared data. |
|
32 * |
|
33 * @since 2.1 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CCnUiClientStatusHandler ) : public CBase, |
|
36 public MCnUiClientStatusHandler, |
|
37 public MCnUiGroupChannelListener |
|
38 { |
|
39 public: // Two-phased constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CCnUiClientStatusHandler* NewLC(); |
|
45 |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CCnUiClientStatusHandler(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * C++ constructor. |
|
56 */ |
|
57 CCnUiClientStatusHandler(); |
|
58 |
|
59 |
|
60 /** |
|
61 * Symbian OS constructor. |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 |
|
66 |
|
67 public: // New functions from MCnUiClientStatusHandler |
|
68 |
|
69 /** |
|
70 * From MCnUiClientStatusHandler. |
|
71 * See it for details. |
|
72 * |
|
73 * @since 2.1 |
|
74 */ |
|
75 TBool AnyClientLoggedIn(); |
|
76 |
|
77 |
|
78 /** |
|
79 * From MCnUiClientStatusHandler. |
|
80 * See it for details. |
|
81 * |
|
82 * @since 2.1 |
|
83 */ |
|
84 TBool ClientLoggedIn( TIMPSConnectionClient aClient ); |
|
85 |
|
86 |
|
87 /** |
|
88 * From MCnUiClientStatusHandler. |
|
89 * See it for details. |
|
90 * |
|
91 * @since 2.1 |
|
92 */ |
|
93 void SetNoClientsLoggedInL(); |
|
94 |
|
95 |
|
96 /** |
|
97 * From MCnUiClientStatusHandler. |
|
98 * See it for details. |
|
99 * |
|
100 * @since 2.1 |
|
101 */ |
|
102 void SetClientLoggedInL( TIMPSConnectionClient aClient ); |
|
103 |
|
104 |
|
105 /** |
|
106 * From MCnUiClientStatusHandler. |
|
107 * See it for details. |
|
108 * |
|
109 * @since 2.1 |
|
110 */ |
|
111 void SetClientLoggedOutL( TIMPSConnectionClient aClient ); |
|
112 |
|
113 |
|
114 /** |
|
115 * From MCnUiClientStatusHandler. |
|
116 * See it for details. |
|
117 * |
|
118 * @since 2.1 |
|
119 */ |
|
120 void NotifyClientLoginStatusChangesL( MCnUiClientStatusObserver* aObserver, |
|
121 TIMPSConnectionClient aClientToNotify ); |
|
122 |
|
123 /** |
|
124 * From MCnUiClientStatusHandler.. |
|
125 * See it for details. |
|
126 * |
|
127 * @since 2.1 |
|
128 */ |
|
129 void CancelClientStatusNotify(); |
|
130 |
|
131 |
|
132 |
|
133 public: // from MCnUiGroupChannelListener |
|
134 |
|
135 void HandleChannelMsg( TInt aGroupId, |
|
136 TGCChannelID aChannelId, |
|
137 TInt aRetMsg ); |
|
138 |
|
139 |
|
140 |
|
141 private: // data |
|
142 |
|
143 // Owns: status channel |
|
144 CCnUiGroupChannel* iLoginStastusChannel; |
|
145 |
|
146 ///<Observed client, owned |
|
147 TIMPSConnectionClient iObservedClient; |
|
148 |
|
149 ///<Client status observer, not owned |
|
150 MCnUiClientStatusObserver* iClntStatusObserver; |
|
151 }; |
|
152 |
|
153 #endif // __CCNUICLIENTSTATUSHANDLER_H |
|
154 |
|
155 // End of File |
|
156 |