QBtConstants.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef QBTCONSTANTS_H
  16. #define QBTCONSTANTS_H
  17. #include <QBtGlobal.h>
  18. QBT_NAMESPACE_BEGIN
  19. /**
  20. * Basic enumerations of bluetooth UUIDs
  21. */
  22. class DLL_EXPORT QBtConstants : public QObject
  23. {
  24. Q_OBJECT
  25. Q_ENUMS(ServiceClass)
  26. Q_ENUMS(ServiceProtocol)
  27. public:
  28. /**
  29. * Short UUIDs for standard services, as unsigned integers.
  30. */
  31. enum ServiceClass
  32. {
  33. UndefinedClass = 0x0000,
  34. SerialPort = 0x1101,
  35. LANAccessUsingPPP,
  36. DialupNetworking,
  37. IrMCSync,
  38. OBEXObjectPush,
  39. OBEXFileTransfer,
  40. IrMCSyncCommand,
  41. Headset,
  42. CordlessTelephony,
  43. AudioSource,
  44. AudioSink,
  45. RemoteControlTarget,
  46. AdvancedAudioDistribution,
  47. AV_RemoteControl,
  48. VideoConferencing,
  49. Intercom,
  50. Fax,
  51. HeadsetAudioGateway,
  52. WAP,
  53. WAP_CLIENT,
  54. PANU,
  55. NAP,
  56. GN,
  57. DirectPrinting,
  58. ReferencePrinting,
  59. Imaging,
  60. ImagingResponder,
  61. ImagingAutomaticArchive,
  62. ImagingReferencedObjects,
  63. Handsfree,
  64. HandsfreeAudioGateway,
  65. DirectPrintingReferenceObjectsService,
  66. ReflectedUI,
  67. BasicPrinting,
  68. PrintingStatus,
  69. HumanInterfaceDeviceService,
  70. HardcopyCableReplacement,
  71. HCR_Print,
  72. HCR_Scan,
  73. Common_ISDN_Access,
  74. VideoConferencingGW,
  75. UDI_MT,
  76. UDI_TA,
  77. Audio_Video,
  78. SIM_Access,
  79. PnPInformation,
  80. GenericNetworking,
  81. GenericFileTransfer,
  82. GenericAudio,
  83. GenericTelephony,
  84. UPNP_Service,
  85. UPNP_IP_Service,
  86. ESDP_UPNP_IP_PAN,
  87. ESDP_UPNP_IP_LAP,
  88. ESDP_UPNP_L2CAP,
  89. MY_CUSTOM = 0x10ff
  90. };
  91. /**
  92. * Short UUIDs for standard protocols.
  93. */
  94. enum ServiceProtocol
  95. {
  96. UndefinedProtocol = 0x0000,
  97. SDP,
  98. UDP,
  99. RFCOMM,
  100. TCP,
  101. TCS_BIN,
  102. TCS_AT,
  103. OBEX = 0x0008,
  104. IP,
  105. FTP,
  106. HTTP = 0x000C,
  107. WSP = 0x000E,
  108. BNEP,
  109. UPNP,
  110. HIDP,
  111. HardcopyControlChannel,
  112. HardcopyDataChannel = 0x0014,
  113. HardcopyNotification = 0x0016,
  114. AVCTP,
  115. AVDTP = 0x0019,
  116. CMPT = 0x001B,
  117. UDI_C_Plane = 0x001D,
  118. L2CAP = 0x0100
  119. };
  120. };
  121. QBT_NAMESPACE_END
  122. Q_DECLARE_METATYPE(QBT_PREPEND_NAMESPACE(QBtConstants::ServiceClass))
  123. Q_DECLARE_METATYPE(QBT_PREPEND_NAMESPACE(QBtConstants::ServiceProtocol))
  124. #endif // QBTCONSTANTS_H