btcon_sdpmanager.h
来自「C++实现的BlueTooth」· C头文件 代码 · 共 64 行
H
64 行
/*****************************************************************************
COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2005.
The software is the copyrighted work of Sony Ericsson Mobile Communications AB.
The use of the software is subject to the terms of the end-user license
agreement which accompanies or is included with the software. The software is
provided "as is" and Sony Ericsson specifically disclaim any warranty or
condition whatsoever regarding merchantability or fitness for a specific
purpose, title or non-infringement. No warranty of any kind is made in
relation to the condition, suitability, availability, accuracy, reliability,
merchantability and/or non-infringement of the software provided herein.
*****************************************************************************/
#ifndef __BTCON_SDPMANAGER_H__
#define __BTCON_SDPMANAGER_H__
class CSdpManager : public CBase
{
public:
static CSdpManager* NewL();
static CSdpManager* NewLC();
~CSdpManager();
TBool IsAdvertising() { return iRecordHandle != 0; }
void ConnectAndSetToSdpL(TInt aChannel);
void StopConnectionToSdpL();
void UpdateAvailabilityL(TBool aIsAvailable);
private:
CSdpManager();
void ConstructL();
private:
// is connected to the SDP database
TBool iIsConnected;
RSdp iSdp;
RSdpDatabase iSdpDatabase;
// service record handle for this server
TSdpServRecordHandle iRecordHandle;
TInt iRecordState;
};
#endif __BTCON_SDPMANAGER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?