bluetoothdefinitions.h

来自「打开蓝牙」· C头文件 代码 · 共 49 行

H
49
字号
#ifndef __BLUETOOTHDEFINITIONS_H__
#define __BLUETOOTHDEFINITIONS_H__


#include <e32std.h>

/**
* Variables utilised by several classes in the Bluetooth Chat application
*/

const TUint KServiceClass = 0x0187CAC9;

_LIT(KServiceName,"cnxinshe Internet");
_LIT(KServiceDescription,"Bluetooth Internet Application");
_LIT(KServerTransportName,"RFCOMM");

const TInt KListeningQueSize = 1;
const TInt KMaxMessageLength = 60;
const TInt KMaxMessageSizeDesc16 = KMaxMessageLength * 2;


// App-wide panic code
enum TBluetoothChatPanic
    {
    EInvalidClientState,
    EInvalidServerState,
    EErrorStoppingServer,
    EErrorInNextRecordRequestComplete,
    EErrorInAttributeRequestResult,
    EErrorInAttributeRequestComplete,
    EBadAttributeValue
    };

_LIT(KBluetoothChatPanicString, "BLUETOOTHCHAT");

inline void Panic(TBluetoothChatPanic aPanicCode)
    {
    User::Panic(KBluetoothChatPanicString, (TInt)(aPanicCode));
    }


#endif // __BLUETOOTHDEFINITIONS_H__






⌨️ 快捷键说明

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