1 #ifndef ADDRESSBOOKPAGE_H
2 #define ADDRESSBOOKPAGE_H
9 class AddressTableModel;
14 class QSortFilterProxyModel;
17 class AddressBookPage : public QDialog
28 ForSending, // Pick address for sending
29 ForEditing // Open address book for editing
32 explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent = 0);
35 void setModel(AddressTableModel *model);
36 const QString &getReturnValue() const { return returnValue; }
39 void done(int retval);
43 Ui::AddressBookPage *ui;
44 AddressTableModel *model;
48 QSortFilterProxyModel *proxyModel;
50 QTableView *getCurrentTable();
53 void on_deleteButton_clicked();
54 void on_newAddressButton_clicked();
55 void on_copyToClipboard_clicked();
56 void selectionChanged();
59 #endif // ADDRESSBOOKDIALOG_H