From 54c8a082aa513cb10860e16a74b7f2e7ae638b2b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 28 Mar 2018 21:12:17 -0400 Subject: Migrated to hkutil --- database.h | 62 -------------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 database.h (limited to 'database.h') diff --git a/database.h b/database.h deleted file mode 100644 index 50f5b55..0000000 --- a/database.h +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef DATABASE_H_75C3CE0F -#define DATABASE_H_75C3CE0F - -#include - -struct sqlite3; - -struct achievement { - int achievementId; - int gameId; - std::string title; - std::string color; -}; - -struct did { - int profileId; - std::string date; -}; - -class database { -public: - - // Constructor - - explicit database(std::string path); - - // Disable copying - - database(const database& other) = delete; - database& operator=(const database& other) = delete; - - // Move constructor and move assignment - - database(database&& other); - database& operator=(database&& other); - - // Swap - - friend void swap(database& first, database& second); - - // Destructor - - ~database(); - - // Accessors - - achievement getRandomAchievement() const; - - bool doesGameHaveImages(int gameId) const; - - std::string getRandomImageForGame(int gameId) const; - - did getRandomDidForAchievement(int achievementId) const; - -private: - - database() = default; - - sqlite3* ppdb_ = nullptr; -}; - -#endif /* end of include guard: DATABASE_H_75C3CE0F */ -- cgit 1.4.1