idlehomescreen/xmluicontroller/inc/aiuieventhandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 11:48:23 +0200
changeset 4 4d54b72983ae
parent 0 f72a12da539e
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2005-2007 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:  Interface for handling UI events.
*
*/


#ifndef M_AIUIEVENTHANDLER_H
#define M_AIUIEVENTHANDLER_H


namespace AiXmlUiController
{

/**
 *  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 with
 *  engine properties via UI).
 *
 *  @lib AiXmlUiMain
 */
class MAiUiEventHandler
    {
protected:

    /**
     * Protected destructor prevents deletion through this interface.
     */
    ~MAiUiEventHandler() { }

public:  // New functions

    /**
     * Invoked by the framework when plug-in must handle an event.
     *
     * @param aEvent - event.
     * @param aParam - parameters associated with event. Each UI Definition
     *        declares events in the format: <event name>(<event params>),
     *        where <event name> is mapped by the framework to unique
     *        identifier suppied in aEvent, <event params> are provided to
     *        plug-in as-is in the descriptor.
     * @return ETrue if event was handled by this handler.
     */
    virtual TBool HandleUiEvent(TAny* aEvent, const TDesC8& aParam) = 0;

    };
    
} // namespace AiXmlUiController

#endif  // M_AIUIEVENTHANDLER_H

// End of File.