| 1 | /* |
| 2 | This file is part of the KDE Baloo Project |
| 3 | SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef BALOO_COMMAND_H |
| 9 | #define BALOO_COMMAND_H |
| 10 | |
| 11 | #include <QString> |
| 12 | #include <QCommandLineParser> |
| 13 | |
| 14 | namespace Baloo { |
| 15 | |
| 16 | /** |
| 17 | * An Abstract class from which all other balooctl commands can inherit from |
| 18 | */ |
| 19 | class Command |
| 20 | { |
| 21 | public: |
| 22 | virtual ~Command(); |
| 23 | |
| 24 | virtual QString command() = 0; |
| 25 | virtual QString description() = 0; |
| 26 | |
| 27 | virtual int exec(const QCommandLineParser& parser) = 0; |
| 28 | |
| 29 | }; |
| 30 | |
| 31 | } |
| 32 | |
| 33 | #endif // BALOO_COMMAND_H |
| 34 | |