File indexing completed on 2024-05-12 05:22:32

0001 /*
0002  * This file is part of LibKGAPI library
0003  *
0004  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #pragma once
0010 
0011 #include "kgapitasks_export.h"
0012 #include "object.h"
0013 #include "types.h"
0014 
0015 #include <QScopedPointer>
0016 
0017 namespace KGAPI2
0018 {
0019 
0020 /**
0021  * @brief Represents a tasklist for Google Tasks service.
0022  *
0023  * @author Daniel Vrátil <dvratil@redhat.com>
0024  * @since: 0.3
0025  */
0026 class KGAPITASKS_EXPORT TaskList : public KGAPI2::Object
0027 {
0028 public:
0029     /**
0030      * @brief Constructor
0031      */
0032     TaskList();
0033 
0034     /**
0035      * @brief Copy constructor
0036      */
0037     TaskList(const TaskList &other);
0038 
0039     /**
0040      * @brief Destructor
0041      */
0042     ~TaskList() override;
0043 
0044     bool operator==(const TaskList &other) const;
0045 
0046     /**
0047      * @brief Sets tasklist UID
0048      *
0049      * @param uid
0050      */
0051     void setUid(const QString &uid);
0052 
0053     /**
0054      * @brief Returns tasklist UID
0055      */
0056     QString uid() const;
0057 
0058     /**
0059      * @brief Sets tasklist name
0060      *
0061      * @param title
0062      */
0063     void setTitle(const QString &title);
0064 
0065     /**
0066      * @brief Returns tasklist title
0067      */
0068     QString title() const;
0069 
0070     /**
0071      * @brief Sets tasklist selfLink
0072      *
0073      * @param selfLink
0074      */
0075     void setSelfLink(const QString &selfLink);
0076 
0077     /**
0078      * @brief Returns tasklist selfLink
0079      */
0080     QString selfLink() const;
0081 
0082     /**
0083      * @brief Sets tasklist updated
0084      *
0085      * @param updated
0086      */
0087     void setUpdated(const QString &updated);
0088 
0089     /**
0090      * @brief Returns tasklist updated
0091      */
0092     QString updated() const;
0093 
0094 private:
0095     class Private;
0096     QScopedPointer<Private> const d;
0097     friend class Private;
0098 };
0099 
0100 } // namespace KGAPI2