File indexing completed on 2024-04-21 04:56:54

0001 /**
0002  * SPDX-FileCopyrightText: 2014 Samoilenko Yuri <kinnalru@gmail.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QEventLoop>
0010 
0011 class MountLoop : public QEventLoop
0012 {
0013     Q_OBJECT
0014 public:
0015     MountLoop();
0016 
0017     bool exec(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents);
0018 
0019 Q_SIGNALS:
0020     void result(bool status);
0021 
0022 public Q_SLOTS:
0023     void failed();
0024     void succeeded();
0025     void exitWith(bool status);
0026 };