Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. typedef struct{
  2. quint32 devserial;
  3. QString name;
  4. } configelement_t;
  5.  
  6. typedef struct{
  7. quint8 type;//type, in case of entry boxes, this will set the validator
  8. QStringList checkboxes;//names for the checkboxe(s) in case of checkbox option
  9. QString title;//name displayed for the set of options
  10. QString* entry;//the entered value - always converted to a string for storage
  11. } metadata_t;
  12.  
  13. //these are the four types of metadata into: text, integer, float, freeform (text), and checkboxes
  14. enum {META_INVALID=0,META_TEXT,META_INT,META_FLOAT,META_FREE,META_CHECK};
  15.  
  16. typedef struct{
  17. QList<configelement_t> constituent_sensors;
  18. QList<configelement_t> missing_sensors;
  19. QList<metadata_t> metadata;
  20. quint8 nummissing;
  21. QString name;
  22. QString path;//this is used to store the default file path (full path) where the data will be stored (if wav file storage is used)
  23. } configuration_descriptor_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement