1 /* VLC-REMOTE for MAEMO 5
2 * Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2,
5 * or (at your option) any later version, as published by the Free
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef STATUS_POLL_TIMEOUT
23 #define STATUS_POLL_TIMEOUT 5000
26 #define PING_TIMEOUT 1000
28 #ifndef CONNECTION_TIMEOUT
29 #define CONNECTION_TIMEOUT 1000
31 #ifndef RETRIEVE_ART_TIMEOUT
32 #define RETRIEVE_ART_TIMEOUT 500
34 #ifndef RETRY_NETWORK_TIMEOUT
35 #define RETRY_NETWORK_TIMEOUT 20000
38 #ifndef SHOW_UNKNOWN_FILETYPES
39 #define SHOW_UNKNOWN_FILETYPES false
55 explicit AppSettings();
57 static QString getCurrentKey();
58 static void setCurrentKey(QString key);
59 static QString getCurrentIp();
60 static void setCurrentIp(QString ip);
61 static QStringList getAllAccounts();
62 static VlcDirectory getHomeDirectory();
63 static QList<VlcDirectory>* getFavourites();
64 static bool addFavourite(VlcDirectory dir);
65 static bool deleteFavourite(VlcDirectory dir);
66 static bool setHomeDirectory(VlcDirectory dir);
67 static Orientation setOrientation(Orientation orientation);
68 static Orientation getOrientation();
69 static bool isConnected();
70 static int getStatusPollTimeout();
71 static int getPingTimeout();
72 static int getConnectionTimeout();
73 static int getRetrieveArtTimeout();
74 static int getRetryNetworkTimeout();
75 static bool getShowUnknownFileTypes();
78 #endif // APPSETTINGS_H