|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: |
|
19 * |
|
20 */ |
|
21 |
|
22 #ifndef XQUTILS |
|
23 #define XQUTILS |
|
24 |
|
25 // INCLUDES |
|
26 #include <QObject> |
|
27 #include "utils_global.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class XQUtilsPrivate; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 class XQUTILS_EXPORT XQUtils : public QObject |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 enum Error |
|
39 { |
|
40 NoError = 0, |
|
41 OutOfMemoryError, |
|
42 UserCancelledError, |
|
43 UnknownError = -1 |
|
44 }; |
|
45 |
|
46 XQUtils(QObject* parent = 0); |
|
47 ~XQUtils(); |
|
48 |
|
49 bool launchFile(const QString& filename); |
|
50 |
|
51 static QString romRootPath(); |
|
52 static QString phoneMemoryRootPath(); |
|
53 static QString memoryCardRootPath(); |
|
54 static QString gamesPath(); |
|
55 static QString installsPath(); |
|
56 static QString othersPath(); |
|
57 static QString videosPath(); |
|
58 static QString imagesPath(); |
|
59 static QString picturesPath(); |
|
60 static QString gmsPicturesPath(); |
|
61 static QString mmsBackgroundImagesPath(); |
|
62 static QString presenceLogosPath(); |
|
63 static QString soundsPath(); |
|
64 static QString digitalSoundsPath(); |
|
65 static QString simpleSoundsPath(); |
|
66 static QString imagesThumbnailPath(); |
|
67 static QString memoryCardContactsPath(); |
|
68 |
|
69 XQUtils::Error error() const; |
|
70 |
|
71 public Q_SLOTS: |
|
72 void resetInactivityTime(); |
|
73 |
|
74 private: |
|
75 XQUtilsPrivate* d; |
|
76 }; |
|
77 |
|
78 #endif // XQUTILS |
|
79 |
|
80 // End of file |