mtpfws/mtpfw/src/cdummydp.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <mtp/mmtpconnection.h>
       
    17 #include <mtp/mmtpdataproviderframework.h>
       
    18 #include <mtp/mmtpobjectmgr.h> 
       
    19 #include <mtp/mmtpreferencemgr.h> 
       
    20 #include <mtp/mtpprotocolconstants.h> 
       
    21 #include <mtp/mmtpsession.h> 
       
    22 
       
    23 #include "cdummydp.h"  
       
    24 
       
    25 
       
    26 CDummyDp::~CDummyDp()
       
    27     {
       
    28     
       
    29     }
       
    30     
       
    31 void CDummyDp::Cancel()
       
    32     {
       
    33     
       
    34     }
       
    35     
       
    36 void CDummyDp::ProcessEventL(const TMTPTypeEvent& /*aEvent*/, MMTPConnection& /*aConnection*/)
       
    37     {
       
    38 
       
    39     }
       
    40     
       
    41 void CDummyDp::ProcessNotificationL(TMTPNotification /*aNotification*/, const TAny* /*aParams*/)
       
    42     {
       
    43 
       
    44     }
       
    45         
       
    46 void CDummyDp::ProcessRequestPhaseL(TMTPTransactionPhase /*aPhase*/, const TMTPTypeRequest& /*aRequest*/, MMTPConnection& /*aConnection*/)
       
    47     {
       
    48 
       
    49     }
       
    50     
       
    51 void CDummyDp::StartObjectEnumerationL(TUint32 aStorageId, TBool /*aPersistentFullEnumeration*/)
       
    52     {
       
    53     Framework().ObjectEnumerationCompleteL(aStorageId);        
       
    54     }
       
    55     
       
    56 void CDummyDp::StartStorageEnumerationL()
       
    57     {
       
    58     Framework().StorageEnumerationCompleteL();
       
    59     }
       
    60     
       
    61 void CDummyDp::Supported(TMTPSupportCategory /*aCategory*/, RArray<TUint>& /*aArray*/) const
       
    62     {
       
    63 
       
    64     }
       
    65     
       
    66 TAny* CDummyDp::NewL(TAny* aParams)
       
    67     {
       
    68     CDummyDp* self = new (ELeave) CDummyDp(aParams);
       
    69     CleanupStack::PushL(self);
       
    70     self->ConstructL();
       
    71     CleanupStack::Pop(self);    
       
    72     return self;
       
    73     }
       
    74    
       
    75 CDummyDp::CDummyDp(TAny* aParams) :
       
    76     CMTPDataProviderPlugin(aParams)
       
    77     {
       
    78 
       
    79     }
       
    80     
       
    81 void CDummyDp::ConstructL()
       
    82     {
       
    83     }
       
    84