File indexing completed on 2024-04-28 03:51:52
0001 /* 0002 This file is part of the KDE Baloo Project 0003 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.1-or-later 0006 */ 0007 0008 #ifndef BALOO_COMMAND_H 0009 #define BALOO_COMMAND_H 0010 0011 #include <QString> 0012 #include <QCommandLineParser> 0013 0014 namespace Baloo { 0015 0016 /** 0017 * An Abstract class from which all other balooctl commands can inherit from 0018 */ 0019 class Command 0020 { 0021 public: 0022 virtual ~Command(); 0023 0024 virtual QString command() = 0; 0025 virtual QString description() = 0; 0026 0027 virtual int exec(const QCommandLineParser& parser) = 0; 0028 0029 }; 0030 0031 } 0032 0033 #endif // BALOO_COMMAND_H