Mercurial > minori
view include/core/session.h @ 251:4d635d3e168a
*: remove stupid windows build
it doesn't even work anyway.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 04 Feb 2024 21:18:23 -0500 |
parents | c130f47f6f48 |
children | 862d0d8619f6 |
line wrap: on
line source
#ifndef __core__session_h #define __core__session_h #include "core/config.h" #include "gui/locale.h" #include <QElapsedTimer> #include "semver/semver.hpp" class MainWindow; struct Session { public: Session() { timer.start(); } /* we literally *cannot* be lying to the user by doing this */ void IncrementRequests() { requests++; }; int GetRequests() { return requests; }; int uptime() { return timer.elapsed(); } Config config; static constexpr semver::version version{PACKAGE_VERSION}; private: unsigned int requests = 0; QElapsedTimer timer; }; extern Session session; #endif // __core__session_h