2016-02-21 17:03:41 +01:00
|
|
|
#include "addressbook.h"
|
|
|
|
|
#include "data/addressbookdata.h"
|
|
|
|
|
#include "addressbookform.h"
|
|
|
|
|
#include "addressbookgrid.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Addressbook::Addressbook()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Addressbook::initServiceUi()
|
|
|
|
|
{
|
|
|
|
|
AddressbookGrid *grid = new AddressbookGrid();
|
|
|
|
|
AddressbookForm *form = new AddressbookForm();
|
|
|
|
|
|
|
|
|
|
m_service = new Service<AddressbookData>;
|
|
|
|
|
m_ui = grid;
|
|
|
|
|
((AddressbookGrid *) m_ui)->setForm(form);
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-03 15:03:51 +01:00
|
|
|
QIcon Addressbook::pluginIcon()
|
|
|
|
|
{
|
|
|
|
|
return QIcon(":/icons/addressbookPlugin.svg");
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-21 17:03:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|