Attica

homepageentry.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_HOMEPAGEENTRY_H
11 #define ATTICA_HOMEPAGEENTRY_H
12 
13 #include <QSharedDataPointer>
14 #include <QUrl>
15 
16 #include "attica_export.h"
17 
18 namespace Attica
19 {
20 /**
21  @class HomePageEntry homepageentry.h <Attica/HomePageEntry>
22 
23  The HomePageEntry class contains information about one home page entry.
24  It consists of a type and a home page url.
25  */
26 class ATTICA_EXPORT HomePageEntry
27 {
28 public:
29  typedef QList<HomePageEntry> List;
30 
31  /**
32  * Creates an empty HomePageEntry
33  */
34  HomePageEntry();
35 
36  /**
37  * Copy constructor.
38  * @param other the HomePageEntry to copy from
39  */
40  HomePageEntry(const HomePageEntry &other);
41 
42  /**
43  * Assignment operator.
44  * @param other the HomePageEntry to assign from
45  * @return pointer to this HomePageEntry
46  */
47  HomePageEntry &operator=(const HomePageEntry &other);
48 
49  /**
50  * Destructor.
51  */
52  ~HomePageEntry();
53 
54  QString type() const;
55  void setType(const QString &type);
56 
57  QUrl url() const;
58  void setUrl(const QUrl &url);
59 
60 private:
61  class Private;
63 };
64 
65 }
66 
67 #endif
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:05:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.