Akonadi Mime

commandbase.h
1/*
2 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>
3 SPDX-FileCopyrightText: 2010 Andras Mantia <andras@kdab.com>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#pragma once
9
10#include "akonadi-mime_export.h"
11#include <QObject>
12namespace Akonadi
13{
14class AKONADI_MIME_EXPORT CommandBase : public QObject
15{
16 Q_OBJECT
17
18public:
19 explicit CommandBase(QObject *parent = nullptr);
20 virtual void execute() = 0;
21
22 enum Result {
24 OK,
25 Canceled,
26 Failed,
27 };
28
29Q_SIGNALS:
30 void result(Akonadi::CommandBase::Result);
31
32protected Q_SLOTS:
33 virtual void emitResult(Akonadi::CommandBase::Result result);
34};
35}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:09 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.