#define APPSETTINGS_H
#include <QSettings>
+#ifndef STATUS_POLL_TIMEOUT
+#define STATUS_POLL_TIMEOUT 5000
+#endif
+#ifndef PING_TIMEOUT
+#define PING_TIMEOUT 1000
+#endif
+#ifndef CONNECTION_TIMEOUT
+#define CONNECTION_TIMEOUT 1000
+#endif
+#ifndef RETRIEVE_ART_TIMEOUT
+#define RETRIEVE_ART_TIMEOUT 500
+#endif
+#ifndef RETRY_NETWORK_TIMEOUT
+#define RETRY_NETWORK_TIMEOUT 20000
+#endif
+
+#ifndef SHOW_UNKNOWN_FILETYPES
+#define SHOW_UNKNOWN_FILETYPES false
+#endif
+
+#ifndef SHOW_ALBUM_ART
+#define SHOW_ALBUM_ART true
+#endif
+
+#ifndef ALERT_ON_CLOSE
+#define ALERT_ON_CLOSE false
+#endif
+
+
struct VlcDirectory {
QString name;
QString path;
explicit AppSettings();
~AppSettings();
static QString getCurrentKey();
+ static void setCurrentKey(QString key);
static QString getCurrentIp();
+ static void setCurrentIp(QString ip);
+ static QStringList getAllAccounts();
static VlcDirectory getHomeDirectory();
static QList<VlcDirectory>* getFavourites();
static bool addFavourite(VlcDirectory dir);
static bool setHomeDirectory(VlcDirectory dir);
static Orientation setOrientation(Orientation orientation);
static Orientation getOrientation();
-//private:
- //static QSettings settings;
+ static bool isConnected();
+ static int getStatusPollTimeout();
+ static int getPingTimeout();
+ static int getConnectionTimeout();
+ static int getRetrieveArtTimeout();
+ static int getRetryNetworkTimeout();
+ static bool getShowUnknownFileTypes();
+ static bool getShowAlbumArt();
+ static bool getAlertOnClose();
+
};
#endif // APPSETTINGS_H