diff -r 000000000000 -r d0791faffa3f mtpdataproviders/mtppictbridgedp/inc/cptpreceivedmsghandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtpdataproviders/mtppictbridgedp/inc/cptpreceivedmsghandler.h Tue Feb 02 01:11:40 2010 +0200 @@ -0,0 +1,107 @@ +// 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 CPTPRECEIVEDMSGHANDLER_H +#define CPTPRECEIVEDMSGHANDLER_H + +#include +#include "ptpdef.h" +#include "rptp.h" + +class CPtpServer; + + /** + * Ptp Message Handler class + * Handles PTP Operations and Responses, + **/ +NONSHARABLE_CLASS(CPtpReceivedMsgHandler) : public CBase + { +public: + + /** + * 2-phased constructor. + * @param + * @return None. + */ + static CPtpReceivedMsgHandler* NewL(CPtpServer* aServerP); + + + + /** + * C++ destructor. + * @return None. + **/ + ~CPtpReceivedMsgHandler(); + + /** + * Performs Initialization + * @return None. + **/ + void Initialize(); + + + /** + * Register for Receive Object Notification + * @param aExtension, File Extension + * @return None. + **/ + void RegisterReceiveObjectNotify(const TDesC& aExtention); + + /** + * RegisterSendObjectNotify + * @return None. + **/ + void DeRegisterReceiveObjectNotify(); + + /** + * Handles Object received + * @return None. + **/ + TBool ObjectReceived(TUint32 aHandle); + +private: + /** + * C++ constructor. + * @return None. + **/ + CPtpReceivedMsgHandler(CPtpServer* aServerP); + void ConstructL(); +private: + + CPtpServer* iServerP; // not owned + + // the handle of the rceived object + TUint32 iReceiveHandle; + + TBuf iExtension; + + // transaction IDs + TUint32 iTransactionID; + + RArray iReceiveQ; + /** + FLOGGER debug trace member variable. + */ + __FLOG_DECLARATION_MEMBER_MUTABLE; + }; +#endif // CPTPRECEIVEDMSGHANDLER_H + +