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

📄 bluetoothdefinitions.h

📁 Symbian OS 蓝牙聊天程序
💻 H
字号:
#ifndef BLUETOOTHDEFINITIONS_H_
#define BLUETOOTHDEFINITIONS_H_
#include <e32std.h>

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

const TUint KServiceClass = 0x101F6148;

_LIT(KServiceName,"EMCC Chat");
_LIT(KServiceDescription,"Bluetooth Chat 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -