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