~ubuntu-branches/ubuntu/precise/konversation/precise-updates

« back to all changes in this revision

Viewing changes to src/dcc/chatcontainer.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-17 09:50:41 UTC
  • mfrom: (1.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091217095041-k5ssvxm2u8wgf0ll
Tags: 1.2.1+git20091217-0ubuntu1
* New upstream git snapshot:
  - Refresh all patches
  - Update initial Indicator patch to apply properly.
  - Remove docs and locale files from the install manifest; they aren't
    present in git snapshots. We will uncomment them for official (pre)
    releases with tarballs from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  This program is free software; you can redistribute it and/or modify
 
3
  it under the terms of the GNU General Public License as published by
 
4
  the Free Software Foundation; either version 2 of the License, or
 
5
  (at your option) any later version.
 
6
*/
 
7
 
 
8
/*
 
9
  Copyright (C) 2009 Bernd Buschinski <b.buschinski@web.de>
 
10
*/
 
11
 
 
12
#ifndef CHATCONTAINER_H
 
13
#define CHATCONTAINER_H
 
14
 
 
15
#include "chatwindow.h"
 
16
#include "chat.h"
 
17
 
 
18
class QSplitter;
 
19
class IRCInput;
 
20
 
 
21
namespace Konversation
 
22
{
 
23
    class TopicLabel;
 
24
 
 
25
    namespace DCC
 
26
    {
 
27
        class ChatContainer : public ChatWindow
 
28
        {
 
29
            Q_OBJECT
 
30
 
 
31
            public:
 
32
                ChatContainer(QWidget *parent, Chat *chat);
 
33
                ~ChatContainer();
 
34
 
 
35
            // ChatWindow
 
36
                virtual QString getTextInLine();
 
37
                virtual bool closeYourself(bool askForConfirmation=true);
 
38
                virtual bool canBeFrontView();
 
39
                virtual bool searchView();
 
40
 
 
41
                virtual void setChannelEncoding(const QString &encoding);
 
42
                virtual QString getChannelEncoding();
 
43
                virtual QString getChannelEncodingDefaultDesc();
 
44
                virtual void emitUpdateInfo();
 
45
 
 
46
                virtual bool isInsertSupported();
 
47
                QString ownNick() const;
 
48
 
 
49
            protected:
 
50
                /** Called from ChatWindow adjustFocus */
 
51
                virtual void childAdjustFocus();
 
52
 
 
53
            public slots:
 
54
                void updateAppearance();
 
55
                void appendInputText(const QString &text, bool fromCursor);
 
56
            // ChatWindow end
 
57
 
 
58
            public slots:
 
59
                void setPartnerNick(const QString &nick);
 
60
 
 
61
            public slots:
 
62
                void textEntered();
 
63
                void textPasted(const QString &text);
 
64
 
 
65
                void receivedLine(const QString &line);
 
66
                void chatStatusChanged(Konversation::DCC::Chat *chat, Konversation::DCC::Chat::Status newstatus, Konversation::DCC::Chat::Status oldstatus);
 
67
 
 
68
            protected slots:
 
69
                void upnpError(const QString &errorMessage);
 
70
 
 
71
            private:
 
72
                QString m_encoding;
 
73
                QSplitter *m_headerSplitter;
 
74
 
 
75
                Konversation::TopicLabel *m_topicLabel;
 
76
                IRCInput *m_dccChatInput;
 
77
 
 
78
                Chat *m_chat;
 
79
        };
 
80
    }
 
81
}
 
82
 
 
83
#endif // CHATCONTAINER_H