|
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: Global notification UI implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CCNUIGLOBALNOTIFICATIONUIFACADE_H |
|
19 #define __CCNUIGLOBALNOTIFICATIONUIFACADE_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <E32Base.h> |
|
24 #include <barsc.h> |
|
25 #include "MCnUiGlobalNotificationUiFacade.h" |
|
26 |
|
27 |
|
28 |
|
29 /** |
|
30 * Global notification UI implementation. |
|
31 * |
|
32 * Implements the MCnUiGlobalNotificationUiFacade interface. |
|
33 * |
|
34 * NOTE!!! This class is used in AA plug-in environment |
|
35 * ===> no CONE facilities available |
|
36 * |
|
37 * @lib IMPSConnectionUi.lib |
|
38 * @since 2.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCnUiGlobalNotificationUiFacade ) : public CBase, |
|
41 public MCnUiGlobalNotificationUiFacade |
|
42 { |
|
43 public: //Symbian OS two phased constructor / destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CCnUiGlobalNotificationUiFacade* NewL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CCnUiGlobalNotificationUiFacade(); |
|
54 |
|
55 |
|
56 |
|
57 protected: // Constructors |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 CCnUiGlobalNotificationUiFacade(); |
|
63 |
|
64 |
|
65 /** |
|
66 * Symbian OS constructor. |
|
67 */ |
|
68 void ConstructL(); |
|
69 |
|
70 public: //from MCnUiGlobalNotificationUiFacade |
|
71 |
|
72 |
|
73 /** |
|
74 * @see MCnUiGlobalNotificationUiFacade |
|
75 * @since 2.1 |
|
76 */ |
|
77 void ShowLoginUserDataErrorL( const TDesC& aServerName ); |
|
78 |
|
79 |
|
80 /** |
|
81 * @see MCnUiGlobalNotificationUiFacade |
|
82 * @since 2.1 |
|
83 */ |
|
84 void ShowLoginDetailedErrorL( const TDesC& aServerName, |
|
85 const TDesC& aErrDetDescription ); |
|
86 |
|
87 /** |
|
88 * @see MCnUiGlobalNotificationUiFacade |
|
89 * @since 2.6 |
|
90 */ |
|
91 virtual void ShowLoginDetailedErrorL( const TDesC& aServerName, |
|
92 TInt aNoteTextResourceId ); |
|
93 |
|
94 /** |
|
95 * @see MCnUiGlobalNotificationUiFacade |
|
96 * @since 2.1 |
|
97 */ |
|
98 TBool CGQActiveConnectionScheduledCloseL( |
|
99 const TArray<TIMPSConnectionClient>& aClientsToShow ); |
|
100 |
|
101 |
|
102 /** |
|
103 * @see MCnUiGlobalNotificationUiFacade |
|
104 * @since 2.1 |
|
105 */ |
|
106 TBool CGQActiveConnectionSuppressForScheduledConnectionL( |
|
107 const TDesC& aServerName, |
|
108 const TArray<TIMPSConnectionClient>& aClientsToShow ); |
|
109 |
|
110 |
|
111 private: // Private helpers |
|
112 |
|
113 /** |
|
114 * Reads a specified resource into a heap descriptor, |
|
115 * allocating memory for it and pushing the descriptor |
|
116 * onto the cleanup stack. |
|
117 * @since 2.1 |
|
118 * @return |
|
119 */ |
|
120 HBufC* ReadResourceLC( TInt aNoteTextResourceId ); |
|
121 |
|
122 |
|
123 /** |
|
124 * Reads a specified resource into a heap descriptor, |
|
125 * allocating memory for it and pushing the descriptor |
|
126 * onto the cleanup stack. |
|
127 * @since 2.1 |
|
128 * @return |
|
129 */ |
|
130 HBufC* ReadResourceWithDynTextLC( TInt aNoteTextResourceId, |
|
131 const TDesC& aInsertText ); |
|
132 |
|
133 |
|
134 |
|
135 private: // data |
|
136 |
|
137 ///<File server session, owned |
|
138 RFs iFs; |
|
139 |
|
140 ///<Connection UI resource file, owned |
|
141 RResourceFile iResFile; |
|
142 |
|
143 }; |
|
144 |
|
145 #endif //__CCNUIGLOBALNOTIFICATIONUIFACADE_H |
|
146 |
|
147 |
|
148 // End of File |
|
149 |