LCOV - code coverage report
Current view: top level - src/qt - utilitydialog.h (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 0 3 0.0 %
Date: 2020-09-26 01:30:44 Functions: 0 5 0.0 %

          Line data    Source code
       1             : // Copyright (c) 2011-2020 The Bitcoin Core developers
       2             : // Distributed under the MIT software license, see the accompanying
       3             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4             : 
       5             : #ifndef BITCOIN_QT_UTILITYDIALOG_H
       6             : #define BITCOIN_QT_UTILITYDIALOG_H
       7             : 
       8             : #include <QDialog>
       9             : #include <QWidget>
      10             : 
      11             : QT_BEGIN_NAMESPACE
      12             : class QMainWindow;
      13             : QT_END_NAMESPACE
      14             : 
      15             : namespace Ui {
      16             :     class HelpMessageDialog;
      17             : }
      18             : 
      19             : /** "Help message" dialog box */
      20             : class HelpMessageDialog : public QDialog
      21             : {
      22           0 :     Q_OBJECT
      23             : 
      24             : public:
      25             :     explicit HelpMessageDialog(QWidget *parent, bool about);
      26             :     ~HelpMessageDialog();
      27             : 
      28             :     void printToConsole();
      29             :     void showOrPrint();
      30             : 
      31             : private:
      32             :     Ui::HelpMessageDialog *ui;
      33             :     QString text;
      34             : 
      35             : private Q_SLOTS:
      36             :     void on_okButton_accepted();
      37             : };
      38             : 
      39             : 
      40             : /** "Shutdown" window */
      41           0 : class ShutdownWindow : public QWidget
      42             : {
      43           0 :     Q_OBJECT
      44             : 
      45             : public:
      46             :     explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Widget);
      47             :     static QWidget* showShutdownWindow(QMainWindow* window);
      48             : 
      49             : protected:
      50             :     void closeEvent(QCloseEvent *event) override;
      51             : };
      52             : 
      53             : #endif // BITCOIN_QT_UTILITYDIALOG_H

Generated by: LCOV version 1.15