// Copyright (c) 2006-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 CMTPSENDOBJECTINFO_H
#define CMTPSENDOBJECTINFO_H
#include "cmtprequestprocessor.h"
#include "mmtptransactionproxy.h"
#include "rmtpframework.h"
#include "rmtpproxydpsingletons.h"
#include "mtpdebug.h"
class CMTPTypeObjectInfo;
class MMTPRequestProcessor;
/**
Implements proxy data provider SendObjectInfo request processor
@internalComponent
*/
class CMTPSendObjectInfo : public CMTPRequestProcessor, public MMTPTransactionProxy
{
public:
static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
~CMTPSendObjectInfo();
private: // From CMTPRequestProcessor
void ServiceL();
TBool DoHandleResponsePhaseL();
TBool HasDataphase() const;
private:
CMTPSendObjectInfo(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
void ConstructL();
private: // From MMTPTransactionProxy
void ProxyReceiveDataL(MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
void ProxySendDataL(const MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
void ProxySendResponseL(const TMTPTypeResponse& aResponse, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus);
void ProxyTransactionCompleteL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection);
private:
void DoHandleSendObjectInfoCompleteL();
private:
CMTPTypeObjectInfo* iObjectInfo;
TMTPTypeResponse iResponse;
RMTPFramework iSingletons;
RMTPProxyDpSingletons iProxyDpSingletons;
/**
FLOGGER debug trace member variable.
*/
__FLOG_DECLARATION_MEMBER_MUTABLE;
};
#endif // CMTPSENDOBJECTINFO_H