1 /*
2     oscaruserinfo.h  -  Oscar Protocol Plugin
3 
4     Copyright (c) 2002 by Tom Linsky <twl6@po.cwru.edu>
5 
6     Kopete    (c) 2002 by the Kopete developers  <kopete-devel@kde.org>
7 
8     *************************************************************************
9     *                                                                       *
10     * This program is free software; you can redistribute it and/or modify  *
11     * it under the terms of the GNU General Public License as published by  *
12     * the Free Software Foundation; either version 2 of the License, or     *
13     * (at your option) any later version.                                   *
14     *                                                                       *
15     *************************************************************************
16 */
17 
18 #ifndef AIMUSERINFO_H
19 #define AIMUSERINFO_H
20 
21 #include <kdialog.h>
22 #include "aimcontact.h"
23 
24 namespace Kopete { class Contact; }
25 namespace Ui { class AIMUserInfoWidget; }
26 class QTextBrowser;
27 class KTextEdit;
28 class AIMAccount;
29 
30 class AIMUserInfoDialog : public KDialog
31 {
32 	Q_OBJECT
33 	public:
34 		AIMUserInfoDialog(AIMContact *c, AIMAccount *acc, QWidget *parent = nullptr);
35 		~AIMUserInfoDialog();
36 
37 	private:
38 		AIMAccount *mAccount;
39 		AIMContact* m_contact;
40 		Ui::AIMUserInfoWidget *mMainWidget;
41         QTextBrowser *userInfoView;
42 		KTextEdit *userInfoEdit;
43 
44 	private Q_SLOTS:
45 		void slotSaveClicked();
46 		void slotCloseClicked();
47 		void slotUpdateClicked();
48 		void slotUpdateProfile();
49 		void slotUpdatedStatus(const Kopete::Contact*);
50 		void slotUrlClicked(const QUrl&);
51 		void slotMailClicked(const QString&, const QString&);
52 
53 	Q_SIGNALS:
54 		void updateNickname(const QString &);
55 		void closing();
56 };
57 
58 #endif
59 
60