|
1 /* |
|
2 * Copyright (c) 2008-2009 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 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef REFPPNOTIFIER_H |
|
24 #define REFPPNOTIFIER_H |
|
25 |
|
26 #include <techview/eikdialg.h> |
|
27 #include <eiknotapi.h> |
|
28 #include "refppdialog.h" |
|
29 |
|
30 /** |
|
31 The CMsmmRefPolicyPluginNotifier class |
|
32 This is a subclass derived from MEikSrvNotifierBase2, it is used as a ECOM |
|
33 plug-in of notify service to provide the function of showing a dialog when |
|
34 error occured in MS mount manager. |
|
35 */ |
|
36 NONSHARABLE_CLASS (CMsmmRefPolicyPluginNotifier) : public MEikSrvNotifierBase2 |
|
37 { |
|
38 public: |
|
39 ~CMsmmRefPolicyPluginNotifier(); |
|
40 static CMsmmRefPolicyPluginNotifier* NewL(); |
|
41 static CMsmmRefPolicyPluginNotifier* NewLC(); |
|
42 |
|
43 public: |
|
44 |
|
45 // from MEikSrvNotifierBase2 |
|
46 void Release(); |
|
47 TNotifierInfo RegisterL(); |
|
48 TNotifierInfo Info() const; |
|
49 TPtrC8 StartL(const TDesC8& aBuffer); |
|
50 void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); |
|
51 void Cancel(); |
|
52 TPtrC8 UpdateL(const TDesC8& aBuffer); |
|
53 |
|
54 private: |
|
55 CMsmmRefPolicyPluginNotifier(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 TNotifierInfo iInfo; |
|
60 RMessagePtr2 iMessage; |
|
61 CCoeEnv* iCoeEnv; |
|
62 TInt iOffset; |
|
63 TBool iDialogIsVisible; |
|
64 CRefPPDialog* iDialogPtr; |
|
65 }; |
|
66 |
|
67 #endif /*REFPPNOTIFIER_H*/ |