1
/****************************************************************************
2
** infodlg.h - show contact info
3
** Copyright (C) 2001, 2002 Justin Karneges
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.
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.
15
** You should have received a copy of the GNU General Public License
16
** along with this program; if not, write to the Free Software
17
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
19
****************************************************************************/
2
* infodlg.h - handle vcard
3
* Copyright (C) 2001, 2002 Justin Karneges
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.
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.
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
27
24
#include"ui_info.h"
30
#include"uniquewindow.h"
31
#include"busywidget.h"
33
#define INFODLG_USER 0
34
#define INFODLG_CONTACT 1
37
class InfoDlg : public InfoUI, public UniqueWindow
34
class InfoDlg : public InfoUI
41
InfoDlg(int type, const QString &, const VCard &, int localStatus, QWidget *parent=0, const char *name=0);
43
static InfoDlg *find(const QString &);
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);
47
void closeEvent(QCloseEvent *);
50
void signalGetVCard(const QString &, QString *);
51
void signalCancelTransaction(const QString &);
52
void signalSetVCard(const VCard &, QString *);
44
//void closeEvent(QCloseEvent *);
56
void localUpdate(const JabRosterEntry &);
57
void updateVCard(const VCard &);
63
53
void textChanged();
67
VCard vcard, submit_vcard;
75
void setData(const VCard &);
59
void setData(const XMPP::VCard &);
60
XMPP::VCard makeVCard();
77
61
void fieldsEnable(bool);
78
62
void setReadOnly(bool);
80
64
void setEdited(bool);