~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/chatdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2006-01-20 00:20:36 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060120002036-7nw6yo6totip0ee5
Tags: 0.10-2
* Added upstream changelog (Closes: Bug#327748)
* Mention --no-gpg and --no-gpg-agent in manpage (Closes: Bug#204416)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef CHATDLG_H
22
22
#define CHATDLG_H
23
23
 
24
 
#include<qwidget.h>
25
 
#include"im.h"
 
24
#include "advwidget.h"
 
25
#include "im.h"
26
26
 
27
27
using namespace XMPP;
28
28
 
31
31
class QDropEvent;
32
32
class QDragEnterEvent;
33
33
 
34
 
class ChatDlg : public QWidget
 
34
class ChatDlg : public AdvancedWidget<QWidget>
35
35
{
36
36
        Q_OBJECT
37
37
public:
40
40
 
41
41
        const Jid & jid() const;
42
42
        void setJid(const Jid &);
 
43
        const QString & getDisplayNick();
43
44
 
44
45
        static QSize defaultSize();
45
46
 
49
50
        void messagesRead(const Jid &);
50
51
        void aSend(const Message &);
51
52
        void aFile(const Jid &);
 
53
        void captionChanged(ChatDlg*);
 
54
        void contactIsComposing(ChatDlg*, bool);
 
55
        void unreadMessageUpdate(ChatDlg*, int);
52
56
 
53
57
protected:
54
58
        // reimplemented
64
68
        void optionsUpdate();
65
69
        void updateContact(const Jid &, bool);
66
70
        void incomingMessage(const Message &);
67
 
        // Avatars
68
 
        //void updateAvatar();
69
 
        //void updateAvatar(const Jid&);
 
71
        void activated();
 
72
        void updateAvatar();
 
73
        void updateAvatar(const Jid&);
70
74
 
71
75
private slots:
72
76
        void doInfo();
77
81
        void doFile();
78
82
        void setKeepOpenFalse();
79
83
        void setWarnSendFalse();
80
 
        void flashAnimate();
81
84
        void updatePGP();
82
85
        void encryptedMessageSent(int, bool);
83
86
        void slotScroll();
86
89
        void toggleSmallChat();
87
90
        void toggleEncryption();
88
91
        void buildMenu();
 
92
        void logSelectionChanged();
89
93
 
90
94
public:
91
95
        class Private;
92
96
private:
93
97
        Private *d;
94
98
 
95
 
        void contextMenuEvent (QContextMenuEvent *);
 
99
        void contextMenuEvent(QContextMenuEvent *);
96
100
 
97
101
        void doneSend();
98
102
        void setLooks();
99
103
        void setSelfDestruct(int);
100
104
        void updateCaption();
101
 
        void doFlash(bool);
102
105
        void deferredScroll();
103
106
 
104
107
        void appendMessage(const Message &, bool local=false);