mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/abstractmediamtpdataproviderprocessor.h
changeset 0 a2952bb97e68
child 9 bee149131e4b
child 25 d881023c13eb
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ABSTRACTMEDIAMTPDATAPROVIDERPROCESSOR_H
       
    20 #define ABSTRACTMEDIAMTPDATAPROVIDERPROCESSOR_H
       
    21 
       
    22 // class forward
       
    23 class MMTPConnection;
       
    24 class TMTPTypeRequest;
       
    25 class MMTPDataProviderFramework;
       
    26 class MMmRequestProcessor;
       
    27 class MMmMtpDpConfig;
       
    28 
       
    29 typedef MMmRequestProcessor* ( *TAbstractMediaMtpDataProviderRequestProcessorCreateFunc )(
       
    30     MMTPDataProviderFramework& aFramework,
       
    31     MMTPConnection& aConnection,
       
    32     MMmMtpDpConfig& aDpConfig );
       
    33 
       
    34 typedef struct
       
    35     {
       
    36     TUint16 iOperationCode;
       
    37     TAbstractMediaMtpDataProviderRequestProcessorCreateFunc iCreateFunc;
       
    38     } TAbstractMediaMtpDataProviderRequestProcessorEntry;
       
    39 
       
    40 class AbstractMediaMtpDataProviderProcessor
       
    41     {
       
    42 public:
       
    43     /**
       
    44     * Create a request processor that matches the request
       
    45     * @param aFramework The reference to the data provider framework
       
    46     * @param aRequest    The request to be processed
       
    47     * @param aConnection The connection from which the request comes from
       
    48     * @param aMetadataWrapper  medadata access interface
       
    49     * @return a pointer to the request processor
       
    50     */
       
    51     static MMmRequestProcessor* CreateL( MMTPDataProviderFramework& aFramework,
       
    52         const TMTPTypeRequest& aRequest,
       
    53         MMTPConnection& aConnection,
       
    54         MMmMtpDpConfig& aDpConfig );
       
    55 
       
    56     };
       
    57 
       
    58 #endif // ABSTRACTMEDIAMTPDATAPROVIDERPROCESSOR_H