Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FILE NOTES:
- * USE:
- * Handles data and saves them in their respective keys
- * EXPECTATION:
- * Saves the data when the session closes or when called. It will also be responsible for reloading all the data form the last session
- */
- #ifndef DATAHANDLER_H
- #define DATAHANDLER_H
- //pre-imported pckgs
- #include <QObject>
- #include <QVector>
- #include <QList>
- class data_handler : public QObject {
- public://idk what is this for but it sets it up i think
- explicit data_handler(QObject* parent = nullptr);//sets up the class
- public slots://public methods
- void loadData();//it loads the data saved from last session.
- void saveData(QVector<QString> list,int points);//saves notes at end of session
- signals://tells stuff too qml(skull)
- void response(QList<QString> list,int points);//responds with whatever to-do stuff you need
- };
- #endif // DATAHANDLER_H
Add Comment
Please, Sign In to add comment