QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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
8class MainWindow;
9class Pass;
10class QtPass : public QObject {
11 Q_OBJECT
12
13public:
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
24private:
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
37signals:
38
39public slots:
40 void clearClipboard();
41 void copyTextToClipboard(const QString &text);
42 void showTextAsQRCode(const QString &text);
43
44private 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
The MainWindow class does way too much, not only is it a switchboard, configuration handler and more,...
Definition: mainwindow.h:37
Acts as an abstraction for pass or pass imitation.
Definition: pass.h:18
Definition: qtpass.h:10
void clearClippedText()
Definition: qtpass.cpp:357
void setClipboardTimer()
Definition: qtpass.cpp:359
void clearClipboard()
MainWindow::clearClipboard remove clipboard contents.
Definition: qtpass.cpp:366
bool init()
QtPass::init make sure we are ready to go as soon as possible.
Definition: qtpass.cpp:61
void setFreshStart(const bool &fs)
Definition: qtpass.h:22
~QtPass()
QtPass::~QtPass destroy!
Definition: qtpass.cpp:44
void setClippedText(const QString &, const QString &p_output=QString())
Definition: qtpass.cpp:349
bool isFreshStart()
Definition: qtpass.h:21
void copyTextToClipboard(const QString &text)
MainWindow::copyTextToClipboard copies text to your clipboard.
Definition: qtpass.cpp:391
void showTextAsQRCode(const QString &text)
displays the text as qrcode
Definition: qtpass.cpp:410