~ubuntu-branches/ubuntu/feisty/psi/feisty

« back to all changes in this revision

Viewing changes to src/searchdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2002-04-19 02:28:44 UTC
  • Revision ID: james.westby@ubuntu.com-20020419022844-za7xgai5qyfd9xv6
Tags: upstream-0.8.5
ImportĀ upstreamĀ versionĀ 0.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** searchdlg.h - a dialog for searching for Jabber contacts
 
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 program; 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 SEARCHDLG_H
 
22
#define SEARCHDLG_H
 
23
 
 
24
#include<qwidget.h>
 
25
#include<qlabel.h>
 
26
#include<qlineedit.h>
 
27
#include<qptrlist.h>
 
28
#include"jabcommon.h"
 
29
#include"ui_search.h"
 
30
#include"uniquewindow.h"
 
31
#include"userlist.h"
 
32
#include"busywidget.h"
 
33
 
 
34
 
 
35
class SearchDlg : public SearchUI, public UniqueWindow
 
36
{
 
37
        Q_OBJECT
 
38
public:
 
39
        SearchDlg(const QString &jid, const JabForm &, int localStatus, QWidget *parent=0, const char *name=0);
 
40
        ~SearchDlg();
 
41
 
 
42
        static SearchDlg *find(const QString &);
 
43
 
 
44
protected:
 
45
        void closeEvent(QCloseEvent *);
 
46
 
 
47
signals:
 
48
        void signalSubmitForm(const JabForm &, QString *id);
 
49
        void signalCancelTransaction(const QString &);
 
50
        void aInfo(const QString &);
 
51
        void aAdd(const QString &, const QString &, const QString &);
 
52
 
 
53
public slots:
 
54
        void doSubmitForm();
 
55
        void putSearchFormResponse(JabRoster *);
 
56
        void localUpdate(const JabRosterEntry &);
 
57
 
 
58
private slots:
 
59
        void doStop();
 
60
        void selectionChanged();
 
61
        void doAdd();
 
62
        void doInfo();
 
63
 
 
64
private:
 
65
        void addEntry(const QString &jid, const QString &nick, const QString &first, const QString &last, const QString &email);
 
66
        void clear();
 
67
 
 
68
        QString v_jid;
 
69
        JabForm form;
 
70
        int localStatus;
 
71
 
 
72
        bool isBusy;
 
73
        BusyWidget *busy;
 
74
        QString id;
 
75
 
 
76
        QPtrList<QLabel> lb_field;
 
77
        QPtrList<QLineEdit> le_field;
 
78
};
 
79
 
 
80
#endif