#ifndef ADDRESSBOOKDIALOG_H #define ADDRESSBOOKDIALOG_H #include namespace Ui { class AddressBookDialog; } class AddressTableModel; QT_BEGIN_NAMESPACE class QTableView; QT_END_NAMESPACE class AddressBookDialog : public QDialog { Q_OBJECT public: explicit AddressBookDialog(QWidget *parent = 0); ~AddressBookDialog(); enum { SendingTab = 0, ReceivingTab = 1 } Tabs; void setModel(AddressTableModel *model); void setTab(int tab); const QString &getReturnValue() const { return returnValue; } private: Ui::AddressBookDialog *ui; AddressTableModel *model; QString returnValue; QTableView *getCurrentTable(); private slots: void on_buttonBox_accepted(); void on_deleteButton_clicked(); void on_tabWidget_currentChanged(int index); void on_newAddressButton_clicked(); void on_editButton_clicked(); void on_copyToClipboard_clicked(); }; #endif // ADDRESSBOOKDIALOG_H