voicerecorder/UtilsInc/MVRSelectionProvider.h
branchRCL_3
changeset 21 c6bafb5162d8
parent 0 845549f293a7
equal deleted inserted replaced
20:072a5fa0c63b 21:c6bafb5162d8
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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 *      Interface for file selection
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __MVRSELECTIONPROVIDER_H__
       
    22 #define __MVRSELECTIONPROVIDER_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <bamdesca.h>
       
    26 #include <f32file.h>
       
    27 
       
    28 // ENUMERATIONS
       
    29 enum TVRSelectionStyle { EEmptyList, EFocusedItem, ESingleMarkedItem, EMarkedItems };
       
    30 
       
    31 // CLASS DEFINITION
       
    32 /**
       
    33 *
       
    34 */
       
    35 class MVRSelectionProvider
       
    36 	{
       
    37 	public: // new methods
       
    38 
       
    39 		/**
       
    40 		* Ownership is transferred. Caller must destroy the returned array.
       
    41 		* @return array of file names
       
    42 		*/
       
    43 		virtual MDesCArray* GetSelectedFilesLC( TVRSelectionStyle& aStyle ) const = 0;
       
    44 
       
    45 		/**
       
    46 		* Transfer the file handle to view
       
    47 		* @param aFile File handle
       
    48 		*/
       
    49 		virtual void SetFileHandle( RFile& aFile ) = 0;
       
    50 		
       
    51 		/**
       
    52 		* Get the handle to the recorded clip.
       
    53 		* @return Open file handle
       
    54 		*/
       
    55 		virtual RFile& GetFile() = 0;
       
    56 	};
       
    57 
       
    58 #endif // __MVRSELECTIONPROVIDER_H__