smsdatagramservice.h

来自「symbian EasyDgm源程序。 symbian 源程序。」· C头文件 代码 · 共 46 行

H
46
字号
// SMSDatagramService.h
//
// Copyright (c) 2003 Symbian Ltd.  All rights reserved.
//

#ifndef __SMSDATAGRAMSERVICE_H__
#define __SMSDATAGRAMSERVICE_H__

#include <DatagramService.h>

// Forward Declarations
class CSMSSender;
class CSMSReceiver;

class CSMSDatagramService : public CDatagramService
/**
@publishedAll

	An SMS Specific Datagram Service API. 

	CSMSDatagramSerive provides a simple way of sending SMS in 7Bit format most
	universally recognised. Sending binary data is not possible without first encoding
	the data in a method which will survive being 7Bit encoded.
*/
	{	
public:
	IMPORT_C ~CSMSDatagramService();
	IMPORT_C static CDatagramService* NewL();
	
	// from CDatagramService
	IMPORT_C void SendL(CDatagram* aDatagram, TRequestStatus& aStatus);	
	IMPORT_C void ReceiveL(CDatagram* aDatagram, const TDesC8& aRecvParams, TRequestStatus& aStatus);	

private:
	void ConstructL();
		
private:	
	
	/** Encapsulating Socket based send*/
	CSMSSender* iSender;
	/** Active object encapsulating Socket based receive*/
	CSMSReceiver* iReceiver;
	};

#endif

⌨️ 快捷键说明

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