mmappcomponents/harvester/filehandler/inc/mpxfileadditionobserver.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 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:  File addition Observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMPXFILEADDITIONOBSERVER_H
       
    20 #define MMPXFILEADDITIONOBSERVER_H
       
    21 
       
    22 /**
       
    23  *  Abstract interface for file addition
       
    24  *
       
    25  *  @lib mpxfilehandler.lib
       
    26  *  @since S60 3.0
       
    27  */
       
    28 NONSHARABLE_CLASS( MMPXFileAdditionObserver )
       
    29     {
       
    30 
       
    31 public:
       
    32 
       
    33     /**
       
    34      * Indicates that a new media file has 
       
    35      * been detected by the folder scanner
       
    36      *
       
    37      * @param aFileName file name
       
    38      * @param aColIndex mime type look up index
       
    39      * @param aPlaylist is this item a playlist
       
    40      */
       
    41     virtual void HandleFileAdditionL( const TDesC& aFileName, 
       
    42                                       TInt aColIndex,
       
    43                                       TBool aPlaylist = EFalse ) = 0; //lint !e1735
       
    44     /**
       
    45     * Callback from scanner that it is moving onto next folder
       
    46     * @param aDrive a drive to open
       
    47     * @param aFolder folder that we are opening
       
    48     */
       
    49     virtual void HandleOpenDriveL( TDriveNumber aDrive, const TDesC& aFolder ) = 0;
       
    50       
       
    51     /**
       
    52      * Checks whether a file is a media file
       
    53      * @param aFile file to check
       
    54      * @return ETrue if it is a media file
       
    55      */
       
    56     virtual TInt IsMediaFileL( const TDesC& aFile ) = 0;
       
    57     
       
    58     /**
       
    59      * Checks whether a file is a playlist file
       
    60      * @param aFile, file to check
       
    61      * @return ETrue if this is a playlist file.
       
    62      */
       
    63     virtual TInt IsPlaylistFileL( const TDesC& aFile ) = 0;
       
    64     
       
    65     /**
       
    66     * Checks if a certain path is blocked
       
    67     * @param aPath, path to check
       
    68     * @return ETrue if the path is on the blocked list
       
    69     */
       
    70     virtual TBool IsPathBlockedL( const TDesC& aPath ) = 0;
       
    71     };
       
    72 
       
    73 
       
    74 #endif // MMPXFILEADDITIONOBSERVER_H