LCOV - code coverage report
Current view: top level - src - qtpass.h Coverage Total Hit
Test: .lcov.total Lines: 0.0 % 3 0
Test Date: 2026-03-23 21:55:57 Functions: - 0 0

            Line data    Source code
       1              : // SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
       2              : // SPDX-License-Identifier: GPL-3.0-or-later
       3              : #ifndef SRC_QTPASS_H_
       4              : #define SRC_QTPASS_H_
       5              : 
       6              : #include <QObject>
       7              : #include <QProcess>
       8              : #include <QTimer>
       9              : 
      10              : class MainWindow;
      11              : class Pass;
      12              : class QtPass : public QObject {
      13            0 :   Q_OBJECT
      14              : 
      15              : public:
      16              :   QtPass(MainWindow *mainWindow);
      17              :   ~QtPass();
      18              : 
      19              :   auto init() -> bool;
      20              :   void setClippedText(const QString &, const QString &p_output = QString());
      21              :   void clearClippedText();
      22              :   void setClipboardTimer();
      23            0 :   auto isFreshStart() -> bool { return this->freshStart; }
      24            0 :   void setFreshStart(const bool &fs) { this->freshStart = fs; }
      25              : 
      26              : private:
      27              :   MainWindow *m_mainWindow;
      28              : 
      29              :   QProcess fusedav;
      30              : 
      31              :   QTimer clearClipboardTimer;
      32              :   QString clippedText;
      33              :   bool freshStart;
      34              : 
      35              :   void setMainWindow();
      36              :   void connectPassSignalHandlers(Pass *pass);
      37              :   void mountWebDav();
      38              : 
      39              : signals:
      40              : 
      41              : public slots:
      42              :   void clearClipboard();
      43              :   void copyTextToClipboard(const QString &text);
      44              :   void showTextAsQRCode(const QString &text);
      45              : 
      46              : private slots:
      47              :   void processError(QProcess::ProcessError);
      48              :   void processErrorExit(int exitCode, const QString &);
      49              :   void processFinished(const QString &, const QString &);
      50              : 
      51              :   void passStoreChanged(const QString &, const QString &);
      52              :   void passShowHandlerFinished(QString output);
      53              : 
      54              :   void doGitPush();
      55              :   void finishedInsert(const QString &, const QString &);
      56              :   void onKeyGenerationComplete(const QString &p_output,
      57              :                                const QString &p_errout);
      58              : 
      59              :   void showInTextBrowser(QString output, const QString &prefix = QString(),
      60              :                          const QString &postfix = QString());
      61              : };
      62              : 
      63              : #endif // SRC_QTPASS_H_
        

Generated by: LCOV version 2.4-beta