forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignatureactions.h
67 lines (47 loc) · 1.14 KB
/
signatureactions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// signatureactions.h
//
// Copyright (c) 20132014 Eric Lombrozo
//
// All Rights Reserved.
#pragma once
#include <QObject>
class QAction;
class QMenu;
class QString;
class SignatureDialog;
namespace CoinDB
{
class SynchedVault;
}
class SignatureActions : public QObject
{
Q_OBJECT
public:
SignatureActions(CoinDB::SynchedVault& synchedVault, SignatureDialog& dialog);
~SignatureActions();
QMenu* getMenu() const { return menu; }
// void updateVaultStatus();
signals:
void error(const QString& message);
private slots:
void updateCurrentKeychain(const QModelIndex& current, const QModelIndex& previous);
void addSignature();
bool unlockKeychain();
void lockKeychain();
private:
void createActions();
void createMenus();
void refreshCurrentKeychain();
CoinDB::SynchedVault& m_synchedVault;
SignatureDialog& m_dialog;
int m_currentRow;
QString m_currentKeychain;
QAction* addSignatureAction;
QAction* unlockKeychainAction;
QAction* lockKeychainAction;
QMenu* menu;
};