Touch_Grass

Untitled

Jul 9th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | Source Code | 0 0
  1. /* FILE NOTES:
  2.  *  USE:
  3.  *      Handles data and saves them in their respective keys
  4.  *  EXPECTATION:
  5.  *      Saves the data when the session closes or when called. It will also be responsible for reloading all the data form the last session
  6. */
  7.  
  8. #ifndef DATAHANDLER_H
  9. #define DATAHANDLER_H
  10.  
  11. //pre-imported pckgs
  12. #include <QObject>
  13. #include <QVector>
  14. #include <QList>
  15.  
  16. class data_handler : public QObject {
  17. public://idk what is this for but it sets it up i think
  18.     explicit data_handler(QObject* parent = nullptr);//sets up the class
  19. public slots://public methods
  20.     void loadData();//it loads the data saved from last session.
  21.     void saveData(QVector<QString> list,int points);//saves notes at end of session
  22. signals://tells stuff too qml(skull)
  23.     void response(QList<QString> list,int points);//responds with whatever to-do stuff you need
  24. };
  25.  
  26.  
  27. #endif // DATAHANDLER_H
Add Comment
Please, Sign In to add comment