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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bluetooth.h

?? qaSDQDaca<FCSASDAVCASC SDVFDSVDF
?? H
字號:
 /*
============================================================================================
 Name		: Bluetooth.h
 Author	    : BluetoothAPI is a initiative of Embedded LAB - http://www.embedded.ufcg.edu.br/
 			  OpenC/SymbianC++ - http://efforts.embedded.ufcg.edu.br/symbiancpp	
 Version	 :
 Copyright   : This file is part of BluetoothAPI.
               Bluetooth is free software: you can redistribute it and/or modify
               it under the terms of the GNU Lesser General Public License as published by
               the Free Software Foundation, either version 3 of the License, or
               (at your option) any later version.

               BluetoothAPI is distributed in the hope that it will be useful,
               but WITHOUT ANY WARRANTY; without even the implied warranty of
               MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
               GNU Lesser General Public License for more details.

               You should have received a copy of the GNU Lesser General Public License
               along with BluetoothAPI. If not, see <http://www.gnu.org/licenses/>.
 
 Description : Bluetooth.h implementation
===========================================================================================
*/

#ifndef BLUETOOTH_H_
#define BLUETOOTH_H_

#include <vector>
using namespace std;

/**
 * Struct that contains the necessary data of a bluettoh device
 * to connect: Name, Address and Communication port number
 */
struct BTDeviceData
{
	char devName[256];
	char devAdr[32];
	unsigned int RfCommServicePort;
};

/**
 * BluetoothAPIListener
 * Inteface to listen the BluetoothAPI and notify important chages
 */
class BluetoothAPIListener
{
	public:
		
    	/**
     	* Virtual callback to notify the end of the search for devices
     	* and pass a vector data with the devices on the bluetooth network
     	* @param discoveredDeviceList, a vetor to be updated with data of devices on the network
     	*/
		virtual void devicesDiscoverFinished( vector<BTDeviceData>& discoveredDeviceList )=0;
		
    	/**
     	* Virtual callback to notify the end of the search for a specific service on the devices found
     	* and pass a vector data with the devices with that service
     	* @param discoveredServiceList, a vetor to be updated with data of devices with the desired service
     	*/
		virtual void servicesDiscoverFinished( vector<BTDeviceData>& discoveredServiceList )=0;
		
    	/**
     	* Virtual callback to notify that the device in use achieved to connect as a server
     	*/
		virtual void serverConnected()=0;
		
    	/**
     	* Virtual callback to notify that the device in use disconnected, or was disconnected, as a server
     	*/
		virtual void serverDisconnected()=0;
		
    	/**
     	* Virtual callback to notify that the device in use achieved to connect as a client
     	*/
		virtual void clientConnected()=0;
		
    	/**
     	* Virtual callback to notify that the device in use disconnected, or was disconnected, as a client
     	*/
		virtual void clientDisconnected()=0;
		
    	/**
     	* Virtual callback to notify that the device in use recieved a message and pass this message
     	* @param message, message received by the device in use
     	*/
		virtual void messageReceived( char* message)=0;
		
    	/**
     	* Virtual callback to notify that the device in use sent a message
     	*/
		virtual void messageSent()=0;
		
		/**
	    * Virtual callback to notify an error ocurred
	    * @param err, variable with the value of error occurred
	    */
		virtual void errorOcurred(int err)=0;
};

//CLASS DECLARATIONS
/**
 * BluetoothAPI class.
 * Provides an easy use of the bluetooth available resources
 */
class BluetoothAPI
{
public: //public members
	
	/**
	* Class constructor
	* @param listener, pointer of a user class to be notified when changes occur
	* @return a BluetoothAPI pointer
	*/
	IMPORT_C static BluetoothAPI* create(  BluetoothAPIListener *listener );
	
	/**
	* This function starts the search for bluetooth devices in the area
	*/
	IMPORT_C void searchDevices();
	
	/**
	* This function starts the search for a specific service on the found devices
	* @param BTServiceUUID, short-form identifier of the service to be searched
	*/
	IMPORT_C void searchServices(unsigned long int BTServiceUUID);
	
	/**
	* This function starts the search for a specific service on the found devices
    * @param BTServiceUUID1, highest part of identifier of the service to be searched
	* @param BTServiceUUID2, second highest part of identifier of the service to be searched
	* @param BTServiceUUID3, second lowest part of identifier of the service to be searched
	* @param BTServiceUUID4, lowest part of identifier of the service to be searched
	*/
	IMPORT_C void searchServices(unsigned long int BTServiceUUID1,
			unsigned long int BTServiceUUID2, unsigned long int BTServiceUUID3,
			unsigned long int BTServiceUUID4);
	
