2
0

OPL_DbCompletionData.3 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .TH "OPL::DbCompletionData" 3 "Tue Aug 9 2022" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. OPL::DbCompletionData \- Provides data for QCompleters and QHashs\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <dbcompletiondata\&.h>\fP
  11. .SS "Public Member Functions"
  12. .in +1c
  13. .ti -1c
  14. .RI "void \fBinit\fP ()"
  15. .br
  16. .RI "init Retrieves Data and populates Lists and Maps "
  17. .ti -1c
  18. .RI "void \fBupdate\fP ()"
  19. .br
  20. .RI "updates data from the user modifiable tables "
  21. .ti -1c
  22. .RI "void \fBupdateTails\fP ()"
  23. .br
  24. .ti -1c
  25. .RI "void \fBupdatePilots\fP ()"
  26. .br
  27. .ti -1c
  28. .RI "void \fBupdateAirports\fP ()"
  29. .br
  30. .in -1c
  31. .SS "Static Public Member Functions"
  32. .in +1c
  33. .ti -1c
  34. .RI "static const QStringList \fBgetCompletionList\fP (\fBCompleterTarget\fP target)"
  35. .br
  36. .RI "getCompletionList returns a QStringList of values for a QCompleter based on database values "
  37. .ti -1c
  38. .RI "static const QHash< int, QString > \fBgetIdMap\fP (\fBCompleterTarget\fP target)"
  39. .br
  40. .RI "returns a QHash of a human-readable database value and its row id\&. Used in the Dialogs to map user input to unique database entries\&. "
  41. .in -1c
  42. .SS "Public Attributes"
  43. .in +1c
  44. .ti -1c
  45. .RI "QHash< int, QString > \fBpilotsIdMap\fP"
  46. .br
  47. .ti -1c
  48. .RI "QHash< int, QString > \fBtailsIdMap\fP"
  49. .br
  50. .ti -1c
  51. .RI "QHash< int, QString > \fBairportIcaoIdMap\fP"
  52. .br
  53. .ti -1c
  54. .RI "QHash< int, QString > \fBairportIataIdMap\fP"
  55. .br
  56. .ti -1c
  57. .RI "QHash< int, QString > \fBairportNameIdMap\fP"
  58. .br
  59. .ti -1c
  60. .RI "QStringList \fBpilotList\fP"
  61. .br
  62. .ti -1c
  63. .RI "QStringList \fBtailsList\fP"
  64. .br
  65. .ti -1c
  66. .RI "QStringList \fBairportList\fP"
  67. .br
  68. .in -1c
  69. .SH "Detailed Description"
  70. .PP
  71. Provides data for QCompleters and QHashs\&.
  72. QCompleters and QHashes are used for mapping user input to database keys\&. The required data is retreived from the database and cached for fast access without the need to query the database\&. The \fBDbCompletionData\fP class holds the last state of the database (state of user-modifiable data) in order to intelligently refresh the completion data when needed\&.
  73. .SH "Author"
  74. .PP
  75. Generated automatically by Doxygen for openPilotLog from the source code\&.