~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to src/psichatdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef PSICHATDLG_H
 
2
#define PSICHATDLG_H
 
3
 
 
4
#include "chatdlg.h"
 
5
 
 
6
#include "ui_chatdlg.h"
 
7
 
 
8
class IconAction;
 
9
 
 
10
class PsiChatDlg : public ChatDlg
 
11
{
 
12
        Q_OBJECT
 
13
public:
 
14
        PsiChatDlg(const Jid& jid, PsiAccount* account, TabManager* tabManager);
 
15
 
 
16
protected:
 
17
        // reimplemented
 
18
        void contextMenuEvent(QContextMenuEvent *);
 
19
 
 
20
private:
 
21
        void setContactToolTip(QString text);
 
22
 
 
23
private slots:
 
24
        void toggleSmallChat();
 
25
        void doClearButton();
 
26
        void buildMenu();
 
27
        void updateCounter();
 
28
        void updateIdentityVisibility();
 
29
        void updateCountVisibility();
 
30
 
 
31
        // reimplemented
 
32
        void chatEditCreated();
 
33
 
 
34
private:
 
35
        void initToolBar();
 
36
        void initToolButtons();
 
37
 
 
38
        // reimplemented
 
39
        void initUi();
 
40
        void capsChanged();
 
41
        bool isEncryptionEnabled() const;
 
42
        void contactUpdated(UserListItem* u, int status, const QString& statusString);
 
43
        void updateAvatar();
 
44
        void optionsUpdate();
 
45
        void updatePGP();
 
46
        void setPGPEnabled(bool enabled);
 
47
        void activated();
 
48
        void setLooks();
 
49
        void setShortcuts();
 
50
        QString colorString(bool local, SpooledType spooled) const;
 
51
        void appendSysMsg(const QString &);
 
52
        void appendEmoteMessage(SpooledType spooled, const QDateTime& time, bool local, QString txt);
 
53
        void appendNormalMessage(SpooledType spooled, const QDateTime& time, bool local, QString txt);
 
54
        void appendMessageFields(const Message& m);
 
55
        void updateLastMsgTime(QDateTime t);
 
56
        ChatView* chatView() const;
 
57
        ChatEdit* chatEdit() const;
 
58
 
 
59
private:
 
60
        Ui::ChatDlg ui_;
 
61
 
 
62
        QMenu* pm_settings_;
 
63
 
 
64
        IconAction* act_clear_;
 
65
        IconAction* act_history_;
 
66
        IconAction* act_info_;
 
67
        IconAction* act_pgp_;
 
68
        IconAction* act_icon_;
 
69
        IconAction* act_file_;
 
70
        IconAction* act_compact_;
 
71
        IconAction* act_voice_;
 
72
 
 
73
        bool smallChat_;
 
74
        QDateTime lastMsgTime_;
 
75
};
 
76
 
 
77
#endif