mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderabstractmediapreference.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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERABSTRACTMEDIAPREFERENCE_H
       
    20 #define CABSTRACTMEDIAMTPDATAPROVIDERABSTRACTMEDIAPREFERENCE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "crequestprocessor.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class MMmMtpDpConfig;
       
    27 
       
    28 enum TMTPAbstractMediaReference
       
    29     {
       
    30     EMTPAbstractMediaRefOrdinary,
       
    31     EMTPAbstractMediaRefAll
       
    32     };
       
    33 
       
    34 /**
       
    35 * Defines abstract media data provider WMPReportSyncOnlyPlaylists request processor
       
    36 */
       
    37 class CAbstractMediaMtpDataProviderAbstractMediaPreference : public CRequestProcessor
       
    38     {
       
    39 public:
       
    40     /**
       
    41     * Two-phase construction method
       
    42     */
       
    43     static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    44         MMTPConnection& aConnection,
       
    45         MMmMtpDpConfig& aDpConfig );
       
    46 
       
    47     /**
       
    48     * Two-phase construction method
       
    49     */
       
    50     static CAbstractMediaMtpDataProviderAbstractMediaPreference* NewLC( MMTPDataProviderFramework& aFramework,
       
    51         MMTPConnection& aConnection );
       
    52 
       
    53     /**
       
    54     * Destructor.
       
    55     */
       
    56     ~CAbstractMediaMtpDataProviderAbstractMediaPreference();
       
    57 
       
    58 protected:
       
    59     // from CRequestProcessor
       
    60     void ServiceL();
       
    61 
       
    62 private:
       
    63     /**
       
    64     * Standard c++ constructor
       
    65     */
       
    66     CAbstractMediaMtpDataProviderAbstractMediaPreference( MMTPDataProviderFramework& aFramework,
       
    67         MMTPConnection& aConnection );
       
    68 
       
    69     /**
       
    70     * EPOC default constructor for performing 2nd stage construction
       
    71     */
       
    72     void ConstructL();
       
    73 
       
    74     };
       
    75 
       
    76 #endif // CABSTRACTMEDIAMTPDATAPROVIDERABSTRACTMEDIAPREFERENCE_H