~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/skype/skypedetails.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
Import upstream version 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
4
 
 
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.
 
8
 
 
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.
 
13
 
 
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.
 
18
 
 
19
*/
 
20
#ifndef SKYPEDETAILS_H
 
21
#define SKYPEDETAILS_H
 
22
 
 
23
#include <ui_skypedetailsbase.h>
 
24
 
 
25
class QString;
 
26
class SkypeAccount;
 
27
namespace Ui { class SkypeDetailsBase; }
 
28
 
 
29
/**
 
30
 * @author Michal Vaner (VORNER) <michal.vaner@kdemail.net>
 
31
 * @author Pali Rohár
 
32
 * Dialog that shows users details
 
33
 */
 
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
 
56
                 */
 
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
 
63
                 */
 
64
                SkypeDetails &setPhones(const QString &priv, const QString &mobile, const QString &work);
 
65
                /**
 
66
                 * Sets the homepage
 
67
                 * @param homepage The value to set
 
68
                 */
 
69
                SkypeDetails &setHomepage(const QString &homepage);
 
70
                /**
 
71
                 * Sets the users authorization
 
72
                 * @param author The authorization - 0 = authorized, 1 = not authorized, 2 = blocked
 
73
                 */
 
74
                SkypeDetails &setAuthor(int author, SkypeAccount *account);
 
75
                /**
 
76
                 * Sets the string to show in 'sex' edit box
 
77
                 */
 
78
                SkypeDetails &setSex(const QString &sex);
 
79
};
 
80
 
 
81
#endif