diff -r 000000000000 -r d0791faffa3f mtpdataproviders/mtppictbridgedp/inc/cmtppictbridgedp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtpdataproviders/mtppictbridgedp/inc/cmtppictbridgedp.h Tue Feb 02 01:11:40 2010 +0200 @@ -0,0 +1,91 @@ +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalComponent + */ + + +#ifndef CMTPPICTBRIDGEDP_H +#define CMTPPICTBRIDGEDP_H + +#include +#include + +#include "mmtppictbridgeenumeratorcallback.h" +#include "cmtprequestprocessor.h" +#include "mtpdebug.h" + +class CMTPPictBridgeEnumerator; +class CPtpServer; + +/** +Implements the pictbridge data provider plugin. +*/ + +class CMTPPictBridgeDataProvider: + public CMTPDataProviderPlugin, + public MMTPPictBridgeEnumeratorCallback + { +public: + + static TAny* NewL(TAny* aParams); + ~CMTPPictBridgeDataProvider(); + const CPtpServer* PtpServer()const {return iServerP;} + +public: + TUint32 DeviceDiscoveryHandle() const; + +public: // From CMTPDataProviderPlugin + + void Cancel(); + void ProcessEventL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection); + void ProcessNotificationL(TMTPNotification aNotification, const TAny* aParams); + void ProcessRequestPhaseL(TMTPTransactionPhase aPhase, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection); + void StartObjectEnumerationL(TUint32 aStorageId, TBool aPersistentFullEnumeration); + void StartStorageEnumerationL(); + void Supported (TMTPSupportCategory aCategory, RArray& aArray) const; + void SupportedL(TMTPSupportCategory aCategory, CDesCArray& aStrings) const; + +private: // From MMTPEnumerationCallback + + void NotifyStorageEnumerationCompleteL(); + void NotifyEnumerationCompleteL(TUint32 aStorageId, TInt aError); + +private: + CMTPPictBridgeDataProvider(TAny* aParams); + void ConstructL(); + TInt LocateRequestProcessorL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection); + TInt LocateRequestProcessorL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection); + void SessionClosedL(const TMTPNotificationParamsSessionChange& aSession); + void SessionOpenedL(const TMTPNotificationParamsSessionChange& aSession); + +private: + CMTPPictBridgeEnumerator* iPictBridgeEnumeratorP; // owned + CPtpServer* iServerP; // owned + + /** + The active request processors table. + */ + RPointerArray iActiveProcessors; + /** + FLOGGER debug trace member variable. + */ + __FLOG_DECLARATION_MEMBER_MUTABLE; + }; + +#endif // CMTPPICTBRIDGEDP_H +