Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / protocols / skype / skypedetails.h
blob8563bfb2f438931691070d52365c72fb7ca450c2
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>
25 class QString;
26 class SkypeAccount;
27 namespace Ui { class SkypeDetailsBase; }
29 /**
30 * @author Michal Vaner (VORNER) <michal.vaner@kdemail.net>
31 * @author Pali Rohár
32 * Dialog that shows users details
34 class SkypeDetails : public KDialog, private Ui::SkypeDetailsBase {
35 Q_OBJECT
36 private:
37 SkypeAccount *account;
38 protected slots:
39 void changeAuthor(int item);
40 protected:
41 ///Make sure it is deleted after it is closed
42 void closeEvent(QCloseEvent *e);
43 ///Main dialog widget
44 Ui::SkypeDetailsBase *dialog;
45 public:
46 ///Just constructor
47 SkypeDetails();
48 ///Only a destructor
49 ~SkypeDetails();
50 public slots:
51 /**
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);
58 /**
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);
65 /**
66 * Sets the homepage
67 * @param homepage The value to set
69 SkypeDetails &setHomepage(const QString &homepage);
70 /**
71 * Sets the users authorization
72 * @param author The authorization - 0 = authorized, 1 = not authorized, 2 = blocked
74 SkypeDetails &setAuthor(int author, SkypeAccount *account);
75 /**
76 * Sets the string to show in 'sex' edit box
78 SkypeDetails &setSex(const QString &sex);
81 #endif