	/**
	* This function connects the device to a server of the device passed as parameter
	* @param deviceData, data of the device with user wants to connect
	*/
	IMPORT_C void connectToServer(BTDeviceData deviceData);
	
	/**
	* This function starts the server advetising of a specific service
	* @param BTServiceUUID,  short-form identifier of the service to be advertised
	* @param BTServiceName, name of de service advertised
	*/
	IMPORT_C void startAdvertising(unsigned long int BTServiceUUID,
			char* BTServiceName );
	
	/**
	* This function starts the server advetising of a specific service
	* @param BTServiceUUID1, highest part of identifier of the service to be advertised
	* @param BTServiceUUID2, second highest part of identifier of the service to be advertised
	* @param BTServiceUUID3, second lowest part of identifier of the service to be advertised
	* @param BTServiceUUID4, lowest part of identifier of the service to be advertised
	* @param BTServiceName, name of de service advertised
	*/
	IMPORT_C void startAdvertising(unsigned long int BTServiceUUID1,
			unsigned long int BTServiceUUID2, unsigned long int BTServiceUUID3,
			unsigned long int BTServiceUUID4, char* BTServiceName );

	/**
	* This function stops a server connection or the advertising of a service, 
	* must be called when the application is closed, otherwise the advertising will
	* continue with the application closed
	*/
	IMPORT_C void stopServerAndAdvertising();
	
	/**
	* This class closes the connection to the server, if the device in use is the client
	*/
	IMPORT_C void disconnectAsClient();
	
	/**
	* This class gives access to the list of founded devices
	* @return a vector with data of the founded devices
	*/
	IMPORT_C vector<BTDeviceData>& foundDevicesList();
	
	/**
	* This class gives access to the list of devices with the searched service
	* @return a vector with data of the devices with the searched service
	*/
	IMPORT_C vector<BTDeviceData>& foundServicesList();
	
	/**
    * Class destructor
    */
	IMPORT_C virtual ~BluetoothAPI();
	
	/**
	* This function sends a message to the device connected with the device in use,
	* The first message must be sent by the client, then the client and server must
	* alternate in sending messages.
	* @param message, message to be sent
	*/
	IMPORT_C void sendMessage(char* message);
	
};

