libqutim  0.3.1.0
systeminfo.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** qutIM - instant messenger
4 **
5 ** Copyright © 2008 Remko Tronçon <remko@el-tramo.be>
6 ** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
7 **
8 *****************************************************************************
9 **
10 ** $QUTIM_BEGIN_LICENSE$
11 ** This program is free software: you can redistribute it and/or modify
12 ** it under the terms of the GNU General Public License as published by
13 ** the Free Software Foundation, either version 3 of the License, or
14 ** (at your option) any later version.
15 **
16 ** This program is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 ** See the GNU General Public License for more details.
20 **
21 ** You should have received a copy of the GNU General Public License
22 ** along with this program. If not, see http://www.gnu.org/licenses/.
23 ** $QUTIM_END_LICENSE$
24 **
25 ****************************************************************************/
26 
27 #ifndef SYSTEMINFO_H
28 #define SYSTEMINFO_H
29 
30 #include "libqutim_global.h"
31 #include <QDir>
32 
33 namespace qutim_sdk_0_3
34 {
35 struct SystemInfoPrivate;
36 
38 {
39 public:
40  enum Type
41  {
42  WinCE = 'c',
43  Win32 = 'w',
44  Linux = 'l',
45  MacOSX = 'm',
46  Symbian = 's',
47  Unix = 'u'
48  };
49  enum DirType { ConfigDir, HistoryDir, ShareDir, SystemConfigDir, SystemShareDir };
50  static QString getFullName();
51  static QString getName();
52  static QString getVersion();
53  static QString getTimezone();
54  static int getTimezoneOffset();
55  static QDir getDir(DirType type);
56  static QString getPath(DirType type);
57  static quint32 getSystemVersionID();
58  static quint8 getSystemTypeID();
59  static QString systemID2String(quint8 type, quint32 id);
60 private:
61  SystemInfo();
62  virtual ~SystemInfo();
63 };
64 }
65 
66 #endif // SYSTEMINFO_H
67 

Generated by Doxygen