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_HOMEPAGEENTRY_H
11#define ATTICA_HOMEPAGEENTRY_H
12
13#include <QSharedDataPointer>
14#include <QUrl>
15
16#include "attica_export.h"
17
18namespace Attica
19{
20/*!
21 \class Attica::HomePageEntry
22 \inheaderfile Attica/HomePageEntry
23 \inmodule Attica
24
25 \brief The HomePageEntry class contains information about one home page entry.
26
27 It consists of a type and a home page url.
28 */
29class ATTICA_EXPORT HomePageEntry
30{
31public:
32 /*!
33 *
34 */
35 typedef QList<HomePageEntry> List;
36
37 /*!
38 * Creates an empty HomePageEntry
39 */
40 HomePageEntry();
41
42 HomePageEntry(const HomePageEntry &other);
43
44 HomePageEntry &operator=(const HomePageEntry &other);
45
46 ~HomePageEntry();
47
48 /*!
49 *
50 */
51 QString type() const;
52
53 /*!
54 *
55 */
56 void setType(const QString &type);
57
58 /*!
59 *
60 */
61 QUrl url() const;
62
63 /*!
64 *
65 */
66 void setUrl(const QUrl &url);
67
68private:
69 class Private;
70 QSharedDataPointer<Private> d;
71};
72
73}
74
75#endif
76

source code of attica/src/homepageentry.h