📄 bluetoothserviceadvertiser.h.svn-base
字号:
/*
============================================================================================
Name : BluetoothServiceAdvertiser.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 : BluetoothServiceAdvertiser.h implementation
===========================================================================================
*/
#ifndef BLUETOOTHSERVICEADVERTISER_H
#define BLUETOOTHSERVICEADVERTISER_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <btsdp.h>
#include <bt_sock.h>
// CLASS DECLARATION
/**
* CBluetoothServiceAdvertiser
*
*/
class CBluetoothServiceAdvertiser : public CBase
{
public: // Constructors and destructor
/**
* Destructor.
*/
~CBluetoothServiceAdvertiser();
/**
* Two-phased constructor.
*/
static CBluetoothServiceAdvertiser* NewL();
/**
* Two-phased constructor.
*/
static CBluetoothServiceAdvertiser* NewLC();
void StartAdvertisingL(TInt aChannel, TUint32 aBTServiceUUID, TDesC16 aBTServiceName );
void StartAdvertisingL(TInt aChannel, TUint32 aBTServiceUUID1,
TUint32 aBTServiceUUID2, TUint32 aBTServiceUUID3,
TUint32 aBTServiceUUID4, TDesC16 aBTServiceName );
void StopAdvertisingL();
private:
/**
* Constructor for performing 1st stage construction
*/
CBluetoothServiceAdvertiser();
/**
* EPOC default constructor for performing 2nd stage construction
*/
void ConstructL();
RSdp iSdp;
RSdpDatabase iSdpDatabase;
TSdpServRecordHandle iSdpServRecordHandle;
TUUID ServiceSerach;
};
#endif // BLUETOOTHSERVICEADVERTISER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -