diff -r 15e4dd19031c -r a0713522ab97 homescreensrv_plat/ai_content_model_api/inc/aieventhandlerextension.h --- a/homescreensrv_plat/ai_content_model_api/inc/aieventhandlerextension.h Wed Mar 31 22:04:35 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Event handling extension for the CAiContentPublisher interface. -* -*/ - - -#ifndef M_AIEVENTHANDLEREXTENSION_H -#define M_AIEVENTHANDLEREXTENSION_H - -#include - -/** - * Extension of the CAiContentPublisher interface, which allows Active Idle - * Framework to notify their plug-ins that they must to handle event. - * Plug-ins must provide implementation of interface only if they are - * supporting event model (e.g. provides possibility to manipulate engine - * properties via UI). - * - * @since S60 3.2 - */ -class MAiEventHandlerExtension - { -public: - /** - * Invoked by the framework when plug-in must handle an event. - * - * @param aEvent - unique identifier of event from plug-in content model. - * @param aParam - parameters associated with event. Each UI Definition - * declares events in the format: (), - * where is mapped by the framework to unique - * identifier supplied in aEvent, are provided to - * plug-in as-is in the descriptor. - */ - virtual void HandleEvent(TInt aEvent, const TDesC& aParam) = 0; - - /** - * Invoked by the framework when plug-in must handle an event. - * - * @param aEventName - name of the event from plug-in content model. - * @param aParam - parameters associated with event. Each UI Definition - * declares events in the format: (), - * where mapping to unique identifier supplied by event - * is failed by the frame work then the and - * are provied to plug-in as-is in the descriptor. - */ - virtual void HandleEvent(const TDesC& /*aEventName*/, const TDesC& /*aParam*/) { }; - - /** - * Invoked by the framework for querying if plugin has menu item - * - * @param aMenuItem menu item name - * @return ETrue if plugin has specific menu item, EFalse otherwise - */ - virtual TBool HasMenuItem(const TDesC& /*aMenuItem*/) { return EFalse; } - -protected: - /** - * Protected destructor prevents deletion through this interface. - */ - ~MAiEventHandlerExtension() { } - }; - -#endif // M_AIEVENTHANDLEREXTENSION_H