From 40f7cc8f54d0c221a391457fd38a44d0633aa088 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Mon, 16 May 2022 14:05:08 +0300 Subject: fixed typo in folder name --- Utills/Kindle/Kindle.h | 55 -------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 Utills/Kindle/Kindle.h (limited to 'Utills/Kindle/Kindle.h') diff --git a/Utills/Kindle/Kindle.h b/Utills/Kindle/Kindle.h deleted file mode 100644 index 79bcbd3..0000000 --- a/Utills/Kindle/Kindle.h +++ /dev/null @@ -1,55 +0,0 @@ -#pragma once -#include"vector.hpp" -#include"Book.h" -#include"User.h" -#include"Pair.hpp" -#include -#include -#include - -class Kindle { -private: - Vector lib; - Vector users; - - // Helper functions - int findBookIndex(const string& name) const; - int findUserIndex(const string& name) const; - - // did user read the book? - bool userReadTheBook(const User& currentUser, int bookIndex) const; - - // does user exist? - bool existUser(const string& userName) const; - - // Functions used by user - void readBookDialog(User& reader); - void writeBookDialog(User& writer); - - void rateBookDialog(const User& rater); - void commentOnBookDialog(const User& commenter); - - void displayCommentsDialog() const; - void displayRatesDialog() const; - - // TODO: Change book (add or remove page etc.) - - // Functions used by main dialog - void displayLoginDialog(); - void displaySignupDialog(); - void displayUserDialog(User& currentUser); - - void saveFileDialog() const; - void readFileDialog(); - - void viewBooks() const; - void showHelpDialog() const; - - // read && write - void saveToFile(const char* filePath) const; - void readFromFile(const char* filePath); -public: - // The only function used by our Kindle class - void display(); -}; - -- cgit v1.3.1-26-gb76a