114
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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: Active Idle Framework internal event handling interface.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef M_AIFWEVENTHANDLER_H
|
|
20 |
#define M_AIFWEVENTHANDLER_H
|
|
21 |
|
|
22 |
// System includes
|
|
23 |
#include <e32cmn.h>
|
|
24 |
|
|
25 |
// User includes
|
|
26 |
|
|
27 |
// Forward declarations
|
|
28 |
class CAiUiController;
|
|
29 |
class CHsContentPublisher;
|
|
30 |
class THsPublisherInfo;
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Active Idle Framework internal event handling interface.
|
|
34 |
* Events from UI controllers are forwarded to this interface for processing
|
|
35 |
* on the Active Idle Framework side.
|
|
36 |
*
|
|
37 |
* @since S60 3.2
|
|
38 |
*/
|
|
39 |
class MAiFwEventHandler
|
|
40 |
{
|
|
41 |
public:
|
|
42 |
// new functions
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Application environment ready callback. Main UI controller calls this
|
|
46 |
* method when application framework is initialized.
|
|
47 |
*
|
|
48 |
* @since S60 3.2
|
|
49 |
*/
|
|
50 |
virtual void AppEnvReadyL() = 0;
|
|
51 |
|
|
52 |
/**
|
|
53 |
* UI ready event handler.
|
|
54 |
*
|
|
55 |
* @since S60 3.2
|
|
56 |
* @param aUiController Active Idle UI Controller which manages the UI
|
|
57 |
* that is ready.
|
|
58 |
*/
|
|
59 |
virtual void HandleUiReadyEventL( CAiUiController& aUiController ) = 0;
|
|
60 |
|
|
61 |
/**
|
|
62 |
* UI activation event handler.
|
|
63 |
*
|
|
64 |
* @since S60 3.2
|
|
65 |
*/
|
|
66 |
virtual void HandleActivateUI() = 0;
|
|
67 |
|
|
68 |
/**
|
|
69 |
* UI shutdown event handler.
|
|
70 |
*
|
|
71 |
* @since S60 3.2
|
|
72 |
* @param aUiController Active Idle UI Controller which manages the UI
|
|
73 |
* that was shut down.
|
|
74 |
*/
|
|
75 |
virtual void HandleUiShutdown( CAiUiController& aUiController ) = 0;
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Active Idle Framework Plug-in event handler. UI controllers forward
|
|
79 |
* events that are targeted to Active Idle Content Publisher Plug-ins
|
|
80 |
* to this method.
|
|
81 |
*
|
|
82 |
* @since S60 3.2
|
|
83 |
* @param aParam event parameters from the UI model.
|
|
84 |
*/
|
|
85 |
virtual void HandlePluginEvent( const TDesC& aParam ) = 0;
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Active Idle Framework Plug-in event handler. UI controllers forward
|
|
89 |
* events that are targeted to Active Idle Content Publisher Plug-ins
|
|
90 |
* to this method.
|
|
91 |
*
|
|
92 |
* @since S60 5.2
|
|
93 |
* @param aPublisherInfo publisher info.
|
|
94 |
* @param aParam event parameters from the UI model.
|
|
95 |
*/
|
|
96 |
virtual void HandlePluginEventL(
|
|
97 |
const THsPublisherInfo& aPublisherInfo,
|
|
98 |
const TDesC& aParam ) = 0;
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Queries if a Content Publiseher Plug-in has settings
|
|
102 |
*
|
|
103 |
* @since S60 5.2
|
|
104 |
* @param aPublisherInfo publisher info.
|
|
105 |
* @param aMenuItem menuitem type.
|
|
106 |
*/
|
|
107 |
virtual TBool HasMenuItemL(
|
|
108 |
const THsPublisherInfo& aPublisherInfo,
|
|
109 |
const TDesC& aMenuItem ) = 0;
|
|
110 |
|
|
111 |
/**
|
|
112 |
* Refresh content request. UI controller can use this interface to request
|
|
113 |
* a content publisher plug-in to refresh (re-publish) a specific content
|
|
114 |
* item.
|
|
115 |
*
|
|
116 |
* @since S60 3.2
|
|
117 |
* @param aContentCid Textual identifier of the content to refresh.
|
|
118 |
* @return True if the content publisher plug-in is found and the plugin
|
|
119 |
* will refresh the content by calling its content observer.
|
|
120 |
* False otherwise.
|
|
121 |
*/
|
|
122 |
virtual TBool RefreshContent( const TDesC& aContentCid ) = 0;
|
|
123 |
|
|
124 |
/**
|
|
125 |
* Refresh content request. UI controller can use this interface to request
|
|
126 |
* a content publisher plug-in to refresh (re-publish) a specific content
|
|
127 |
* item.
|
|
128 |
*
|
|
129 |
* @since S60 5.2
|
|
130 |
* @param aPublisherInfo publisher info.
|
|
131 |
* @param aContentCid Textual identifier of the content to refresh.
|
|
132 |
* @return True if the content publisher plug-in is found and the plugin
|
|
133 |
* will refresh the content by calling its content observer.
|
|
134 |
* False otherwise.
|
|
135 |
*/
|
|
136 |
virtual TBool RefreshContent( const THsPublisherInfo& aPublisherInfo,
|
|
137 |
const TDesC& aContentCid ) = 0;
|
|
138 |
|
|
139 |
/**
|
|
140 |
* Suspend content request. UI controller can use this interface to request
|
|
141 |
* a content publisher plug-in to suspend a specific content
|
|
142 |
* item.
|
|
143 |
*
|
|
144 |
* @since S60 5.2
|
|
145 |
* @param aPublisherInfo publisher info.
|
|
146 |
* @param aContentCid Textual identifier of the content to refresh.
|
|
147 |
* @return True if the content publisher plug-in is found and the plugin
|
|
148 |
* will refresh the content by calling its content observer.
|
|
149 |
* False otherwise.
|
|
150 |
*/
|
|
151 |
virtual TBool SuspendContent( const THsPublisherInfo& aPublisherInfo,
|
|
152 |
const TDesC& aContentCid ) = 0;
|
|
153 |
|
|
154 |
/**
|
|
155 |
* Service to check if menu is open.
|
|
156 |
*
|
|
157 |
* @since S60 3.2
|
|
158 |
* @return ETrue if menu is open, EFalse otherwise
|
|
159 |
*/
|
|
160 |
virtual TBool QueryIsMenuOpen() = 0;
|
|
161 |
};
|
|
162 |
|
|
163 |
#endif // M_AIEVENTHANDLEREXTENSION_H
|
|
164 |
|
|
165 |
// End of file
|