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