2014-01-21 19:49:50 +00:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2014 Samoilenko Yuri <kinnalru@gmail.com>
|
2014-01-21 19:49:50 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2014-01-21 19:49:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SFTPPLUGIN_MOUNTLOOP_H
|
|
|
|
#define SFTPPLUGIN_MOUNTLOOP_H
|
|
|
|
|
|
|
|
#include <QEventLoop>
|
|
|
|
|
|
|
|
class MountLoop : public QEventLoop
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
MountLoop();
|
2022-09-10 22:23:52 +01:00
|
|
|
|
2014-01-21 19:49:50 +00:00
|
|
|
bool exec(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents);
|
2022-09-10 22:23:52 +01:00
|
|
|
|
2014-01-21 19:49:50 +00:00
|
|
|
Q_SIGNALS:
|
|
|
|
void result(bool status);
|
2022-09-10 22:23:52 +01:00
|
|
|
|
2014-01-21 19:49:50 +00:00
|
|
|
public Q_SLOTS:
|
|
|
|
void failed();
|
2020-08-06 12:51:31 +01:00
|
|
|
void succeeded();
|
2014-01-21 19:49:50 +00:00
|
|
|
void exitWith(bool status);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|