Kgapi

task.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #pragma once
10 
11 #include "kgapitasks_export.h"
12 #include "object.h"
13 #include "types.h"
14 
15 #include <QScopedPointer>
16 
17 #include <KCalendarCore/Todo>
18 
19 namespace KGAPI2
20 {
21 
22 /**
23  * @brief Represents a single task (or todo)
24  *
25  * @author Daniel Vrátil <[email protected]>
26  * @since 0.3
27  */
28 class KGAPITASKS_EXPORT Task : public KGAPI2::Object, public KCalendarCore::Todo
29 {
30 public:
31  /**
32  * @brief Constructor
33  */
34  explicit Task();
35 
36  /**
37  * @brief Copy constructor
38  */
39  Task(const Task &other);
40 
41  /**
42  * @brief Copy constructor
43  */
44  explicit Task(const KCalendarCore::Todo &other);
45 
46  /**
47  * @brief Destructor
48  */
49  ~Task() override;
50 
51  bool operator==(const Task &other) const;
52 
53  /**
54  * @brief Sets whether the task has been deleted
55  *
56  * @param deleted
57  */
58  void setDeleted(bool deleted);
59 
60  /**
61  * @brief Returns whether the task has been deleted
62  */
63  bool deleted() const;
64 
65 private:
66  class Private;
68  friend class Private;
69 };
70 
71 } // namespace KGAPI2/
Represents a single task (or todo)
Definition: task.h:28
Base class for all objects.
Definition: object.h:30
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 03:50:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.