aboutsummaryrefslogtreecommitdiff
path: root/aoapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'aoapplication.h')
-rw-r--r--aoapplication.h42
1 files changed, 39 insertions, 3 deletions
diff --git a/aoapplication.h b/aoapplication.h
index 34f1fefb..77d7af01 100644
--- a/aoapplication.h
+++ b/aoapplication.h
@@ -6,6 +6,7 @@
#include <QApplication>
#include <QVector>
+#include <QFile>
class NetworkManager;
class Lobby;
@@ -32,9 +33,6 @@ public:
void construct_courtroom();
void destruct_courtroom();
- QVector<server_type> server_list;
- QVector<server_type> favorite_list;
-
void ms_packet_received(AOPacket *p_packet);
void server_packet_received(AOPacket *p_packet);
@@ -50,6 +48,44 @@ public:
bool s_pv = 0;
//////////////////////////////////////////////////
+
+ int get_release() {return RELEASE;}
+ int get_major_version() {return MAJOR_VERSION;}
+ int get_minor_version() {return MINOR_VERSION;}
+ QString get_version_string();
+
+ void set_favorite_list();
+ QVector<server_type>& get_favorite_list() {return favorite_list;}
+ void add_favorite_server(int p_server);
+
+ void set_server_list();
+ QVector<server_type>& get_server_list() {return server_list;}
+
+ void set_user_theme();
+ QString get_user_theme() {return user_theme;}
+
+ //path functions
+ QString get_base_path();
+ QString get_theme_path();
+ QString get_default_theme_path();
+ QString get_character_path(QString p_character);
+ QString get_demothings_path();
+
+ //text file functions
+ QString read_user_theme();
+ void write_to_serverlist_txt(QString p_line);
+ QVector<server_type> read_serverlist_txt();
+ pos_size_type get_pos_and_size(QString p_identifier, QString p_design_path);
+
+private:
+ const int RELEASE = 2;
+ const int MAJOR_VERSION = 1;
+ const int MINOR_VERSION = 0;
+
+ QString user_theme = "default";
+
+ QVector<server_type> server_list;
+ QVector<server_type> favorite_list;
};
#endif // AOAPPLICATION_H