mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/mediamtpdataprovider/inc/mediamtpdataproviderprocessor.h
changeset 0 a2952bb97e68
child 17 780c925249c1
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 MEDIAMTPDATAPROVIDERPROCESSOR_H
       
    20 #define MEDIAMTPDATAPROVIDERPROCESSOR_H
       
    21 
       
    22 #include "crequestprocessor.h"
       
    23 
       
    24 // class forward
       
    25 class MMTPConnection;
       
    26 class TMTPTypeRequest;
       
    27 class CMTPDataProviderPlugin;
       
    28 class MMTPDataProviderFramework;
       
    29 class MMTPRequestProcessor;
       
    30 class CMediaMtpDataProvider;
       
    31 class MMmMtpDpConfig;
       
    32 
       
    33 typedef MMmRequestProcessor* ( *TMediaMtpDataProviderRequestProcessorCreateFunc )(
       
    34     MMTPDataProviderFramework& aFramework,
       
    35     MMTPConnection& aConnection,
       
    36     MMmMtpDpConfig& aDpConfig );
       
    37 
       
    38 typedef struct
       
    39     {
       
    40     TUint16 iOperationCode;
       
    41     TMediaMtpDataProviderRequestProcessorCreateFunc iCreateFunc;
       
    42     } TMediaMtpDataProviderRequestProcessorEntry;
       
    43 
       
    44 class MediaMtpDataProviderProcessor
       
    45     {
       
    46 public:
       
    47     /**
       
    48     * Create a request processor that matches the request
       
    49     * @param aFramework The reference to the data provider framework
       
    50     * @param aRequest    The request to be processed
       
    51     * @param aConnection The connection from which the request comes from
       
    52     * @param aDpConfig  Dp configurations
       
    53     * @return a pointer to the request processor
       
    54     */
       
    55     static MMmRequestProcessor* CreateL( MMTPDataProviderFramework& aFramework,
       
    56         const TMTPTypeRequest& aRequest,
       
    57         MMTPConnection& aConnection,
       
    58         MMmMtpDpConfig& aDpConfig );
       
    59 
       
    60     };
       
    61 
       
    62 #endif // MEDIAMTPDATAPROVIDERPROCESSOR_H