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 SKYPEDETAILS_H
21 #define SKYPEDETAILS_H
23 #include <ui_skypedetailsbase.h>
27 namespace Ui
{ class SkypeDetailsBase
; }
30 * @author Michal Vaner (VORNER) <michal.vaner@kdemail.net>
32 * Dialog that shows users details
34 class SkypeDetails
: public KDialog
, private Ui::SkypeDetailsBase
{
37 SkypeAccount
*account
;
39 void changeAuthor(int item
);
41 ///Make sure it is deleted after it is closed
42 void closeEvent(QCloseEvent
*e
);
44 Ui::SkypeDetailsBase
*dialog
;
52 * Sets the ID, the nick and the name
53 * @param id The ID of the user
54 * @param nick user's nick
55 * @param name user's full name
57 SkypeDetails
&setNames(const QString
&id
, const QString
&nick
, const QString
&name
);
59 * Sets the phone numbers what will be showed
60 * @param priv The private phone number
61 * @param mobile The mobile phone
62 * @param work The work phone
64 SkypeDetails
&setPhones(const QString
&priv
, const QString
&mobile
, const QString
&work
);
67 * @param homepage The value to set
69 SkypeDetails
&setHomepage(const QString
&homepage
);
71 * Sets the users authorization
72 * @param author The authorization - 0 = authorized, 1 = not authorized, 2 = blocked
74 SkypeDetails
&setAuthor(int author
, SkypeAccount
*account
);
76 * Sets the string to show in 'sex' edit box
78 SkypeDetails
&setSex(const QString
&sex
);