twisterp2pbittorrentblockchainnetworkipv6microbloggingdecentralizedsocial-networkdhttwister-coretwisterarmyp2p-networktwister-servertwister-ipv6
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
14 years ago
|
#ifndef ADDRESSBOOKPAGE_H
|
||
|
#define ADDRESSBOOKPAGE_H
|
||
14 years ago
|
|
||
|
#include <QDialog>
|
||
|
|
||
14 years ago
|
namespace Ui {
|
||
14 years ago
|
class AddressBookPage;
|
||
14 years ago
|
}
|
||
14 years ago
|
class AddressTableModel;
|
||
14 years ago
|
|
||
14 years ago
|
QT_BEGIN_NAMESPACE
|
||
|
class QTableView;
|
||
14 years ago
|
class QItemSelection;
|
||
14 years ago
|
QT_END_NAMESPACE
|
||
|
|
||
14 years ago
|
class AddressBookPage : public QDialog
|
||
14 years ago
|
{
|
||
|
Q_OBJECT
|
||
14 years ago
|
|
||
14 years ago
|
public:
|
||
14 years ago
|
enum Tabs {
|
||
14 years ago
|
SendingTab = 0,
|
||
|
ReceivingTab = 1
|
||
14 years ago
|
};
|
||
|
|
||
|
enum Mode {
|
||
|
ForSending, // Pick address for sending
|
||
|
ForEditing // Open address book for editing
|
||
|
};
|
||
|
|
||
14 years ago
|
explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent = 0);
|
||
|
~AddressBookPage();
|
||
14 years ago
|
|
||
14 years ago
|
void setModel(AddressTableModel *model);
|
||
14 years ago
|
const QString &getReturnValue() const { return returnValue; }
|
||
14 years ago
|
|
||
|
public slots:
|
||
|
void done(int retval);
|
||
|
|
||
14 years ago
|
private:
|
||
14 years ago
|
Ui::AddressBookPage *ui;
|
||
14 years ago
|
AddressTableModel *model;
|
||
14 years ago
|
Mode mode;
|
||
14 years ago
|
Tabs tab;
|
||
14 years ago
|
QString returnValue;
|
||
|
|
||
|
QTableView *getCurrentTable();
|
||
14 years ago
|
|
||
|
private slots:
|
||
14 years ago
|
void on_deleteButton_clicked();
|
||
14 years ago
|
void on_newAddressButton_clicked();
|
||
|
void on_copyToClipboard_clicked();
|
||
14 years ago
|
void selectionChanged();
|
||
14 years ago
|
};
|
||
|
|
||
|
#endif // ADDRESSBOOKDIALOG_H
|