2
0

OPL_Db.3 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. .TH "OPL::Db" 3 "Tue Aug 9 2022" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. OPL::Db
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Variables"
  10. .in +1c
  11. .ti -1c
  12. .RI "const auto \fBTABLE_FLIGHTS\fP = QStringLiteral('flights')"
  13. .br
  14. .ti -1c
  15. .RI "const auto \fBTABLE_PILOTS\fP = QStringLiteral('pilots')"
  16. .br
  17. .ti -1c
  18. .RI "const auto \fBTABLE_TAILS\fP = QStringLiteral('tails')"
  19. .br
  20. .ti -1c
  21. .RI "const auto \fBTABLE_AIRCRAFT\fP = QStringLiteral('aircraft')"
  22. .br
  23. .ti -1c
  24. .RI "const auto \fBTABLE_AIRPORTS\fP = QStringLiteral('airports')"
  25. .br
  26. .ti -1c
  27. .RI "const auto \fBTABLE_CURRENCIES\fP = QStringLiteral('currencies')"
  28. .br
  29. .ti -1c
  30. .RI "const auto \fBTABLE_SIMULATORS\fP = QStringLiteral('simulators')"
  31. .br
  32. .ti -1c
  33. .RI "const auto \fBFLIGHTS_ROWID\fP = QStringLiteral('flight_id')"
  34. .br
  35. .ti -1c
  36. .RI "const auto \fBFLIGHTS_DOFT\fP = QStringLiteral('doft')"
  37. .br
  38. .ti -1c
  39. .RI "const auto \fBFLIGHTS_DEPT\fP = QStringLiteral('dept')"
  40. .br
  41. .ti -1c
  42. .RI "const auto \fBFLIGHTS_DEST\fP = QStringLiteral('dest')"
  43. .br
  44. .ti -1c
  45. .RI "const auto \fBFLIGHTS_TOFB\fP = QStringLiteral('tofb')"
  46. .br
  47. .ti -1c
  48. .RI "const auto \fBFLIGHTS_TONB\fP = QStringLiteral('tonb')"
  49. .br
  50. .ti -1c
  51. .RI "const auto \fBFLIGHTS_PIC\fP = QStringLiteral('pic')"
  52. .br
  53. .ti -1c
  54. .RI "const auto \fBFLIGHTS_ACFT\fP = QStringLiteral('acft')"
  55. .br
  56. .ti -1c
  57. .RI "const auto \fBFLIGHTS_TBLK\fP = QStringLiteral('tblk')"
  58. .br
  59. .ti -1c
  60. .RI "const auto \fBFLIGHTS_TSPSE\fP = QStringLiteral('tSPSE')"
  61. .br
  62. .ti -1c
  63. .RI "const auto \fBFLIGHTS_TSPME\fP = QStringLiteral('tSPME')"
  64. .br
  65. .ti -1c
  66. .RI "const auto \fBFLIGHTS_TMP\fP = QStringLiteral('tMP')"
  67. .br
  68. .ti -1c
  69. .RI "const auto \fBFLIGHTS_TNIGHT\fP = QStringLiteral('tNIGHT')"
  70. .br
  71. .ti -1c
  72. .RI "const auto \fBFLIGHTS_TIFR\fP = QStringLiteral('tIFR')"
  73. .br
  74. .ti -1c
  75. .RI "const auto \fBFLIGHTS_TPIC\fP = QStringLiteral('tPIC')"
  76. .br
  77. .ti -1c
  78. .RI "const auto \fBFLIGHTS_TPICUS\fP = QStringLiteral('tPICUS')"
  79. .br
  80. .ti -1c
  81. .RI "const auto \fBFLIGHTS_TSIC\fP = QStringLiteral('tSIC')"
  82. .br
  83. .ti -1c
  84. .RI "const auto \fBFLIGHTS_TDUAL\fP = QStringLiteral('tDUAL')"
  85. .br
  86. .ti -1c
  87. .RI "const auto \fBFLIGHTS_TFI\fP = QStringLiteral('tFI')"
  88. .br
  89. .ti -1c
  90. .RI "const auto \fBFLIGHTS_TSIM\fP = QStringLiteral('tSIM')"
  91. .br
  92. .ti -1c
  93. .RI "const auto \fBFLIGHTS_PILOTFLYING\fP = QStringLiteral('pilotFlying')"
  94. .br
  95. .ti -1c
  96. .RI "const auto \fBFLIGHTS_TODAY\fP = QStringLiteral('toDay')"
  97. .br
  98. .ti -1c
  99. .RI "const auto \fBFLIGHTS_TONIGHT\fP = QStringLiteral('toNight')"
  100. .br
  101. .ti -1c
  102. .RI "const auto \fBFLIGHTS_LDGDAY\fP = QStringLiteral('ldgDay')"
  103. .br
  104. .ti -1c
  105. .RI "const auto \fBFLIGHTS_LDGNIGHT\fP = QStringLiteral('ldgNight')"
  106. .br
  107. .ti -1c
  108. .RI "const auto \fBFLIGHTS_AUTOLAND\fP = QStringLiteral('autoland')"
  109. .br
  110. .ti -1c
  111. .RI "const auto \fBFLIGHTS_SECONDPILOT\fP = QStringLiteral('secondPilot')"
  112. .br
  113. .ti -1c
  114. .RI "const auto \fBFLIGHTS_THIRDPILOT\fP = QStringLiteral('thirdPilot')"
  115. .br
  116. .ti -1c
  117. .RI "const auto \fBFLIGHTS_APPROACHTYPE\fP = QStringLiteral('approachType')"
  118. .br
  119. .ti -1c
  120. .RI "const auto \fBFLIGHTS_FLIGHTNUMBER\fP = QStringLiteral('flightNumber')"
  121. .br
  122. .ti -1c
  123. .RI "const auto \fBFLIGHTS_REMARKS\fP = QStringLiteral('remarks')"
  124. .br
  125. .ti -1c
  126. .RI "const auto \fBTAILS_ROWID\fP = QStringLiteral('tail_id')"
  127. .br
  128. .ti -1c
  129. .RI "const auto \fBTAILS_REGISTRATION\fP = QStringLiteral('registration')"
  130. .br
  131. .ti -1c
  132. .RI "const auto \fBTAILS_COMPANY\fP = QStringLiteral('company')"
  133. .br
  134. .ti -1c
  135. .RI "const auto \fBTAILS_MAKE\fP = QStringLiteral('make')"
  136. .br
  137. .ti -1c
  138. .RI "const auto \fBTAILS_MODEL\fP = QStringLiteral('model')"
  139. .br
  140. .ti -1c
  141. .RI "const auto \fBTAILS_VARIANT\fP = QStringLiteral('variant')"
  142. .br
  143. .ti -1c
  144. .RI "const auto \fBTAILS_MULTIPILOT\fP = QStringLiteral('multipilot')"
  145. .br
  146. .ti -1c
  147. .RI "const auto \fBTAILS_MULTIENGINE\fP = QStringLiteral('multiengine')"
  148. .br
  149. .ti -1c
  150. .RI "const auto \fBTAILS_ENGINETYPE\fP = QStringLiteral('engineType')"
  151. .br
  152. .ti -1c
  153. .RI "const auto \fBTAILS_WEIGHTCLASS\fP = QStringLiteral('weightClass')"
  154. .br
  155. .ti -1c
  156. .RI "const auto \fBPILOTS_ROWID\fP = QStringLiteral('pilot_id')"
  157. .br
  158. .ti -1c
  159. .RI "const auto \fBPILOTS_LASTNAME\fP = QStringLiteral('lastname')"
  160. .br
  161. .ti -1c
  162. .RI "const auto \fBPILOTS_FIRSTNAME\fP = QStringLiteral('firstname')"
  163. .br
  164. .ti -1c
  165. .RI "const auto \fBPILOTS_ALIAS\fP = QStringLiteral('alias')"
  166. .br
  167. .ti -1c
  168. .RI "const auto \fBPILOTS_COMPANY\fP = QStringLiteral('company')"
  169. .br
  170. .ti -1c
  171. .RI "const auto \fBPILOTS_EMPLOYEEID\fP = QStringLiteral('employeeid')"
  172. .br
  173. .ti -1c
  174. .RI "const auto \fBPILOTS_PHONE\fP = QStringLiteral('phone')"
  175. .br
  176. .ti -1c
  177. .RI "const auto \fBPILOTS_EMAIL\fP = QStringLiteral('email')"
  178. .br
  179. .ti -1c
  180. .RI "const auto \fBCURRENCIES_EXPIRYDATE\fP = QStringLiteral('expiryDate')"
  181. .br
  182. .ti -1c
  183. .RI "const auto \fBCURRENCIES_CURRENCYNAME\fP = QStringLiteral('currencyName')"
  184. .br
  185. .ti -1c
  186. .RI "const auto \fBSIMULATORS_ROWID\fP = QStringLiteral('session_id')"
  187. .br
  188. .ti -1c
  189. .RI "const auto \fBSIMULATORS_DATE\fP = QStringLiteral('date')"
  190. .br
  191. .ti -1c
  192. .RI "const auto \fBSIMULATORS_TIME\fP = QStringLiteral('totalTime')"
  193. .br
  194. .ti -1c
  195. .RI "const auto \fBSIMULATORS_TYPE\fP = QStringLiteral('deviceType')"
  196. .br
  197. .ti -1c
  198. .RI "const auto \fBSIMULATORS_ACFT\fP = QStringLiteral('aircraftType')"
  199. .br
  200. .ti -1c
  201. .RI "const auto \fBSIMULATORS_REG\fP = QStringLiteral('registration')"
  202. .br
  203. .ti -1c
  204. .RI "const auto \fBSIMULATORS_REMARKS\fP = QStringLiteral('remarks')"
  205. .br
  206. .ti -1c
  207. .RI "const auto \fBAIRPORTS_ICAO\fP = QStringLiteral('icao')"
  208. .br
  209. .ti -1c
  210. .RI "const auto \fBAIRPORTS_IATA\fP = QStringLiteral('iata')"
  211. .br
  212. .ti -1c
  213. .RI "const auto \fBAIRPORTS_NAME\fP = QStringLiteral('name')"
  214. .br
  215. .ti -1c
  216. .RI "const auto \fBAIRPORTS_LAT\fP = QStringLiteral('lat')"
  217. .br
  218. .ti -1c
  219. .RI "const auto \fBAIRPORTS_LON\fP = QStringLiteral('long')"
  220. .br
  221. .ti -1c
  222. .RI "const auto \fBAIRPORTS_COUNTRY\fP = QStringLiteral('country')"
  223. .br
  224. .ti -1c
  225. .RI "const auto \fBAIRPORTS_ALTITIDUE\fP = QStringLiteral('alt')"
  226. .br
  227. .ti -1c
  228. .RI "const auto \fBAIRPORTS_UTC_OFFSET\fP = QStringLiteral('utcoffset')"
  229. .br
  230. .ti -1c
  231. .RI "const auto \fBAIRPORTS_TZ_OLSON\fP = QStringLiteral('tzolson')"
  232. .br
  233. .ti -1c
  234. .RI "const auto \fBROWID\fP = QStringLiteral('rowid')"
  235. .br
  236. .ti -1c
  237. .RI "const auto \fBNULL_TIME_hhmm\fP = QStringLiteral('00:00')"
  238. .br
  239. .in -1c
  240. .SH "Detailed Description"
  241. .PP
  242. The \fBOPL::Db\fP namespace provides string literals to programatically access the database
  243. .PP
  244. Example usage, do: newData\&.insert(OPL::Db::FLIGHTS_DEP, ui->deptLocLineEdit->text()); newData\&.value(OPL::Db::AIRCRAFT_MULTIPILOT);
  245. .PP
  246. instead of: newData\&.insert('dept', ui->deptLocLineEdit->text()); newData\&.value('multipilot');
  247. .PP
  248. Declaring these literals here avoids memory allocation at runtime for construction of temporary qstrings like ('dept')\&.
  249. .SH "Author"
  250. .PP
  251. Generated automatically by Doxygen for openPilotLog from the source code\&.