textinput/peninputhwrtrui/inc/truihwrboxobserver.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:33 +0100
branchRCL_3
changeset 21 ecbabf52600f
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 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:  Control's observer
*
*/


#ifndef M_TRUIHWRBOXOBSERVER_H
#define M_TRUIHWRBOXOBSERVER_H

// CLASS DECLARATION

/**
* MTruiHwrBoxObserver.
* An instance of a class derived from MTrainingUIHwrBoxObserver is an object
* which can be informed when an event defined in this interface occured.
*/
class MTruiHwrBoxObserver 
    {
public:
    enum TMessageType
        {
        EModelExist,
        EModelDelete
        };
    /**
     * TimeOut
     * Handle the event when a time out occurs.
     * @param aModel the array of points where the model is stored
     */
    virtual void SaveNewModelL() = 0;
    
    /**
     * HandleEventL
     * Handle the message event from the HwrBox
     * @param aMessage According to the aMessage to handle the event
     */
    virtual void HandleEventL( TMessageType aMessage ) = 0;
    };

#endif //M_TRUIHWRBOXOBSERVER_H