![]() |
QBluetoothZero
2.0
|
00001 /* 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS, 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 00016 #ifndef QBTCONSTANTS_H 00017 #define QBTCONSTANTS_H 00018 00019 #include <QBtGlobal.h> 00020 00021 QBT_NAMESPACE_BEGIN 00022 00026 class DLL_EXPORT QBtConstants : public QObject 00027 { 00028 Q_OBJECT 00029 Q_ENUMS(ServiceClass) 00030 Q_ENUMS(ServiceProtocol) 00031 public: 00032 00036 enum ServiceClass 00037 { 00038 UndefinedClass = 0x0000, 00039 SerialPort = 0x1101, 00040 LANAccessUsingPPP, 00041 DialupNetworking, 00042 IrMCSync, 00043 OBEXObjectPush, 00044 OBEXFileTransfer, 00045 IrMCSyncCommand, 00046 Headset, 00047 CordlessTelephony, 00048 AudioSource, 00049 AudioSink, 00050 RemoteControlTarget, 00051 AdvancedAudioDistribution, 00052 AV_RemoteControl, 00053 VideoConferencing, 00054 Intercom, 00055 Fax, 00056 HeadsetAudioGateway, 00057 WAP, 00058 WAP_CLIENT, 00059 PANU, 00060 NAP, 00061 GN, 00062 DirectPrinting, 00063 ReferencePrinting, 00064 Imaging, 00065 ImagingResponder, 00066 ImagingAutomaticArchive, 00067 ImagingReferencedObjects, 00068 Handsfree, 00069 HandsfreeAudioGateway, 00070 DirectPrintingReferenceObjectsService, 00071 ReflectedUI, 00072 BasicPrinting, 00073 PrintingStatus, 00074 HumanInterfaceDeviceService, 00075 HardcopyCableReplacement, 00076 HCR_Print, 00077 HCR_Scan, 00078 Common_ISDN_Access, 00079 VideoConferencingGW, 00080 UDI_MT, 00081 UDI_TA, 00082 Audio_Video, 00083 SIM_Access, 00084 PnPInformation, 00085 GenericNetworking, 00086 GenericFileTransfer, 00087 GenericAudio, 00088 GenericTelephony, 00089 UPNP_Service, 00090 UPNP_IP_Service, 00091 ESDP_UPNP_IP_PAN, 00092 ESDP_UPNP_IP_LAP, 00093 ESDP_UPNP_L2CAP, 00094 00095 MY_CUSTOM = 0x10ff 00096 }; 00097 00098 00102 enum ServiceProtocol 00103 { 00104 UndefinedProtocol = 0x0000, 00105 SDP, 00106 UDP, 00107 RFCOMM, 00108 TCP, 00109 TCS_BIN, 00110 TCS_AT, 00111 OBEX = 0x0008, 00112 IP, 00113 FTP, 00114 HTTP = 0x000C, 00115 WSP = 0x000E, 00116 BNEP, 00117 UPNP, 00118 HIDP, 00119 HardcopyControlChannel, 00120 HardcopyDataChannel = 0x0014, 00121 HardcopyNotification = 0x0016, 00122 AVCTP, 00123 AVDTP = 0x0019, 00124 CMPT = 0x001B, 00125 UDI_C_Plane = 0x001D, 00126 L2CAP = 0x0100 00127 }; 00128 }; 00129 00130 QBT_NAMESPACE_END 00131 00132 Q_DECLARE_METATYPE(QBT_PREPEND_NAMESPACE(QBtConstants::ServiceClass)) 00133 Q_DECLARE_METATYPE(QBT_PREPEND_NAMESPACE(QBtConstants::ServiceProtocol)) 00134 00135 #endif // QBTCONSTANTS_H