gsprofilesrv_plat/filelist_api/inc/MFLDFileListBoxObserver.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     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: 
       
    15 *     MFLDFileListBoxObserver defines an abstract interface to observe
       
    16 *     file list box events.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __MFLDFILELISTBOXOBSERVER_H__
       
    23 #define __MFLDFILELISTBOXOBSERVER_H__
       
    24 
       
    25 // INTERNAL INCLUDES
       
    26 
       
    27 // EXTERNAL INCLUDES
       
    28 #include <e32base.h>
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class RWindow;
       
    32 
       
    33 // CLASS DEFINITION
       
    34 
       
    35 /**
       
    36 * MFLDFileListBoxObserver defines an abstract interface to observe
       
    37 * file list box events.
       
    38 */
       
    39 class MFLDFileListBoxObserver
       
    40     {
       
    41     public:     // Enumerations
       
    42         enum TFileListBoxEvent
       
    43             {
       
    44             EFocusChanged = 1,
       
    45             EListBoxClosed,
       
    46             EOtherKeyEvent,
       
    47             EVideoPreview,
       
    48             EVideoPreviewSelected,
       
    49             EVideoPreviewCanceled
       
    50             };
       
    51 
       
    52 		enum TFileListSoftKeyState
       
    53 		    {
       
    54    		    EToneSelectionSoftKeyState = 1,
       
    55 		    EPreviewSoftKeyState,
       
    56 		    EPreviewSelectSoftKeyState
       
    57     		};
       
    58 
       
    59     protected:  // Constructors and destructors
       
    60 
       
    61         /**
       
    62         * Destructor.
       
    63         */
       
    64         virtual ~MFLDFileListBoxObserver() {}
       
    65 
       
    66     public:     // New methods
       
    67 
       
    68         /**
       
    69         * Receives information about a file list box event
       
    70         * @param aEvent The event type that happened
       
    71         * @param aFileName The file name that is currently focused, or KNullDesC
       
    72         * construct different components using existing window.
       
    73 		*/
       
    74         virtual void HandleFileListBoxEventL( TFileListBoxEvent aEvent,
       
    75             const TDesC& aFileName = KNullDesC ) = 0;
       
    76 
       
    77         /**
       
    78         * Method for listbox to receive current state of the softkeys.
       
    79         * @param aSoftKeyState This parameter will return the softkey state
       
    80         * TFileListSoftKeyState as a return parameter
       
    81 		*/
       
    82         virtual void HandleSoftKeyState( TFileListSoftKeyState& aSoftKeyState ) = 0;
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  __MFLDFILELISTBOXOBSERVER_H__
       
    87 
       
    88 // End of File