1 /* *************************************************************************
2 * copyright: (C) 2003 Richard Lärkäng <nouseforaname@home.se> *
3 *************************************************************************
6 /* *************************************************************************
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
13 *************************************************************************
17 #include "smsaddcontactpage.h"
18 #include "kopeteaccount.h"
21 #include <qlineedit.h>
23 #include <Q3VBoxLayout>
27 SMSAddContactPage::SMSAddContactPage(QWidget
*parent
)
28 : AddContactPage(parent
)
30 (new Q3VBoxLayout(this))->setAutoAdd(true);
31 smsdata
= new smsAddUI(this);
34 SMSAddContactPage::~SMSAddContactPage()
39 bool SMSAddContactPage::apply(Kopete::Account
* a
, Kopete::MetaContact
* m
)
43 QString nr
= smsdata
->addNr
->text();
44 QString name
= smsdata
->addName
->text();
46 return a
->addContact( nr
, m
, Kopete::Account::ChangeKABC
);
53 bool SMSAddContactPage::validateData()
58 #include "smsaddcontactpage.moc"
61 * c-indentation-style: k&r
66 // vim: set noet ts=4 sts=4 sw=4: