|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Interface for handling application events. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_AIAPPLICATIONEVENTHANDLER_H |
|
20 #define M_AIAPPLICATIONEVENTHANDLER_H |
|
21 |
|
22 namespace AiXmlUiController |
|
23 { |
|
24 |
|
25 /** |
|
26 * Extension of the CAiContentPublisher interface, which allows Active Idle |
|
27 * Framework to notify their plug-ins that they must to handle event. |
|
28 * Plug-ins must provide implementation of interface only if they are |
|
29 * supporting event model (e.g. provides possibility to manipulate with |
|
30 * engine properties via UI). |
|
31 * |
|
32 * @lib AiXmlUiMain |
|
33 */ |
|
34 class MAiApplicationEventHandler |
|
35 { |
|
36 |
|
37 protected: |
|
38 |
|
39 /** |
|
40 * Protected destructor prevents deletion through this interface. |
|
41 */ |
|
42 ~MAiApplicationEventHandler() { } |
|
43 |
|
44 public: // New functions |
|
45 /** |
|
46 * Invoked by the framework when plug-in must handle an event. |
|
47 * |
|
48 * @param aEvent - unique identifier of event. |
|
49 * @param aParam - parameters associated with event. Each UI Definition |
|
50 * declares events in the format: <event name>(<event params>), |
|
51 * where <event name> is mapped by the framework to unique |
|
52 * identifier suppied in aEvent, <event params> are provided to |
|
53 * plug-in as-is in the descriptor. |
|
54 * @return ETrue if event was handled by this handler. |
|
55 */ |
|
56 virtual TBool HandleApplicationEvent(TInt aEvent, const TDesC8& aParam) = 0; |
|
57 |
|
58 }; |
|
59 |
|
60 } // namespace AiXmlUiController |
|
61 |
|
62 #endif // M_AIAPPLICATIONEVENTHANDLER_H |
|
63 |
|
64 // End of File. |