profilesservices/FileList/Src/MFLDFileObserver.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:  Abstract interface for check media files.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MFLDFILEOBSERVER_H
       
    21 #define MFLDFILEOBSERVER_H
       
    22 
       
    23 // INTERNAL INCLUDES
       
    24 
       
    25 // EXTERNAL INCLUDES
       
    26 #include <e32base.h>
       
    27 
       
    28 // CLASS DEFINITION
       
    29 
       
    30 /**
       
    31 *  Abstract interface for check media files.
       
    32 *
       
    33 *  @lib filelist.lib
       
    34 *  @since 2.1
       
    35 */
       
    36 class MFLDFileObserver
       
    37     {
       
    38     public: // Enumerations
       
    39 
       
    40         // An enumeration which tells what is the file used for.
       
    41         enum TIntention
       
    42             {
       
    43             EPlay = 1,
       
    44             ESelect = 2
       
    45             };
       
    46 
       
    47     public: // New functions
       
    48 
       
    49         /**
       
    50         * An abstract function for checking if a file is valid.
       
    51         * @since 2.1
       
    52         * @param aFileName Full path and filename.
       
    53         * @param aIntention Describes what is the file used for.
       
    54         * @return Returns ETrue if the file is valid for intended use.
       
    55         */
       
    56         virtual TBool IsFileValidL(
       
    57             const TDesC& aFileName,
       
    58             TIntention aIntention ) = 0;
       
    59 
       
    60 		/**
       
    61         * An abstract function for checking media type
       
    62         * @since 3.1
       
    63         * @param aFileName Full path and filename.
       
    64         * @return Returns media type
       
    65         */
       
    66         virtual TInt32 MediaFileType(
       
    67          const TDesC& aFileName ) const = 0;
       
    68 
       
    69     protected:
       
    70 
       
    71         /**
       
    72         * Destructor.
       
    73         */
       
    74         virtual ~MFLDFileObserver() {}
       
    75 
       
    76     };
       
    77 
       
    78 #endif      // MFLDFILEOBSERVER_H
       
    79 
       
    80 // End of File