common.h

来自「symbian系统下」· C头文件 代码 · 共 41 行

H
41
字号
/*
* ============================================================================
*  Name     : Common.h
*  Part of  : BluetoothPMPExample
*  Created  : 06.06.2006 by Forum Nokia
*  Description:
*     Common definitions
*  Version  :
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef COMMON_H
#define COMMON_H

#include <e32base.h>
#include <es_sock.h>
#include <bttypes.h>

// structure that will hold the info about the remote device
struct TDeviceData
	{
	THostName iDeviceName;
	TBTDevAddr iDeviceAddr;
	TUint iDeviceServicePort;
	};

// for ease of use and clarity, the type definition for device data list
typedef RPointerArray<TDeviceData> TDeviceDataList;

// the service id that identifies our service.  this id will be 
// used when advertising the service and discovering the service.
#define KBT_serviceID 0x10ff

// passed to RSocket::Listen, the size of listen queue
const TInt KSizeOfListenQueue = 5; 
_LIT(KRfComm,"RFCOMM");

#endif

⌨️ 快捷键说明

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