diff include/core/torrent.h @ 258:862d0d8619f6

*: HUUUGE changes animia has been renamed to animone, so instead of thinking of a health condition, you think of a beautiful flower :) I've also edited some of the code for animone, but I have no idea if it even works or not because I don't have a mac or windows machine lying around. whoops! ... anyway, all of the changes divergent from Anisthesia are now licensed under BSD. it's possible that I could even rewrite most of the code to where I don't even have to keep the MIT license, but that's thinking too far into the future I've been slacking off on implementing the anime seasons page, mostly out of laziness. I think I'd have to create another db file specifically for the seasons anyway, this code is being pushed *primarily* because the hard drive it's on is failing! yay :)
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 02:43:44 -0400
parents 4d461ef7d424
children 3ec7804abf17
line wrap: on
line diff
--- a/include/core/torrent.h	Sun Feb 18 16:02:14 2024 -0500
+++ b/include/core/torrent.h	Mon Apr 01 02:43:44 2024 -0400
@@ -1,62 +1,62 @@
 #ifndef __core__torrent_h
 #define __core__torrent_h
 
+#include <QDateTime>
 #include <string>
-#include <QDateTime>
 
 /* this is really just a fancy struct...
  *
  * this will be moved into its own namespace if
  * it's deemed necessary
-*/
+ */
 class Torrent {
-	public:
-		std::string GetTitle() const { return _title; };
-		std::string GetCategory() const { return _category; };
-		std::string GetEpisode() const { return _episode; };
-		std::string GetGroup() const { return _group; };
-		size_t GetSize() const { return _size; };
-		std::string GetResolution() const { return _resolution; };
-		int GetSeeders() const { return _seeders; };
-		int GetLeechers() const { return _leechers; };
-		int GetDownloads() const { return _downloads; };
-		std::string GetDescription() const { return _description; };
-		std::string GetFilename() const { return _filename; };
-		std::string GetLink() const { return _link; };
-		std::string GetGuid() const { return _guid; };
-		QDateTime GetDate() const { return _date; };
+public:
+	std::string GetTitle() const { return _title; };
+	std::string GetCategory() const { return _category; };
+	std::string GetEpisode() const { return _episode; };
+	std::string GetGroup() const { return _group; };
+	size_t GetSize() const { return _size; };
+	std::string GetResolution() const { return _resolution; };
+	int GetSeeders() const { return _seeders; };
+	int GetLeechers() const { return _leechers; };
+	int GetDownloads() const { return _downloads; };
+	std::string GetDescription() const { return _description; };
+	std::string GetFilename() const { return _filename; };
+	std::string GetLink() const { return _link; };
+	std::string GetGuid() const { return _guid; };
+	QDateTime GetDate() const { return _date; };
 
-		void SetTitle(const std::string& title) { _title = title; };
-		void SetCategory(const std::string& category) { _category = category; };
-		void SetEpisode(const std::string& episode) { _episode = episode; };
-		void SetGroup(const std::string& group) { _group = group; };
-		void SetSize(const size_t size) { _size = size; };
-		void SetResolution(const std::string& resolution) { _resolution = resolution; };
-		void SetSeeders(const int seeders) { _seeders = seeders; };
-		void SetLeechers(const int leechers) { _leechers = leechers; };
-		void SetDownloads(const int downloads) { _downloads = downloads; };
-		void SetDescription(const std::string& description) { _description = description; };
-		void SetFilename(const std::string& filename) { _filename = filename; };
-		void SetLink(const std::string& link) { _link = link; };
-		void SetGuid(const std::string& guid) { _guid = guid; };
-		void SetDate(const QDateTime& date) { _date = date; };
+	void SetTitle(const std::string& title) { _title = title; };
+	void SetCategory(const std::string& category) { _category = category; };
+	void SetEpisode(const std::string& episode) { _episode = episode; };
+	void SetGroup(const std::string& group) { _group = group; };
+	void SetSize(const size_t size) { _size = size; };
+	void SetResolution(const std::string& resolution) { _resolution = resolution; };
+	void SetSeeders(const int seeders) { _seeders = seeders; };
+	void SetLeechers(const int leechers) { _leechers = leechers; };
+	void SetDownloads(const int downloads) { _downloads = downloads; };
+	void SetDescription(const std::string& description) { _description = description; };
+	void SetFilename(const std::string& filename) { _filename = filename; };
+	void SetLink(const std::string& link) { _link = link; };
+	void SetGuid(const std::string& guid) { _guid = guid; };
+	void SetDate(const QDateTime& date) { _date = date; };
 
-	private:
-		std::string _title;
-		std::string _category;
-		std::string _episode;
-		std::string _group;
-		size_t _size = 0;
-		std::string _resolution; /* technically should be an int,
-		                            but std::string is more useful */
-		int _seeders = 0;
-		int _leechers = 0;
-		int _downloads = 0;
-		std::string _description;
-		std::string _filename;
-		std::string _link;
-		std::string _guid;
-		QDateTime _date;
+private:
+	std::string _title;
+	std::string _category;
+	std::string _episode;
+	std::string _group;
+	size_t _size = 0;
+	std::string _resolution; /* technically should be an int,
+	                            but std::string is more useful */
+	int _seeders = 0;
+	int _leechers = 0;
+	int _downloads = 0;
+	std::string _description;
+	std::string _filename;
+	std::string _link;
+	std::string _guid;
+	QDateTime _date;
 };
 
 #endif // __core__torrent_h
\ No newline at end of file