source: psi/vendor/affinix/current/src/infodlg.h@ 2

Last change on this file since 2 was 2, checked in by dmik, 19 years ago

Imported original Psi 0.10 sources from Affinix

File size: 1.6 KB
Line 
1/*
2 * infodlg.h - handle vcard
3 * Copyright (C) 2001, 2002 Justin Karneges
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20
21#ifndef INFODLG_H
22#define INFODLG_H
23
24#include"ui_info.h"
25
26namespace XMPP
27{
28 class Jid;
29 class VCard;
30}
31
32class PsiAccount;
33
34class InfoDlg : public InfoUI
35{
36 Q_OBJECT
37public:
38 enum { Self, Contact };
39 InfoDlg(int type, const XMPP::Jid &, const XMPP::VCard &, PsiAccount *, QWidget *parent=0, const char *name=0, bool cacheVCard = true);
40 ~InfoDlg();
41
42protected:
43 // reimplemented
44 //void closeEvent(QCloseEvent *);
45 void updatePhoto();
46
47public slots:
48 void doRefresh();
49 void updateStatus();
50 void done(int);
51
52private slots:
53 void jt_finished();
54 void doSubmit();
55 void textChanged();
56 void selectPhoto();
57 void clearPhoto();
58
59private:
60 class Private;
61 Private *d;
62
63 void setData(const XMPP::VCard &);
64 XMPP::VCard makeVCard();
65 void fieldsEnable(bool);
66 void setReadOnly(bool);
67 bool edited();
68 void setEdited(bool);
69 void setPreviewPhoto(const QString& str);
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.