~ubuntu-branches/ubuntu/karmic/psi/karmic

« back to all changes in this revision

Viewing changes to src/xmlconsole.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * xmlconsole.h - dialog for interacting manually with Jabber
3
 
 * Copyright (C) 2001, 2002  Justin Karneges
 
3
 * Copyright (C) 2001, 2002  Justin Karneges, Remko Troncon
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU General Public License
21
21
#ifndef XMLCONSOLE_H
22
22
#define XMLCONSOLE_H
23
23
 
24
 
#include<qwidget.h>
25
 
#include<qdialog.h>
26
 
#include<qguardedptr.h>
 
24
#include <QWidget>
 
25
#include <QDialog>
 
26
#include <QPointer>
 
27
 
 
28
#include "ui_xmlconsole.h"
27
29
 
28
30
class QTextEdit;
29
31
class QCheckBox;
34
36
{
35
37
        Q_OBJECT
36
38
public:
37
 
        XmlConsole(PsiAccount *, QWidget *parent=0, const char *name=0);
 
39
        XmlConsole(PsiAccount *);
38
40
        ~XmlConsole();
39
41
        void enable();
40
42
        
41
43
private slots:
 
44
        void clear();
42
45
        void updateCaption();
43
46
        void insertXml();
44
47
        void client_xmlIncoming(const QString &);
45
48
        void client_xmlOutgoing(const QString &);
46
49
        void xml_textReady(const QString &);
47
50
 
 
51
protected:
 
52
        bool filtered(const QString&) const;
 
53
 
48
54
private:
49
 
        QTextEdit *te;
50
 
        QCheckBox *ck_enable;
 
55
        Ui::XMLConsole ui_;
51
56
        PsiAccount *pa;
52
 
        QGuardedPtr<XmlPrompt> prompt;
 
57
        QPointer<XmlPrompt> prompt;
53
58
};
54
59
 
55
60
class XmlPrompt : public QDialog