metadatasrv_pub/media_fetch_api/inc/MMGFetchVerifier.h
changeset 0 31ef7fef3f45
equal deleted inserted replaced
-1:000000000000 0:31ef7fef3f45
       
     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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMGFETCHVERIFIER_H
       
    20 #define MMGFETCHVERIFIER_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <bamdesca.h> // MDesCArray
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Interface for verifying fetch selection before the fetch popup is closed
       
    30 *
       
    31 *  @since 2.0
       
    32 */
       
    33 class MMGFetchVerifier
       
    34     {
       
    35     public:   // Constructors and destructor
       
    36 
       
    37         virtual ~MMGFetchVerifier() {}
       
    38 
       
    39     public:  // New functions
       
    40         /**
       
    41         * Interface for verifying fetch file selection (see MGFetch.h)
       
    42         * If MMGFetchVerifier is passed to MGFetch then VerifySelectionL
       
    43         * is called when user tries to select file(s) from the fetcher.
       
    44         * If VerifySelectionL returns ETrue then the fetcher popup is closed and
       
    45         * the selection is accepted. If VerifySelectionL returns EFalse then the
       
    46         * fetcher is not closed and user needs to select different file(s) or
       
    47         * cancel the operation.
       
    48         *
       
    49         * @since 2.0
       
    50         * @param aSelectedFiles Array holding the file(s) to be verified
       
    51         * @return ETrue if selection is accepted, EFalse if not
       
    52         */
       
    53         virtual TBool VerifySelectionL( const MDesCArray* aSelectedFiles ) = 0;
       
    54     };
       
    55 #endif // MMGFETCHVERIFIER_H
       
    56 
       
    57 // End of File