#endif /* BLUETOOTH_H_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久一级片| 麻豆一区二区在线| 美日韩黄色大片| 波多野结衣一区二区三区 | 欧美日韩国产中文| 中文字幕第一区二区| 麻豆91精品视频| 欧美日韩在线电影| 亚洲欧美国产高清| 成人app网站| 国产亚洲欧美日韩日本| 精品一区二区三区视频在线观看 | 久久精品人人做人人综合| 丝袜亚洲另类丝袜在线| 91免费观看国产| 国产精品久久国产精麻豆99网站| 国产一区二区三区精品欧美日韩一区二区三区 | 日韩午夜激情视频| 亚洲成人免费视| 91久久香蕉国产日韩欧美9色| 国产精品伦一区| 粗大黑人巨茎大战欧美成人| 久久综合色8888| 九九精品视频在线看| 日韩欧美国产不卡| 久久精品国产第一区二区三区| 884aa四虎影成人精品一区| 亚洲国产一二三| 欧美视频精品在线观看| 亚洲一区二区av在线| 欧美在线影院一区二区| 亚洲国产日韩精品| 欧美精品视频www在线观看| 亚洲国产精品一区二区www| 欧美性猛交xxxx乱大交退制版| 亚洲精品v日韩精品| 欧美制服丝袜第一页| 爽好久久久欧美精品| 欧美一区二区三区视频在线观看| 日韩av中文字幕一区二区| 日韩欧美一区二区免费| 狠狠色狠狠色综合日日91app| 久久人人超碰精品| 国产成人精品免费视频网站| 国产精品久久99| 欧美日韩欧美一区二区| 久久激情综合网| 国产色婷婷亚洲99精品小说| 99久久婷婷国产综合精品| 亚洲韩国一区二区三区| 日韩午夜在线观看视频| 成人深夜在线观看| 亚洲一区精品在线| 日韩欧美中文一区| 成人激情图片网| 午夜电影久久久| wwwwxxxxx欧美| 成人国产精品免费观看视频| 亚洲综合一区二区| 精品精品国产高清a毛片牛牛| 国产美女一区二区| 亚洲人成伊人成综合网小说| 欧美亚洲尤物久久| 国产精品伊人色| 亚洲亚洲精品在线观看| 久久久久久毛片| 欧美揉bbbbb揉bbbbb| 国产夫妻精品视频| 亚洲电影一区二区三区| 亚洲国产精品精华液2区45| 欧美性一二三区| 国产精品一区二区久久精品爱涩| 一区二区三区免费看视频| 欧美成人一区二区| 在线中文字幕一区| 国产福利精品一区二区| 日日夜夜精品视频天天综合网| 国产三级精品在线| 正在播放亚洲一区| 91一区一区三区| 国产一区91精品张津瑜| 视频一区免费在线观看| 自拍偷拍亚洲欧美日韩| 精品福利一二区| 在线观看91精品国产麻豆| 99精品国产视频| 国产精品一区二区三区四区| 天天av天天翘天天综合网| 国产精品福利av| 国产免费成人在线视频| 日韩欧美一级二级三级久久久| 91免费观看在线| 丁香激情综合国产| 国产一区二区不卡老阿姨| 免费在线看一区| 天堂蜜桃一区二区三区| 亚洲一区二区三区美女| 国产精品国产三级国产普通话蜜臀 | 国产精品色一区二区三区| 欧美videos大乳护士334| 欧美精选一区二区| 欧美性色黄大片| 欧美三级视频在线| 欧美午夜电影在线播放| 日本韩国欧美在线| 色噜噜狠狠色综合中国| 91香蕉视频在线| av中文字幕在线不卡| 成人午夜在线视频| 成人av网站免费| av在线一区二区| 成人国产在线观看| 97久久人人超碰| 色婷婷狠狠综合| 欧洲一区二区三区在线| 欧美日韩国产综合草草| 欧美一区二区三区在线看| 欧美一区二区三区视频免费播放 | 欧美日韩成人综合天天影院 | 一本色道a无线码一区v| 91免费国产视频网站| 日本道精品一区二区三区| 欧美日韩免费视频| 日韩一区二区三区av| 日韩精品一区二区三区中文精品| 久久综合色之久久综合| 国产精品女同互慰在线看| 亚洲色图欧洲色图婷婷| 亚洲精品欧美在线| 五月综合激情日本mⅴ| 美女视频网站黄色亚洲| 高清日韩电视剧大全免费| 99久久综合狠狠综合久久| 欧美羞羞免费网站| 日韩精品一区二区三区四区| 久久一区二区三区国产精品| 国产精品国产三级国产aⅴ中文| 樱桃国产成人精品视频| 婷婷成人综合网| 国产精品资源在线观看| 91一区二区在线| 欧美精品v日韩精品v韩国精品v| 精品国内二区三区| 亚洲女同女同女同女同女同69| 五月婷婷欧美视频| 国产成人自拍网| 欧美日韩精品一区二区| 久久嫩草精品久久久精品一| 亚洲美女淫视频| 激情综合亚洲精品| 一本久久精品一区二区| 日韩一区二区精品在线观看| 国产精品日产欧美久久久久| 午夜精品爽啪视频| 成人三级伦理片| 91精品国产一区二区三区| 国产精品美日韩| 青青草一区二区三区| a美女胸又www黄视频久久| 欧美成人激情免费网| 亚洲美女区一区| 成人网页在线观看| 欧美videossexotv100| 亚洲国产欧美日韩另类综合| 国产一区二区三区四| 91精品在线免费观看| 亚洲欧美日韩综合aⅴ视频| 韩国精品主播一区二区在线观看| 欧美午夜寂寞影院| 1区2区3区国产精品| 狠狠色狠狠色综合系列| 欧美丰满美乳xxx高潮www| 国产精品久久久久久户外露出| 麻豆专区一区二区三区四区五区| 91国产免费观看| 中文字幕日韩av资源站| 国产成人综合亚洲91猫咪| 日韩亚洲欧美中文三级| 亚洲sss视频在线视频| 色域天天综合网| 亚洲视频一二区| 不卡电影免费在线播放一区| 久久免费午夜影院| 久草精品在线观看| 欧美一区二区三区视频免费播放| 亚洲一区二区四区蜜桃| 日本高清无吗v一区| 亚洲日本一区二区三区| 不卡电影免费在线播放一区| 中文字幕第一区二区| 成人sese在线| 欧美国产激情二区三区| 大尺度一区二区| 国产精品黄色在线观看| fc2成人免费人成在线观看播放| 国产无一区二区| 成人美女视频在线观看| 中文字幕第一区第二区| 99riav一区二区三区| 亚洲视频资源在线|