notepad/notepad1/inc/NpdModelObserver.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Declaration of Notepad Model Observer Interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NPDMODELOBSERVER_H
       
    20 #define NPDMODELOBSERVER_H
       
    21 
       
    22 // CLASS DECLARATION
       
    23 /**
       
    24 * Observer interface of CNotepadModel.
       
    25 * MNotepadModelObserver is an interface to observe and handle the changes of
       
    26 * CNotepadModel.
       
    27 *  
       
    28 * @lib NpdLib.lib
       
    29 * @see CNotepadModel
       
    30 */
       
    31 class MNotepadModelObserver
       
    32     {
       
    33     public:
       
    34         enum TEvent
       
    35             {
       
    36             EDatabaseChanged = 1,
       
    37             EAbortDeletion,
       
    38             ECompleteDeletion,
       
    39             EProgressDeletion,
       
    40             EStartItemArrayChange,
       
    41             EAbortItemArrayChange,
       
    42             ECompleteItemArrayChange,
       
    43             EProgressItemArrayChange
       
    44             };
       
    45 
       
    46         /**
       
    47         * Handles a event of CNotepadModel.
       
    48         *
       
    49         * @param aEvent Type of an event.
       
    50         * @param aParam Optional parameter of an event.
       
    51         */ 
       
    52         virtual void HandleNotepadModelEventL(
       
    53             TEvent aEvent, 
       
    54             TInt aParam = 0 )=0;
       
    55     };
       
    56 
       
    57 #endif  // NPDMODELOBSERVER_H
       
    58 
       
    59 // End of File