QtPass  1.3.3
Multi-platform GUI for pass, the standard unix password manager.
qtpass.h
Go to the documentation of this file.
1 #ifndef QTPASS_H
2 #define QTPASS_H
3 
4 #include <QObject>
5 #include <QProcess>
6 #include <QTimer>
7 
8 class MainWindow;
9 class Pass;
10 class QtPass : public QObject {
11  Q_OBJECT
12 
13 public:
14  QtPass(MainWindow *mainWindow);
15  ~QtPass();
16 
17  bool init();
18  void setClippedText(const QString &, const QString &p_output = QString());
19  void clearClippedText();
20  void setClipboardTimer();
21  bool isFreshStart() { return this->freshStart; }
22  void setFreshStart(const bool &fs) { this->freshStart = fs; }
23 
24 private:
25  MainWindow *m_mainWindow;
26 
27  QProcess fusedav;
28 
29  QTimer clearClipboardTimer;
30  QString clippedText;
31  bool freshStart;
32 
33  void setMainWindow();
34  void connectPassSignalHandlers(Pass *pass);
35  void mountWebDav();
36 
37 signals:
38 
39 public slots:
40  void clearClipboard();
41  void copyTextToClipboard(const QString &text);
42  void showTextAsQRCode(const QString &text);
43 
44 private slots:
45  void processError(QProcess::ProcessError);
46  void processErrorExit(int exitCode, const QString &);
47  void processFinished(const QString &, const QString &);
48 
49  void passStoreChanged(const QString &, const QString &);
50  void passShowHandlerFinished(QString output);
51 
52  void doGitPush();
53  void finishedInsert(const QString &, const QString &);
54  void onKeyGenerationComplete(const QString &p_output,
55  const QString &p_errout);
56 
57  void showInTextBrowser(QString output, QString prefix = QString(),
58  QString postfix = QString());
59 };
60 
61 #endif // QTPASS_H
QtPass::isFreshStart
bool isFreshStart()
Definition: qtpass.h:21
QtPass
Definition: qtpass.h:10
QtPass::clearClipboard
void clearClipboard()
MainWindow::clearClipboard remove clipboard contents.
Definition: qtpass.cpp:369
QtPass::clearClippedText
void clearClippedText()
Definition: qtpass.cpp:360
QtPass::showTextAsQRCode
void showTextAsQRCode(const QString &text)
displays the text as qrcode
Definition: qtpass.cpp:412
QtPass::setClipboardTimer
void setClipboardTimer()
Definition: qtpass.cpp:362
QtPass::~QtPass
~QtPass()
QtPass::~QtPass destroy!
Definition: qtpass.cpp:43
QtPass::QtPass
QtPass(MainWindow *mainWindow)
Definition: qtpass.cpp:27
QtPass::init
bool init()
QtPass::init make sure we are ready to go as soon as possible.
Definition: qtpass.cpp:60
QtPass::copyTextToClipboard
void copyTextToClipboard(const QString &text)
MainWindow::copyTextToClipboard copies text to your clipboard.
Definition: qtpass.cpp:393
QtPass::setClippedText
void setClippedText(const QString &, const QString &p_output=QString())
Definition: qtpass.cpp:352
QtPass::setFreshStart
void setFreshStart(const bool &fs)
Definition: qtpass.h:22
Pass
Acts as an abstraction for pass or pass imitation.
Definition: pass.h:25
MainWindow
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more,...
Definition: mainwindow.h:39