1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Intel Corporation
5 SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
6
7 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
8*/
9
10#ifndef ATTICA_ICON_H
11#define ATTICA_ICON_H
12
13#include <QSharedDataPointer>
14#include <QUrl>
15
16#include "attica_export.h"
17
18namespace Attica
19{
20/*!
21 \class Attica::Icon
22 \inheaderfile Attica/Icon
23 \inmodule Attica
24
25 \brief The Icon class contains information about an icon.
26
27 It consists of a Url and icon size information.
28 */
29class ATTICA_EXPORT Icon
30{
31public:
32 /*!
33 *
34 */
35 typedef QList<Icon> List;
36
37 /*!
38 * Creates an empty Icon
39 */
40 Icon();
41
42 Icon(const Icon &other);
43
44 Icon &operator=(const Icon &other);
45
46 ~Icon();
47
48 /*!
49 *
50 */
51 QUrl url() const;
52
53 /*!
54 *
55 */
56 void setUrl(const QUrl &url);
57
58 /*!
59 *
60 */
61 uint width() const;
62
63 /*!
64 *
65 */
66 void setWidth(uint width);
67
68 /*!
69 *
70 */
71 uint height() const;
72
73 /*!
74 *
75 */
76 void setHeight(uint height);
77
78private:
79 class Private;
80 QSharedDataPointer<Private> d;
81};
82
83}
84
85#endif
86

source code of attica/src/icon.h