|
1 /* |
|
2 * Copyright (c) 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: LAWMO Plugin Interface definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef _MLAWMOPLUGININTERFACE_H__ |
|
19 #define _MLAWMOPLUGININTERFACE_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <ecom/ecom.h> |
|
23 #include <lawmocallbackinterface.h> |
|
24 |
|
25 // UID of this interface |
|
26 const TUid KLAWMOPluginInterfaceUid = {0x2002EA1F}; |
|
27 |
|
28 /** |
|
29 An LAWMO abstract class being representative of the |
|
30 concrete class which the client wishes to use. |
|
31 |
|
32 It acts as a base, for a real class to provide all the |
|
33 functionality that a client requires. |
|
34 It supplies instantiation & destruction by using |
|
35 the ECom framework, and functional services |
|
36 by using the methods of the actual class. |
|
37 */ |
|
38 |
|
39 |
|
40 class MLAWMOPluginInterface |
|
41 { |
|
42 public: |
|
43 |
|
44 virtual void WipeL() = 0; |
|
45 }; |
|
46 |
|
47 class CLAWMOPluginInterface : public CBase, public MLAWMOPluginInterface |
|
48 { |
|
49 public: |
|
50 // Instantiates an object of this type |
|
51 /** |
|
52 * Create instance of CLAWMOPluginInterface |
|
53 * @param aUid , implementation Uid |
|
54 * @return Instance of CLAWMOPluginInterface |
|
55 */ |
|
56 static CLAWMOPluginInterface* NewL(TUid aUid, MLawmoPluginWipeObserver* aObserver); |
|
57 /** |
|
58 * C++ Destructor |
|
59 */ |
|
60 virtual ~CLAWMOPluginInterface(); |
|
61 |
|
62 private: |
|
63 // Unique instance identifier key |
|
64 TUid iDtor_ID_Key; |
|
65 |
|
66 }; |
|
67 |
|
68 #include "LAWMOInterface.inl" |
|
69 |
|
70 #endif // _MLAWMOPLUGININTERFACE_H__ |
|
71 |