LCOV - code coverage report
Current view: top level - src/qt - receiverequestdialog.h (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 0 3 0.0 %
Date: 2015-10-12 22:39:14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2011-2013 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_RECEIVEREQUESTDIALOG_H
       6             : #define BITCOIN_QT_RECEIVEREQUESTDIALOG_H
       7             : 
       8             : #include "walletmodel.h"
       9             : 
      10             : #include <QDialog>
      11             : #include <QImage>
      12             : #include <QLabel>
      13             : 
      14             : class OptionsModel;
      15             : 
      16             : namespace Ui {
      17             :     class ReceiveRequestDialog;
      18             : }
      19             : 
      20             : QT_BEGIN_NAMESPACE
      21             : class QMenu;
      22             : QT_END_NAMESPACE
      23             : 
      24             : /* Label widget for QR code. This image can be dragged, dropped, copied and saved
      25             :  * to disk.
      26             :  */
      27           0 : class QRImageWidget : public QLabel
      28             : {
      29           0 :     Q_OBJECT
      30             : 
      31             : public:
      32             :     explicit QRImageWidget(QWidget *parent = 0);
      33             :     QImage exportImage();
      34             : 
      35             : public Q_SLOTS:
      36             :     void saveImage();
      37             :     void copyImage();
      38             : 
      39             : protected:
      40             :     virtual void mousePressEvent(QMouseEvent *event);
      41             :     virtual void contextMenuEvent(QContextMenuEvent *event);
      42             : 
      43             : private:
      44             :     QMenu *contextMenu;
      45             : };
      46             : 
      47             : class ReceiveRequestDialog : public QDialog
      48             : {
      49           0 :     Q_OBJECT
      50             : 
      51             : public:
      52             :     explicit ReceiveRequestDialog(QWidget *parent = 0);
      53             :     ~ReceiveRequestDialog();
      54             : 
      55             :     void setModel(OptionsModel *model);
      56             :     void setInfo(const SendCoinsRecipient &info);
      57             : 
      58             : private Q_SLOTS:
      59             :     void on_btnCopyURI_clicked();
      60             :     void on_btnCopyAddress_clicked();
      61             : 
      62             :     void update();
      63             : 
      64             : private:
      65             :     Ui::ReceiveRequestDialog *ui;
      66             :     OptionsModel *model;
      67             :     SendCoinsRecipient info;
      68             : };
      69             : 
      70             : #endif // BITCOIN_QT_RECEIVEREQUESTDIALOG_H

Generated by: LCOV version 1.11