libqutim
0.3.1.0
Main Page
Related Pages
Namespaces
Classes
Globals
Globals
File List
icon.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** qutIM - instant messenger
4
**
5
** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
6
**
7
*****************************************************************************
8
**
9
** $QUTIM_BEGIN_LICENSE$
10
** This program is free software: you can redistribute it and/or modify
11
** it under the terms of the GNU General Public License as published by
12
** the Free Software Foundation, either version 3 of the License, or
13
** (at your option) any later version.
14
**
15
** This program is distributed in the hope that it will be useful,
16
** but WITHOUT ANY WARRANTY; without even the implied warranty of
17
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
** See the GNU General Public License for more details.
19
**
20
** You should have received a copy of the GNU General Public License
21
** along with this program. If not, see http://www.gnu.org/licenses/.
22
** $QUTIM_END_LICENSE$
23
**
24
****************************************************************************/
25
26
#ifndef ICON_H
27
#define ICON_H
28
29
#include "
libqutim_global.h
"
30
#include <QIcon>
31
32
namespace
qutim_sdk_0_3
33
{
34
class
LIBQUTIM_EXPORT
Icon
:
public
QIcon
35
{
36
public
:
37
// Qt 4.6 has ability for getting icons from system themes
38
// but has no one for getting client-specific icons like
39
// status icons and client icons (except installed clients)
40
// so we create our own imlp of icon engine, which has wrapper
41
// around QIcon::fromTheme
42
enum
Type
{ System,
Status
};
43
44
// There is also another way: i.e. give names for icons
45
// like "user-online-jabber", "user-online-icq" and so on,
46
// names for clients should be like "miranda" or "qutim"
47
Icon
(
const
QString &name);
48
49
Icon
(
const
QIcon &icon);
50
51
QString name()
const
;
52
};
53
}
54
55
#endif // ICON_H
56
Generated by Doxygen