X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fappsettings.h;h=1da0b9a02187ab97709931fae4b72a9d8edf684e;hb=0ef850b1787962729c2dae523360e8c1f6179402;hp=98b287b0b47e0ed7e4501f057f589b3a20e91c0f;hpb=e1733dc9f63d6f8cfd99f8082263fa2432abdd80;p=vlc-remote diff --git a/src/appsettings.h b/src/appsettings.h index 98b287b..1da0b9a 100644 --- a/src/appsettings.h +++ b/src/appsettings.h @@ -19,6 +19,27 @@ #define APPSETTINGS_H #include +#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 + + struct VlcDirectory { QString name; QString path; @@ -43,8 +64,12 @@ public: static Orientation setOrientation(Orientation orientation); static Orientation getOrientation(); static bool isConnected(); -//private: - //static QSettings settings; + static int getStatusPollTimeout(); + static int getPingTimeout(); + static int getConnectionTimeout(); + static int getRetrieveArtTimeout(); + static int getRetryNetworkTimeout(); + static bool getShowUnknownFileTypes(); }; #endif // APPSETTINGS_H