File indexing completed on 2024-04-28 03:45:37

0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carlschwan@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 #pragma once
0005 
0006 #include "prefs.h"
0007 #include <QObject>
0008 
0009 class FileOpener : public QObject
0010 {
0011     Q_OBJECT
0012 
0013 public:
0014     Q_INVOKABLE void openFile(const QUrl &file, const Prefs::EnumStartSession mode);
0015 
0016 Q_SIGNALS:
0017     void fileOpened(const QUrl &file, int mode);
0018 };