Mercurial > minori
comparison include/core/session.h @ 319:d928ec7b6a0d
services/kitsu: implement GetAnimeList()
it finally works!
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 12 Jun 2024 17:52:26 -0400 |
| parents | 34347fd2a2de |
| children | 1faa72660932 |
comparison
equal
deleted
inserted
replaced
| 318:3b355fa948c7 | 319:d928ec7b6a0d |
|---|---|
| 1 #ifndef MINORI_CORE_SESSION_H_ | 1 #ifndef MINORI_CORE_SESSION_H_ |
| 2 #define MINORI_CORE_SESSION_H_ | 2 #define MINORI_CORE_SESSION_H_ |
| 3 | 3 |
| 4 #include "core/time.h" | |
| 4 #include "core/config.h" | 5 #include "core/config.h" |
| 5 #include "gui/locale.h" | 6 #include "gui/locale.h" |
| 6 | 7 |
| 7 #include <QObject> | 8 #include <QObject> |
| 8 #include <QElapsedTimer> | 9 #include <QElapsedTimer> |
| 9 | 10 |
| 10 #include "semver/semver.hpp" | 11 #include "semver/semver.hpp" |
| 11 | 12 |
| 12 #include <atomic> | 13 #include <atomic> |
| 13 #include <string> | 14 #include <string> |
| 15 #include <random> | |
| 14 | 16 |
| 15 class MainWindow; | 17 class MainWindow; |
| 16 | 18 |
| 17 struct Session : public QObject { | 19 struct Session : public QObject { |
| 18 Q_OBJECT | 20 Q_OBJECT |
| 29 unsigned int GetRequests(); | 31 unsigned int GetRequests(); |
| 30 int uptime(); | 32 int uptime(); |
| 31 | 33 |
| 32 Config config; | 34 Config config; |
| 33 static constexpr semver::version version{PACKAGE_VERSION}; | 35 static constexpr semver::version version{PACKAGE_VERSION}; |
| 36 std::mt19937 gen; | |
| 34 | 37 |
| 35 signals: | 38 signals: |
| 36 void StatusBarChange(const std::string& message); | 39 void StatusBarChange(const std::string& message); |
| 37 | 40 |
| 38 private: | 41 private: |
