File indexing completed on 2023-09-24 07:57:26
0001 /* 0002 This file is part of KDE. 0003 0004 SPDX-FileCopyrightText: 2010 Intel Corporation 0005 SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk> 0006 0007 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0008 */ 0009 0010 #ifndef ATTICA_HOMEPAGEENTRY_H 0011 #define ATTICA_HOMEPAGEENTRY_H 0012 0013 #include <QSharedDataPointer> 0014 #include <QUrl> 0015 0016 #include "attica_export.h" 0017 0018 namespace Attica 0019 { 0020 /** 0021 @class HomePageEntry homepageentry.h <Attica/HomePageEntry> 0022 0023 The HomePageEntry class contains information about one home page entry. 0024 It consists of a type and a home page url. 0025 */ 0026 class ATTICA_EXPORT HomePageEntry 0027 { 0028 public: 0029 typedef QList<HomePageEntry> List; 0030 0031 /** 0032 * Creates an empty HomePageEntry 0033 */ 0034 HomePageEntry(); 0035 0036 /** 0037 * Copy constructor. 0038 * @param other the HomePageEntry to copy from 0039 */ 0040 HomePageEntry(const HomePageEntry &other); 0041 0042 /** 0043 * Assignment operator. 0044 * @param other the HomePageEntry to assign from 0045 * @return pointer to this HomePageEntry 0046 */ 0047 HomePageEntry &operator=(const HomePageEntry &other); 0048 0049 /** 0050 * Destructor. 0051 */ 0052 ~HomePageEntry(); 0053 0054 QString type() const; 0055 void setType(const QString &type); 0056 0057 QUrl url() const; 0058 void setUrl(const QUrl &url); 0059 0060 private: 0061 class Private; 0062 QSharedDataPointer<Private> d; 0063 }; 0064 0065 } 0066 0067 #endif