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 "object.h"
12 #include "types.h"
13 #include "kgapitasks_export.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,
29  public KCalendarCore::Todo
30 {
31  public:
32 
33  /**
34  * @brief Constructor
35  */
36  explicit Task();
37 
38  /**
39  * @brief Copy constructor
40  */
41  Task(const Task& other);
42 
43  /**
44  * @brief Copy constructor
45  */
46  explicit Task(const KCalendarCore::Todo &other);
47 
48  /**
49  * @brief Destructor
50  */
51  ~Task() override;
52 
53  bool operator==(const Task &other) const;
54 
55  /**
56  * @brief Sets whether the task has been deleted
57  *
58  * @param deleted
59  */
60  void setDeleted(bool deleted);
61 
62  /**
63  * @brief Returns whether the task has been deleted
64  */
65  bool deleted() const;
66 
67  private:
68  class Private;
70  friend class Private;
71 
72 };
73 
74 } // namespace KGAPI2/
75 
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
Represents a single task (or todo)
Definition: task.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 23:13:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.