sysstatemgmt/systemstatereferenceplugins/clayer/inc/startupadaptationobserver.h
author Tapani Kanerva <Tapani.Kanerva@nice.fi>
Thu, 11 Nov 2010 14:35:29 +0000
branchRCL_3
changeset 86 79105dd92dc2
parent 7 1a73e8f1b64d
permissions -rw-r--r--
Export meaningful default HWRM policy files, to fix Bug 3852

/*
* Copyright (c) 2004-2010 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   : Domain, Startup Adaptation API
* This header file defines the startup adaptation API observer
* interface used to return responses and deliver events.
*
*/



#ifndef __STARTUPADAPTATIONOBSERVER_H__
#define __STARTUPADAPTATIONOBSERVER_H__

/*****************************************************
*       Series 60 Customer
*       Needs customer implementation
*****************************************************/

#include <ssm/startupadaptationcommands.h>
#include <ssm/startupadaptationevents.h>

/*
* @publishedPartner
* @released
*/

/**
*  An observer interface used by the adaptation
*  to return responses and deliver events.
*
*  @since S60 3.2
*/
class MStartupAdaptationObserver
    {

public:

    /**
    * A response to a command.
    *
    * @since S60 3.2
    *
    * @param aCommandId A command identifier.
    * @param aData      Data associated with the response.
    */
    virtual void ResponseL(
        const StartupAdaptation::TCommand aCommandId,
        TDesC8& aData ) = 0;

    /**
    * An event from Adaptation.
    *
    * @since S60 3.2
    *
    * @param aEventId A command identifier.
    * @param aData    Data associated with the response.
    */
    virtual void EventL(
        const StartupAdaptation::TEvent aEventId,
        TDesC8& aData ) = 0;
    };

#endif // __STARTUPADAPTATIONOBSERVER_H__