|
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: Declaration of Generic Connection Dialogs Notifier |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CONNECTIONDIALOGSNOTIFBASE_H__ |
|
20 #define __CONNECTIONDIALOGSNOTIFBASE_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #if !defined(__EIKNOTAPI_H__) |
|
25 #include <eiknotapi.h> |
|
26 #endif |
|
27 |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Plugin base class |
|
35 */ |
|
36 NONSHARABLE_CLASS( CConnectionDialogsNotifBase ) : public CBase, public MEikSrvNotifierBase2 |
|
37 |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * ~CConnectionDialogsNotifBase() destructor |
|
43 * @param - |
|
44 * return - |
|
45 */ |
|
46 virtual ~CConnectionDialogsNotifBase(); |
|
47 |
|
48 // From MEikSrvNotifierBase |
|
49 |
|
50 /** |
|
51 * Get Notifier information |
|
52 * @param - |
|
53 * return TNotifierInfo |
|
54 */ |
|
55 TNotifierInfo Info() const; |
|
56 |
|
57 /** |
|
58 * Start the Notifier |
|
59 * @param aBuffer Not used |
|
60 * return TPtrC8 Always NULL |
|
61 */ |
|
62 TPtrC8 StartL( const TDesC8& aBuffer ); |
|
63 |
|
64 /** |
|
65 * Cancel() the notifier |
|
66 * @param - |
|
67 * return - |
|
68 */ |
|
69 void Cancel(); |
|
70 |
|
71 /** |
|
72 * Release the notifier |
|
73 * @param - |
|
74 * return - |
|
75 */ |
|
76 void Release(); |
|
77 |
|
78 /** |
|
79 * Update Notifier |
|
80 * @param aBuffer Not used |
|
81 * return TPtrC8 Always NULL |
|
82 */ |
|
83 TPtrC8 UpdateL( const TDesC8& aBuffer ); |
|
84 |
|
85 /** |
|
86 * CompleteL the notifier is complete |
|
87 * @param aStatus status |
|
88 * return - |
|
89 */ |
|
90 virtual void CompleteL( TInt aStatus ) = 0; |
|
91 |
|
92 inline void SetCancelledFlag( TBool aCancelled ); |
|
93 |
|
94 protected: |
|
95 |
|
96 /** |
|
97 * CConnectionDialogsNotifBase() constructor |
|
98 * @param - |
|
99 * return - |
|
100 */ |
|
101 CConnectionDialogsNotifBase(); |
|
102 |
|
103 /** |
|
104 * CConnectionDialogsNotifBase() second level constructor |
|
105 * @param - |
|
106 * return - |
|
107 */ |
|
108 void ConstructL( const TDesC& aResourceFileName, |
|
109 const TBool aResourceFileResponsible ); |
|
110 |
|
111 private: |
|
112 |
|
113 /** |
|
114 * CheckBusyL() check busy function |
|
115 * @param - |
|
116 * return - |
|
117 */ |
|
118 void CheckBusyL(); |
|
119 |
|
120 protected: |
|
121 TNotifierInfo iInfo; // Notifier info |
|
122 |
|
123 RMessagePtr2 iMessage; // Message |
|
124 TInt iReplySlot; // Reply slot |
|
125 |
|
126 TBool iCancelled; // ETrue if dialog cancelled |
|
127 |
|
128 private: |
|
129 TInt iResource; // Resource |
|
130 }; |
|
131 |
|
132 #include "ConnectionDialogsNotifBase.inl" |
|
133 |
|
134 #endif |
|
135 |
|
136 // End of File |