Warning, file /sdk/cervisia/progressdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (c) 1999-2002 Bernd Gehrmann <bernd@mail.berlios.de>
0003  *  Copyright (c) 2002      Christian Loose <christian.loose@hamburg.de>
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 2 of the License, or
0008  * (at your option) any later version.
0009  *
0010  * This program is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013  * GNU General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0018  */
0019 
0020 #ifndef PROGRESSDIALOG_H
0021 #define PROGRESSDIALOG_H
0022 
0023 #include <QDBusReply>
0024 #include <QDialog>
0025 
0026 class QString;
0027 class QWidget;
0028 class QDBusObjectPath;
0029 class ProgressDialog : public QDialog
0030 {
0031     Q_OBJECT
0032 
0033 public:
0034     ProgressDialog(QWidget *parent,
0035                    const QString &heading,
0036                    const QString &cvsServiceNameService,
0037                    const QDBusReply<QDBusObjectPath> &job,
0038                    const QString &errorIndicator,
0039                    const QString &caption = "");
0040     ~ProgressDialog() override;
0041 
0042     bool execute();
0043     bool getLine(QString &line);
0044     QStringList getOutput() const;
0045 
0046 public Q_SLOTS:
0047     void slotReceivedOutputNonGui(QString buffer);
0048     void slotReceivedOutput(QString buffer);
0049     void slotJobExited(bool normalExit, int status);
0050 
0051 protected slots:
0052     void reject() override;
0053 
0054 private slots:
0055     void slotTimeoutOccurred();
0056 
0057 private:
0058     void setupGui(const QString &heading);
0059     void stopNonGuiPart();
0060     void startGuiPart();
0061     void processOutput();
0062 
0063     struct Private;
0064     Private *d;
0065 };
0066 
0067 #endif // PROGRESSDIALOG_H