mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataprovidersetobjectreferences.h
changeset 0 a2952bb97e68
child 9 bee149131e4b
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:  Set object references operation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERSETOBJECTREFERENCES_H
       
    20 #define CABSTRACTMEDIAMTPDATAPROVIDERSETOBJECTREFERENCES_H
       
    21 
       
    22 #include "csetobjectreferences.h"
       
    23 
       
    24 /**
       
    25 * Defines abstract media data provider SetObjectReferences request processor
       
    26 */
       
    27 class CAbstractMediaMtpDataProviderSetObjectReferences : public CSetObjectReferences
       
    28     {
       
    29 public:
       
    30     /**
       
    31     * Two-phase construction method
       
    32     * @param aFramework    The data provider framework
       
    33     * @param aConnection    The connection from which the request comes
       
    34     * @param aWrapper    medadata access interface
       
    35     * @return a pointer to the created request processor object
       
    36     */
       
    37     static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    38         MMTPConnection& aConnection,
       
    39         MMmMtpDpConfig& aDpConfig );
       
    40 
       
    41     /**
       
    42     * Destructor
       
    43     */
       
    44     ~CAbstractMediaMtpDataProviderSetObjectReferences();
       
    45 
       
    46 private:
       
    47     /**
       
    48     * Standard c++ constructor
       
    49     * @param aFramework    The data provider framework
       
    50     * @param aConnection    The connection from which the request comes
       
    51     * @param aWrapper    medadata access interface
       
    52     */
       
    53     CAbstractMediaMtpDataProviderSetObjectReferences( MMTPDataProviderFramework& aFramework,
       
    54         MMTPConnection& aConnection,
       
    55         MMmMtpDpConfig& aDpConfig );
       
    56 
       
    57     /**
       
    58     * two-phase construction
       
    59     */
       
    60     void ConstructL();
       
    61 
       
    62 protected:
       
    63     // from CSetObjectPropValue
       
    64     /**
       
    65     * set references to DB
       
    66     * @param aWrapper          medadata access interface
       
    67     * @param aObjectFormat     the format of the file
       
    68     * @param aSrcFileName      file name, from
       
    69     * @param aRefFileArray     the array of file names, to
       
    70     */
       
    71     void DoSetObjectReferencesL( CMmMtpDpMetadataAccessWrapper& aWrapper,
       
    72             TUint16 aObjectFormat,
       
    73             const TDesC& aSrcFileName,
       
    74             CDesCArray& aRefFileArray );
       
    75 
       
    76     };
       
    77 
       
    78 #endif // CABSTRACTMEDIAMTPDATAPROVIDERSETOBJECTREFERENCES_H