textinput/peninputhwrtrui/inc/truihwrboxobserver.h
changeset 27 694fa80c203c
parent 24 fc42a86c98e3
child 35 0f326f2e628e
equal deleted inserted replaced
24:fc42a86c98e3 27:694fa80c203c
     1 /*
       
     2 * Copyright (c) 2009 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:  Control's observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_TRUIHWRBOXOBSERVER_H
       
    20 #define M_TRUIHWRBOXOBSERVER_H
       
    21 
       
    22 // CLASS DECLARATION
       
    23 
       
    24 /**
       
    25 * MTruiHwrBoxObserver.
       
    26 * An instance of a class derived from MTrainingUIHwrBoxObserver is an object
       
    27 * which can be informed when an event defined in this interface occured.
       
    28 */
       
    29 class MTruiHwrBoxObserver 
       
    30     {
       
    31 public:
       
    32     enum TMessageType
       
    33         {
       
    34         EModelExist,
       
    35         EModelDelete
       
    36         };
       
    37     /**
       
    38      * TimeOut
       
    39      * Handle the event when a time out occurs.
       
    40      * @param aModel the array of points where the model is stored
       
    41      */
       
    42     virtual void SaveNewModelL() = 0;
       
    43     
       
    44     /**
       
    45      * HandleEventL
       
    46      * Handle the message event from the HwrBox
       
    47      * @param aMessage According to the aMessage to handle the event
       
    48      */
       
    49     virtual void HandleEventL( TMessageType aMessage ) = 0;
       
    50     };
       
    51 
       
    52 #endif //M_TRUIHWRBOXOBSERVER_H
       
    53