Attica

homepagetype.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Intel Corporation
5  SPDX-FileContributor: Mateu Batle Sastre <[email protected]>
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 HomePageType homepagetype.h <Attica/HomePageType>
22 
23  The HomePageType class contains information about one home page type.
24  It consists of an integer id and a home page type name.
25  */
26 class ATTICA_EXPORT HomePageType
27 {
28 public:
29  typedef QList<HomePageType> List;
30  class Parser;
31 
32  /**
33  * Creates an empty HomePageType
34  */
35  HomePageType();
36 
37  /**
38  * Copy constructor.
39  * @param other the HomePageType to copy from
40  */
41  HomePageType(const HomePageType &other);
42 
43  /**
44  * Assignment operator.
45  * @param other the HomePageType to assign from
46  * @return pointer to this HomePageType
47  */
48  HomePageType &operator=(const HomePageType &other);
49 
50  /**
51  * Destructor.
52  */
53  ~HomePageType();
54 
55  /*
56  <id>10</id>
57  <name>Blog</name>
58  */
59 
60  uint id() const;
61  void setId(uint id);
62 
63  QString name() const;
64  void setName(const QString &name);
65 
66 private:
67  class Private;
69 };
70 
71 }
72 
73 #endif
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:08:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.