1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
/*
SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QCommandLineParser>
#include <QObject>
class QApplication;
class PimDataExporterWindow;
class PimDataCommandLineOption : public QObject
{
Q_OBJECT
public:
explicit PimDataCommandLineOption(QObject *parent = nullptr);
~PimDataCommandLineOption() override;
void createParser(const QApplication &app);
void setExportWindow(PimDataExporterWindow *exporterWindow);
void handleCommandLine();
[[nodiscard]] bool parseUserFeedback() const;
public Q_SLOTS:
void slotActivateRequested(const QStringList &arguments, const QString &workingDirectory);
private:
QCommandLineParser mParser;
PimDataExporterWindow *mExporterWindow = nullptr;
};
|