亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? transportinterface.h

?? Symbian OS C++ for Mobile Phones v3 Example Code
?? H
字號:
// Copyright (c) 2004 - 2007, Symbian Software Ltd. All rights reserved.

/**
	This header file defines the UIDs for each type of transport,
	such as SMS or email; the observer interface that the client
	implements to be notified when payloads are sent or received;
	and the transport interface itself.
 */

#ifndef TRANSPORTINTERFACE_H
#define TRANSPORTINTERFACE_H

#include <ecom/ecom.h>

#include "transportinterface.hrh"


/**
	Supply this UID to CTransportInterface::NewL to connect over a serial cable.
 */
const TUid KSerialCommTransportUid = {KSerialCommTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via SMS.  The address is the remote device's telephone number as a native-width
	(i.e. 16-bit) string.
 */
const TUid KSmsTransportUid = {KSmsTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via email.  The address is the target email address.
 */
const TUid KEmailTransportUid = {KEmailTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via MMS.  The address is the remote device's telephone number as a native-width
	(i.e. 16-bit) string.  Unlike KMmsTransportUid, this UID uses the sendas
	server to contruct the multimedia message.

	@see KMmsTransportUid
 */
const TUid KMmsSendAsTransportUid = {KMmsSendAsTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via MMS.  The address is the remote device's telephone number as a native-width
	(i.e. 16-bit) string.  Unlike KMmsSendAsTransportUid, this UID uses the MMS MTM
	to contruct the multimedia message.

	@see KMmsSendAsTransportUid
 */
const TUid KMmsTransportUid = {KMmsTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via Bluetooth.  If this device should initially listen then it is a Bluetooth
	host, waiting for the client to connect.  Otherwise, it is opened as a Bluetooth
	client and the user selects the host device from a notifier.
	
	When the local device is the Bluetooth host then the address is the protocol,
	"RFCOMM" or "L2CAP".
 */
const TUid KBluetoothTransportUid = {KBluetoothTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via infrared with an emulated RS232 connection.  The address is not used.
 */
const TUid KIrCommTransportUid = {KIrCommTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via Bluetooth with an emulated RS232 connection.  The address is not used.
 */
const TUid KBtCommTransportUid = {KBtCommTransportUidValue};

/**
	Supply this UID to CTransportInterface::NewL to talk to a remote device
	via the infrared socket APIs.  The address is the protocol - "IrTinyTP" or "Irmux".
 */
const TUid KIrSocketTransportUid = {KIrSocketTransportUidValue};

class MTransportObserver
/**
	The controller implements this interface to be notified
	when payloads have been sent or received.
 */
	{
public:
	/**
		The payload has been sent successfully.  If the payload cannot
		be sent successfully, LostConnection is called and the client
		must tear down the connection.
	 */
	virtual void SentPayload() = 0;
	/**
		This device has successfully received a payload from a remote device.
		The payload has been received via the expected medium, e.g. serial
		cable or MMS.

		@param	aPayload		Payload text.  This is the text that was sent
								with CTransportInterface::SendPayload on the
								remote device.  Any extra content such as
								framing characters or ISP advertisements have
								been removed.  The payload is only valid for
								the duration of the call, so the client must
								copy the payload if they want to use it after
								the function call has finished.
	 */
	virtual void ReceivedPayload(const TDesC& aPayload) = 0;
	/**
		Called when an error has occurred on the transport.  This can
		be because a payload could not be sent or received.  This function
		can also be called because some transports such as Bluetooth maintain
		a connection throughout the game, which can be lost at any point.

		@param	aError			Any Symbian OS error code.  The implementor
								must handle unrecognized error codes.
	 */
	virtual void LostConnection(TInt aError) = 0;

	/**
		Used for Bluetooth; the local client device is searching for the
		OandX game service on the remote device.  Displays a dialog, which
		the user can cancel.

		@return					Return code from Symbian OS dialog.
								Zero (EEikCmdCanceled) means cancelled.
		@see StoppedLookingForService
	 */
	virtual TInt StartedLookingForServiceL() = 0;
	/**
		Used for Bluetooth; dismisses the dialog raised by StartedLookingForServiceL.

		@see StartedLookingForServiceL
	 */
	virtual void StoppedLookingForService() = 0;

	/**
		The local device has found the OandX game service on the remote device
		and is attempting to connect.  Displays a dialog, which the user can cancel.

		@return					Return code from Symbian OS dialog.
								Zero (EEikCmdCanceled) means cancelled.
		@see StoppedConnectingToService
	 */
	virtual TInt StartedConnectingToServiceL() = 0;
	/**
		Dismisses the dialog raised by StartedLookingForServiceL.

		@see StartedConnectingToServiceL
	 */
	virtual void StoppedConnectingToService() = 0;

	/**
		Displays a dialog while the local host device waits for a client to connect.

		@return					Return code from Symbian OS dialog.
								Zero (EEikCmdCanceled) means cancelled.
		@see StoppedWaitingForClient
	 */
	virtual TInt StartedWaitingForClientL() = 0;
	/**
		Dismisses the dialog raised by StartedWaitingForClientL.

		@see StartedWaitingForClientL
	 */
	virtual void StoppedWaitingForClient() = 0;
	};


/** Fixed length of payloads sent between devices in characters. */
const TInt KPayloadLen = 1;


class CTransportInterface : public CActive
/**
	This class is the interface which the controller instantiates via ECOM.
	It specifies the minimum interface which the controller requires to send
	and to receive payloads.
 */
	{
public:
	IMPORT_C static CTransportInterface* NewL(
		TUid aTransportUid, MTransportObserver& aObserver, const TDesC& aAddress, TBool aInitListen);
	IMPORT_C virtual ~CTransportInterface();
	
	/**
		Send a payload to the remote device.  This function is asynchronous
		and completes this AO when the payload has been sent.

		@param	aPayload		Payload text to send to remote device.
	 */
	virtual void SendPayload(const TDesC& aPayload) = 0;
	
protected:
	IMPORT_C CTransportInterface();
	
private:
	TUid iDtor_ID_Key;		///< Identifies implementation UID for ECOM cleanup.
	};

class TTransportInterfaceCreateInfo
/**
	Bundles the information passed to CTranspotInterface::NewL
	so it can be supplied as a single TAny* value when the transport
	is created via ECOM.  (ECOM factory functions can take zero
	arguments, or one TAny* argument.)
	
	This class is used by transport implementors.
 */
	{
public:
	/** Observer supplied to CTransportInterface::NewL. */
	MTransportObserver& iObserver;
	/** Address supplied to CTransportInterface::NewL. */
	const TDesC* iAddress;
	/**
		Whether this transport should start by listening for an incoming payload,
		or by waiting for the local user to send a payload.
	 */
	TBool iInitListen;
	};


// -------- debugging --------

// #define TRANSPORT_LOGGING

#ifdef TRANSPORT_LOGGING

#define TRAN_LOG0(___fmt)							TransDebugPrint((const TText16*)L##___fmt)
#define TRAN_LOG1(___fmt,___arg1)					TransDebugPrint((const TText16*)L##___fmt,___arg1)
#define TRAN_LOG2(___fmt,___arg1,___arg2)			TransDebugPrint((const TText16*)L##___fmt,___arg1,___arg2)
#define TRAN_LOG3(___fmt,___arg1,___arg2,___arg3)	TransDebugPrint((const TText16*)L##___fmt,___arg1,___arg2,___arg3)

#else

#define TRAN_LOG0(___fmt)
#define TRAN_LOG1(___fmt,___arg1)
#define TRAN_LOG2(___fmt,___arg1,___arg2)
#define TRAN_LOG3(___fmt,___arg1,___arg2,___arg3)

#endif	// #else #ifdef TRANSPORT_LOGGING

IMPORT_C void TransDebugPrint(const TText16* aFmt, ...);

#define __TRANS_ASSERT(___cond,___reason)	__ASSERT_DEBUG(___cond, TransPanic(___reason))

#endif	// #ifndef TRANSPORTINTERFACE_H

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡欧美aaaaa| 免费成人小视频| 欧美在线小视频| 亚洲综合网站在线观看| 欧美视频一区在线观看| 五月激情综合婷婷| 337p粉嫩大胆噜噜噜噜噜91av| 国产乱码精品一区二区三区忘忧草 | 亚洲高清在线精品| 欧美日韩mp4| 麻豆成人免费电影| 国产精品色一区二区三区| 99久久综合精品| 一区二区三区 在线观看视频| 欧美日韩精品福利| 国产揄拍国内精品对白| 国产精品污网站| 欧美在线观看禁18| 91精品在线免费观看| 亚洲电影激情视频网站| 久久久久国产精品麻豆| 日韩专区一卡二卡| www.成人在线| 91视频免费播放| 欧美亚洲自拍偷拍| 99久久综合精品| 一本色道久久综合亚洲91| 国产日韩欧美精品一区| 精品一区二区日韩| 欧美视频日韩视频在线观看| 亚洲欧洲精品一区二区三区 | 欧美三区在线观看| 欧美久久久久久久久| 亚洲人成精品久久久久久| 国产一区二区福利视频| 一本色道久久综合亚洲aⅴ蜜桃| 91精品综合久久久久久| 午夜精品福利一区二区三区蜜桃| 欧美一区二区精品在线| 蜜臀av一级做a爰片久久| 欧美va亚洲va香蕉在线 | 亚洲成人你懂的| 2022国产精品视频| 欧美午夜精品一区| 岛国一区二区在线观看| 日本美女视频一区二区| 亚洲欧美在线观看| 久久综合九色综合欧美亚洲| 欧美天堂亚洲电影院在线播放 | 成人午夜av电影| 免费观看30秒视频久久| 亚洲午夜日本在线观看| 国产精品美女久久久久av爽李琼| 91精品国产综合久久蜜臀| 91毛片在线观看| 国产不卡在线视频| 麻豆91免费看| 天堂蜜桃91精品| 亚洲电影一区二区三区| 亚洲同性同志一二三专区| 久久亚洲综合色一区二区三区| 欧美日韩免费一区二区三区视频| 成人精品免费网站| 国产精品一区二区三区网站| 日本网站在线观看一区二区三区| 亚洲精品va在线观看| 国产精品欧美久久久久无广告 | 极品少妇xxxx偷拍精品少妇| 欧美高清激情brazzers| 国产成人亚洲综合色影视| 国产嫩草影院久久久久| 日韩电影一二三区| 国产亚洲va综合人人澡精品| 粉嫩久久99精品久久久久久夜| 色94色欧美sute亚洲线路一久| 亚洲午夜影视影院在线观看| 久久疯狂做爰流白浆xx| 免费成人美女在线观看| 国产美女娇喘av呻吟久久| 免费人成黄页网站在线一区二区| 一区二区三区在线观看网站| 亚洲精品一线二线三线| 欧美一卡二卡三卡四卡| 在线成人免费视频| 欧美一区2区视频在线观看| 欧美日韩三级一区二区| 欧美久久一二区| 宅男在线国产精品| 欧美日韩在线精品一区二区三区激情| 91精彩视频在线| 欧美四级电影网| 91精品久久久久久蜜臀| 日韩欧美在线不卡| 久久综合九色欧美综合狠狠| 亚洲精品在线免费播放| 欧美激情在线观看视频免费| 国产嫩草影院久久久久| 亚洲精品中文在线观看| 日韩高清一级片| 欧美日韩一区二区三区在线看| 久久亚洲精品国产精品紫薇| 精品成人a区在线观看| 精品国产a毛片| 亚洲日本va午夜在线影院| 日韩女优av电影| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲日本电影在线| 国产女人18毛片水真多成人如厕| 五月天中文字幕一区二区| 久久精品欧美一区二区三区麻豆 | 日本中文字幕一区二区有限公司| 人人狠狠综合久久亚洲| 国产精品一区二区在线看| 91视频观看免费| 欧美一区二区三区视频免费| 久久久久久久久伊人| 一区二区三区在线观看网站| 日本不卡的三区四区五区| 丁香婷婷综合网| 欧美日韩不卡一区二区| 欧美极品另类videosde| 五月天中文字幕一区二区| 国产福利一区在线观看| 欧美网站一区二区| 国产欧美综合色| 欧美aaa在线| 色综合久久精品| 欧美变态tickle挠乳网站| 一区二区三区免费在线观看| 激情国产一区二区| 一本久久综合亚洲鲁鲁五月天| 91精品国产免费| 一区二区在线免费| 国产精品一区二区在线观看不卡 | 欧美精品自拍偷拍| 国产精品久久久99| 日本少妇一区二区| 91在线观看免费视频| 久久亚洲精品小早川怜子| 午夜电影一区二区| 91视频91自| 中文av一区特黄| 国产综合久久久久久久久久久久| 欧美色精品在线视频| 1000精品久久久久久久久| 国内外成人在线| 884aa四虎影成人精品一区| 成人免费在线播放视频| 国产一区在线不卡| 9191成人精品久久| 亚洲小说春色综合另类电影| av高清久久久| 国产精品理论片| 国产91精品精华液一区二区三区| 日韩精品中文字幕在线不卡尤物| 婷婷成人综合网| 欧美猛男超大videosgay| 亚洲免费在线视频一区 二区| 国产成人精品综合在线观看| 精品国产sm最大网站免费看| 久久国产精品72免费观看| 欧美一区二区在线看| 日韩精品电影在线| 欧美精品1区2区3区| 午夜一区二区三区视频| 欧美日韩美少妇| 视频在线在亚洲| 91精品免费观看| 免费美女久久99| 精品国产免费视频| 国产一区二区三区免费在线观看| 日韩欧美国产高清| 狠狠色狠狠色综合日日91app| 精品国精品自拍自在线| 韩国一区二区在线观看| www日韩大片| 国产91在线|亚洲| 国产精品第一页第二页第三页| 9i在线看片成人免费| 亚洲欧美偷拍卡通变态| 欧美在线观看视频在线| 午夜国产精品影院在线观看| 欧美一区二区三区视频免费播放 | 天天综合色天天| 制服丝袜一区二区三区| 久久精品国产一区二区| 精品福利二区三区| 成人深夜视频在线观看| 亚洲人成在线播放网站岛国| 欧美在线三级电影| 久久精品久久久精品美女| 久久久久久久精| 91论坛在线播放| 欧美aaaaa成人免费观看视频| 久久综合久久久久88| 91色.com| 男人的天堂久久精品| 26uuu欧美| 色狠狠综合天天综合综合| 美腿丝袜在线亚洲一区|