2009-04-20 16:42:58 +02:00
|
|
|
#ifndef ADDRESSBOOK_H
|
|
|
|
|
#define ADDRESSBOOK_H
|
|
|
|
|
|
2009-06-30 15:42:17 +02:00
|
|
|
//! [include]
|
2009-08-07 15:03:29 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QMap>
|
|
|
|
|
#include <QMessageBox>
|
2009-06-30 15:42:17 +02:00
|
|
|
//! [include]
|
2009-04-20 16:42:58 +02:00
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
|
{
|
2009-06-04 13:53:32 +02:00
|
|
|
class AddressBook;
|
2009-04-20 16:42:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class AddressBook : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
AddressBook(QWidget *parent = 0);
|
|
|
|
|
~AddressBook();
|
|
|
|
|
|
2009-06-02 17:42:27 +02:00
|
|
|
//! [slot definition]
|
|
|
|
|
public slots:
|
|
|
|
|
void addContact();
|
|
|
|
|
void submitContact();
|
|
|
|
|
void cancel();
|
|
|
|
|
//! [slot definition]
|
|
|
|
|
|
2009-04-20 16:42:58 +02:00
|
|
|
private:
|
2009-06-04 13:53:32 +02:00
|
|
|
Ui::AddressBook *ui;
|
2009-06-02 17:42:27 +02:00
|
|
|
|
2009-07-16 18:20:03 +02:00
|
|
|
//! [members]
|
2009-06-02 17:42:27 +02:00
|
|
|
QMap<QString, QString> contacts;
|
|
|
|
|
QString oldName;
|
|
|
|
|
QString oldAddress;
|
2009-07-16 18:20:03 +02:00
|
|
|
//! [members]
|
2009-04-20 16:42:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // ADDRESSBOOK_H
|