aboutsummaryrefslogtreecommitdiff
path: root/mods.h
diff options
context:
space:
mode:
Diffstat (limited to 'mods.h')
-rw-r--r--mods.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/mods.h b/mods.h
deleted file mode 100644
index 7373961..0000000
--- a/mods.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#pragma once
-#include <glib.h>
-#include <thread>
-#include <mutex>
-#include <vector>
-#include <string>
-#include <gtkmm.h>
-#include <libbible.h>
-
-using namespace std;
-
-class Header;
-
-/*
- * Credit goes to the Xiphos project for this part of the code:
- * https://github.com/crosswire/xiphos/
- */
-
-class Mods : public Gtk::Frame, public libbible::Status
-{
-public:
- Mods(Header *header, Gtk::Window *window);
- virtual ~Mods();
-
- void installMods(std::vector<std::string> filenames);
- void uninstallMods(std::vector<std::string> modnames);
- void updateInstallable();
- void displayMain();
- void displayDownload();
-
- // This is for Status. Huzzah for multiple inheritance!
- virtual void update(unsigned long totalBytes, unsigned long completedBytes, std::string message);
-
-protected:
- Header *header;
- Gtk::Window *window;
- std::map<std::string, std::vector<std::string>> modsAvailable;
-
- Gtk::MessageDialog progressDialog;
- Gtk::ProgressBar progressBar;
- Glib::Dispatcher dispatcher;
- mutable std::mutex progressMutex;
- double fracDone;
- std::string message;
- std::thread *worker;
- bool complete;
- void getStatus(double *fractionDone, std::string *mess, bool *isComplete) const;
- void onNotify();
-
- void showProgress(std::string message);
- void endProgress();
-
-};