⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmssendastransport.h

📁 Symbian OS C++ for Mobile Phones Volume 3 源码
💻 H
字号:
// Copyright (c) 2004 - 2007, Symbian Software Ltd. All rights reserved.

/**
	Datatypes used to send an MMS with the sendas framework.
 */

#ifndef MMSSENDASTRANSPORT_H
#define MMSSENDASTRANSPORT_H

#include "mmsutils.h"
#include "messagetransport.h"


class CMmsSendAsTransport : public CMessageTransport
/**
	Sends multimedia messages to a remote device using the sendas server.
 */
	{
public:
	static CMmsSendAsTransport* NewL(TAny* aTransportCreateInfo);
	virtual ~CMmsSendAsTransport();
	
private:
	static CMmsSendAsTransport* New2L(MTransportObserver& aObserver, const TDesC& aAddress, TBool aInitListen);
	CMmsSendAsTransport(MTransportObserver& aObserver);
	void ConstructL(const TDesC& aAddress, TBool aInitListen);
	
	// override CMessageTransport
	virtual void DoCancel();
	// override CTransport
	virtual void RunL();
	
	// implement CMessageTransport
	virtual void BuildAndSendMessageL(const TDesC& aPayloadText);
	virtual TBool ShouldUseReceivedMtmUid(TUid aMtmUid) const;
	virtual HBufC* ExtractPlainTextLC(CMsvStore& aStore) const;
	
private:
	/** Session to file server, used for attachment operations. */
	RFs iFs;
	/** Session to Send-As server. */
	RSendAs iSendAs;
	/** Subsession used to construct a single message. */
	RSendAsMessage iSendAsMessage;
	
	enum TState
	/** Set of valid states for this object. */
		{
		EStWaitingToBuild,		///< Waiting to be asked to construct a message.
		EStAddingImage,			///< Adding image file attachment.
		EStSending				///< Sending the message.
		};
	/** This object's current state. */
	TState iState;
	};

#endif	// #ifndef MMSSENDASTRANSPORT_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -