diff options
Diffstat (limited to 'aoapplication.h')
| -rw-r--r-- | aoapplication.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/aoapplication.h b/aoapplication.h index 9252cdd..a01ef81 100644 --- a/aoapplication.h +++ b/aoapplication.h @@ -8,6 +8,7 @@ #include <QApplication> #include <QVector> #include <QFile> +#include <QSettings> class NetworkManager; class Lobby; @@ -113,8 +114,13 @@ public: ////// Functions for reading and writing files ////// // Implementations file_functions.cpp + // Instead of reinventing the wheel, we'll use a QSettings class. + QSettings *configini; + //Returns the config value for the passed searchline from a properly formatted config ini file - QString read_config(QString searchline); + //QString read_config(QString searchline); + + // No longer necessary. //Reads the theme from config.ini and loads it into the current_theme variable QString read_theme(); @@ -145,6 +151,9 @@ public: // Returns the username the user may have set in config.ini. QString get_default_username(); + // Returns the audio device used for the client. + QString get_audio_output_device(); + // Returns whether the user would like to have custom shownames on by default. bool get_showname_enabled_by_default(); |
