bodytexttransport.h
来自「Symbian OS C++ for Mobile Phones v3 Exam」· C头文件 代码 · 共 47 行
H
47 行
// 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 + =
减小字号Ctrl + -
显示快捷键?