1 /* This file is part of the KDE project
2 Copyright (C) 2005 Michal Vaner <michal.vaner@kdemail.net>
3 Copyright (C) 2008-2009 Pali Rohár <pali.rohar@gmail.com>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
20 #ifndef SKYPEADDCONTACT_H
21 #define SKYPEADDCONTACT_H
23 #include <addcontactpage.h>
25 class SkypeAddContactPrivate
;
30 * @author Michal Vaner (vorner)
32 * Just a widget with a line and label ;-)
34 class SkypeAddContact
: public AddContactPage
39 SkypeAddContactPrivate
*d
;
43 * @param protocol Pointer to the Skype protocol.
44 * @param parent Widget inside which I will be showed.
45 * @param name My name I can be found by.
47 SkypeAddContact(SkypeProtocol
*protocol
, QWidget
*parent
, SkypeAccount
*account
, const char *name
);
53 * Check, weather user wrote something sane.
54 * @return True if it is useable, false otherwise.
56 virtual bool validateData();
59 * Adds it into the account.kdDebug(14311) << k_funcinfo << endl;//some debug info
60 * @param account Where to add it.
61 * @param metaContact Metacontact which will hold it.
62 * @return True if it worked, false if not.
64 virtual bool apply(Kopete::Account
*account
, Kopete::MetaContact
*metaContact
);