Kgapi

task.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
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
19namespace KGAPI2
20{
21
22/**
23 * @brief Represents a single task (or todo)
24 *
25 * @author Daniel Vrátil <dvratil@redhat.com>
26 * @since 0.3
27 */
28class KGAPITASKS_EXPORT Task : public KGAPI2::Object, public KCalendarCore::Todo
29{
30public:
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
65private:
66 class Private;
68 friend class Private;
69};
70
71} // namespace KGAPI2/
Base class for all objects.
Definition object.h:31
Represents a single task (or todo)
Definition task.h:29
~Task() override
Destructor.
A job to fetch a single map tile described by a StaticMapUrl.
Definition blog.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 12:00:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.