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