emailuis/uicomponents/inc/fstextviewerobserver.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Observer for FsTextViewer class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_FSTEXTVIEWEROBSERVER_H
       
    20 #define M_FSTEXTVIEWEROBSERVER_H
       
    21 
       
    22 
       
    23 NONSHARABLE_CLASS( MFsTextViewerObserver )
       
    24     {
       
    25 public:
       
    26     /** events sent to observers */
       
    27     enum TFsTextViewerEvent
       
    28         {
       
    29         EFsTextViewerHotspotClicked = 0,
       
    30         EFsTextViewerHotspotChanged,
       
    31         EFsTextViewerHotspotLongTap,
       
    32         EFsTextViewerMarkStart,
       
    33         EFsTextViewerMarkChange,
       
    34         EFsTextViewerMarkEnd,
       
    35         EFsTextViewerScrollUp,
       
    36         EFsTextViewerScrollDown
       
    37         };
       
    38     
       
    39 public:
       
    40 
       
    41     /**
       
    42     * C++ destructor
       
    43     */
       
    44 
       
    45     virtual ~MFsTextViewerObserver() {};
       
    46     
       
    47 
       
    48     /**
       
    49     * Invoked when event occurs.
       
    50     *
       
    51     * @param aEvent event type.
       
    52     */
       
    53     virtual void HandleTextViewerEventL( TFsTextViewerEvent aEvent ) = 0;
       
    54     };
       
    55 
       
    56 #endif // M_FSTEXTVIEWEROBSERVER_H
       
    57 
       
    58