|
1 /* |
|
2 * Copyright (c) 2006 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: Defines the abstract base class for all types of MMI |
|
15 content specific extensions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MMI_DELEGATEBASE_H__ |
|
21 #define __MMI_DELEGATEBASE_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <ecom\ecomresolverparams.h> |
|
25 #include <ecom\ecom.h> |
|
26 |
|
27 //forward definitions |
|
28 class MMIUtils; //mmiutils.h |
|
29 struct FI_ReturnString; |
|
30 |
|
31 /** |
|
32 * The CMMI_Delegate class is an abstract base class for all types of MMI content specific extensions. |
|
33 */ |
|
34 class CMMI_Delegate : public CBase |
|
35 { |
|
36 public: |
|
37 enum TDoItLOperationOpCodes |
|
38 { |
|
39 EOpCodePauseState = 0, |
|
40 EOpCodeSMCheckNeeded = 100 |
|
41 }; |
|
42 |
|
43 |
|
44 public: |
|
45 static CMMI_Delegate* NewL(const TDesC8& aMatch, MMIUtils* aMMIUtils); |
|
46 |
|
47 ~CMMI_Delegate() { REComSession::DestroyedImplementation (iDtor_ID_Key); } |
|
48 |
|
49 public: |
|
50 |
|
51 virtual const TDesC8* Name() const = 0; |
|
52 |
|
53 virtual void Initialize(MMIUtils* /*aMMIUtils*/) = 0; |
|
54 virtual short GetL(const RPointerArray<TDesC>& aArgs, struct FI_ReturnString* /*retVal*/) = 0; |
|
55 |
|
56 virtual short GetVarsL(const RPointerArray<TDesC>& aArgs, struct FI_ReturnString* /*retVal*/) = 0; |
|
57 |
|
58 virtual short SetL(const RPointerArray<TDesC>& aArgs, const TDesC& /*aValue*/) =0; |
|
59 |
|
60 virtual void SetVarsL(const RPointerArray<TDesC>& aArgs, const TDesC& /*aValue*/, short& /*aRetVal*/) =0; |
|
61 |
|
62 virtual short SendL(const TDesC& aVerbArg, const RPointerArray<TDesC>& aArgs) =0; |
|
63 |
|
64 virtual short RequestDataL(const RPointerArray<TDesC>& /*aArgs*/, const TAny* /*aDataRequestHandle*/ )=0; |
|
65 |
|
66 virtual short CancelRequestL(const TAny* /*aDataRequestHandle*/) = 0; |
|
67 |
|
68 virtual void PlayerDestroyed() = 0; |
|
69 virtual TBool RegisterExtendedEvent(const TDesC& aEventName) = 0; |
|
70 virtual TBool UnregisterExtendedEvent(const TDesC& aEventName) = 0; |
|
71 virtual TAny* ExecuteFunctionL(TInt aOpCode, TAny* aParam1, TAny* aParam2, TAny* aParam3, TAny* aParam4) = 0; |
|
72 |
|
73 private: |
|
74 TUid iDtor_ID_Key; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // __MMI_DELEGATEBASE_H__ |