Wallet encryption part 2: ask passphrase when needed, add menu options
[novacoin.git] / src / qt / bitcoingui.h
index b82818a..484987c 100644 (file)
@@ -20,6 +20,7 @@ class QAbstractItemModel;
 class QModelIndex;
 class QProgressBar;
 class QStackedWidget;
+class QUrl;
 QT_END_NAMESPACE
 
 class BitcoinGUI : public QMainWindow
@@ -41,6 +42,8 @@ public:
 protected:
     void changeEvent(QEvent *e);
     void closeEvent(QCloseEvent *event);
+    void dragEnterEvent(QDragEnterEvent *event);
+    void dropEvent(QDropEvent *event);
 
 private:
     ClientModel *clientModel;
@@ -54,9 +57,9 @@ private:
     AddressBookPage *receiveCoinsPage;
     SendCoinsDialog *sendCoinsPage;
 
-    QLabel *labelConnections;
+    QLabel *labelEncryptionIcon;
     QLabel *labelConnectionsIcon;
-    QLabel *labelBlocks;
+    QLabel *labelBlocksIcon;
     QLabel *progressBarLabel;
     QProgressBar *progressBar;
 
@@ -70,19 +73,23 @@ private:
     QAction *optionsAction;
     QAction *openBitcoinAction;
     QAction *exportAction;
+    QAction *encryptWalletAction;
+    QAction *changePassphraseAction;
 
     QSystemTrayIcon *trayIcon;
     TransactionView *transactionView;
 
+    QMovie *syncIconMovie;
+
     void createActions();
     QWidget *createTabs();
     void createTrayIcon();
 
 public slots:
-    void setBalance(qint64 balance);
     void setNumConnections(int count);
     void setNumBlocks(int count);
-    void setNumTransactions(int count);
+    void setEncryptionStatus(int status);
+
     void error(const QString &title, const QString &message);
     /* It is currently not possible to pass a return value to another thread through
        BlockingQueuedConnection, so use an indirected pointer.
@@ -103,7 +110,9 @@ private slots:
     void aboutClicked();
     void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
     void incomingTransaction(const QModelIndex & parent, int start, int end);
-    void exportClicked();
+    void encryptWallet(bool status);
+    void changePassphrase();
+    void unlockWallet();
 };
 
 #endif