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

📄 bodytexttransport.h

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

/**
	Defines the body text transport which is used as
	the base of sendas transports which support body text.
 */

#ifndef BODYTEXTTRANSPORT_H
#define BODYTEXTTRANSPORT_H

#include "messagetransport.h"


class CBodyTextTransport : public CMessageTransport
/**
	Manages a connection to the sendas server for transports
	which support body text, such as MMS and email.  This class
	also extracts the body text from incoming messages.
 */
	{
protected:
	CBodyTextTransport(MTransportObserver& aObserver, TUid aMtmUid);
	virtual ~CBodyTextTransport();
	
	void ConstructL(const TDesC& aAddress, TBool aInitListen);
	
	// partially implement CActive
	virtual void DoCancel();
	
	// partially implement CMessageTransport
	virtual void BuildAndSendMessageL(const TDesC& aPayloadText);
	virtual HBufC* ExtractPlainTextLC(CMsvStore& aStore) const;
	
	virtual void DoBuildMessageL();
	
protected:
	/** MTM used to send messages. */
	const TUid iSendMtm;
	/** Session to Send-As server. */
	RSendAs iSendAs;
	/** Subsession used to construct a single message. */
	RSendAsMessage iSendAsMessage;
	};

#endif	// #ifndef BODYTEXTTRANSPORT_H

⌨️ 快捷键说明

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