~ubuntu-branches/ubuntu/hoary/kvirc/hoary

« back to all changes in this revision

Viewing changes to src/kvirc/dcc/kvi_dcc_chat.h

  • Committer: Bazaar Package Importer
  • Author(s): Robin Verduijn
  • Date: 2004-12-14 15:32:19 UTC
  • mfrom: (0.2.1 upstream) (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041214153219-fdink3gyp2s20b6g
Tags: 2:2.1.3.1-2
* Change Recommends on xmms to a Suggests.
* Rebuild against KDE 3.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _KVI_DCC_CHAT_H_INCLUDED_
 
2
#define _KVI_DCC_CHAT_H_INCLUDED_
 
3
 
 
4
// =============================================================================
 
5
//
 
6
//      --- kvi_dcc_chat.h ---
 
7
//
 
8
//   This file is part of the KVIrc IRC client distribution
 
9
//   Copyright (C) 1999-2000 Szymon Stefanek (stefanek@tin.it)
 
10
//
 
11
//   This program is FREE software. You can redistribute it and/or
 
12
//   modify it under the terms of the GNU General Public License
 
13
//   as published by the Free Software Foundation; either version 2
 
14
//   of the License, or (at your opinion) any later version.
 
15
//
 
16
//   This program is distributed in the HOPE that it will be USEFUL,
 
17
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
19
//   See the GNU General Public License for more details.
 
20
//
 
21
//   You should have received a copy of the GNU General Public License
 
22
//   along with this program. If not, write to the Free Software Foundation,
 
23
//   Inc, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
24
//
 
25
// =============================================================================
 
26
 
 
27
#include "kvi_dcc_chat_thread.h"
 
28
#include "kvi_string.h"
 
29
#include "kvi_window.h"
 
30
 
 
31
class KviIrcView;
 
32
 
 
33
class KviDccChat : public KviWindow
 
34
{
 
35
        Q_OBJECT
 
36
public:
 
37
        KviDccChat(KviFrame *, const char *name);
 
38
        ~KviDccChat();
 
39
 
 
40
        void acceptDccRequest(const char *nick, const char *username, const char *host, unsigned long addr, unsigned short port);
 
41
        void requestDcc(const char *nick, const char *username, const char *host);
 
42
        bool sendData(const char *buffer);
 
43
 
 
44
        KviStr            m_szLocalNick;
 
45
        KviStr            m_szLocalMask;
 
46
        KviStr            m_szRemoteNick;
 
47
protected:
 
48
        virtual QPixmap *myIconPtr();
 
49
        virtual void     resizeEvent(QResizeEvent *);
 
50
        virtual void     applyOptions();
 
51
        virtual bool     event(QEvent *);
 
52
        virtual void     closeEvent(QCloseEvent *);
 
53
 
 
54
        void abortThread();
 
55
 
 
56
        KviDccChatThread *m_thread;
 
57
        KviDccChatData   *m_pDccChatData;
 
58
        KviStr            m_szRemoteMask;
 
59
        KviStr            m_szRemoteInfo;
 
60
public slots:
 
61
        void viewRightClicked(KviIrcView *);
 
62
        void viewPopupClicked(const KviStr &dataBuffer);
 
63
};
 
64
 
 
65
#endif // _KVI_DCC_CHAT_H_INCLUDED_