diff include/core/session.h @ 47:d8eb763e6661

information.cpp: add widgets to the list tab, and add an "optional date" widget like taiga has so users can specify whether to set the date or not
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 00:43:38 -0400
parents 4b198a111713
children e613772f41d5
line wrap: on
line diff
--- a/include/core/session.h	Sat Sep 23 01:02:15 2023 -0400
+++ b/include/core/session.h	Mon Sep 25 00:43:38 2023 -0400
@@ -6,12 +6,15 @@
 struct Session {
 		Config config;
 		Session() { timer.start(); }
+		void AppendRequest() { requests++; };
+		int GetRequests() { return requests; };
 		int uptime() { return timer.elapsed(); }
 
 	private:
+		int requests = 0;
 		QElapsedTimer timer;
 };
 
 extern Session session;
 
-#endif // __core__session_h
\ No newline at end of file
+#endif // __core__session_h