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

📄 btdevice.h

📁 1、手持设备的机器人--服务器端; 2、通过蓝牙通讯;
💻 H
字号:
#ifndef BTDEVICE_
#define BTDEVICE_

/*
 * Copyright (c) 2004-2005 Mobile Robotics
 * http://mobilerobotics.sf.net
 *
 * File: BtDevice.h
 * Author: Johan Johanson
 * Date: January 20, 2005
 * Updated: January 20, 2005
 *
 * Description: Encapsulates information about a Bluetooth device (local or remote)
 *
*/

#include <PalmOS.h>
#include <BtLib.h>

class BtDevice
{
	friend class BtBase;
	friend class BtServerBase;
	friend class BtRFCOMMServer;
	
public:
	BtDevice();
	~BtDevice();
	
public:
	BtLibSocketRef getSocket();
	
	BtLibDeviceAddressType *getAddress();
	BtLibFriendlyNameType *getFriendlyName();
	
	UInt32 getAccessibility();
	UInt32 getClassOfDevice();
		
private:
	BtLibSocketRef socket;
	
	BtLibDeviceAddressType address;
	BtLibFriendlyNameType friendlyName;
	
	UInt32 accessibility;
	UInt32 classOfDevice;
};

#endif

⌨️ 快捷键说明

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