KVIrc  4.9.2
DeveloperAPIs
SocketSpyWindow.h
Go to the documentation of this file.
1 #ifndef _SOCKETSPYWINDOW_H_
2 #define _SOCKETSPYWINDOW_H_
3 //=============================================================================
4 //
5 // File : SocketSpyWindow.h
6 // Creation date : Sun Nov 26 2000 13:13:00 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the socketspys of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviWindow.h"
28 #include "KviCString.h"
30 
31 class KviConsoleWindow;
32 
34 {
35  Q_OBJECT
36 public:
37  SocketSpyWindow(KviConsoleWindow * lpConsole);
39 
40 protected:
41  virtual QPixmap * myIconPtr();
42  virtual void fillCaptionBuffers();
43  virtual void resizeEvent(QResizeEvent * e);
44  virtual void getBaseLogFileName(QString & buffer);
45  virtual void applyOptions();
46 
47 public:
48  virtual QSize sizeHint() const;
49  virtual bool incomingMessage(const char * message);
50  //For proxy connections it might spit out binary data!
51  virtual bool outgoingMessage(const char * message);
52  virtual void connectionInitiated();
53  virtual void connectionTerminated();
54  virtual void die();
55 };
56 
57 #endif //_KVI_SOCKETSPYWINDOW_H_
virtual QSize sizeHint() const
Definition: SocketSpyWindow.cpp:67
SocketSpyWindow(KviConsoleWindow *lpConsole)
Definition: SocketSpyWindow.cpp:36
Definition: KviConsoleWindow.h:75
virtual void connectionTerminated()
Definition: SocketSpyWindow.cpp:99
virtual void die()
Definition: SocketSpyWindow.cpp:52
~SocketSpyWindow()
Definition: SocketSpyWindow.cpp:47
virtual bool incomingMessage(const char *message)
Definition: SocketSpyWindow.cpp:82
#define e
Definition: detector.cpp:69
virtual void fillCaptionBuffers()
Definition: SocketSpyWindow.cpp:77
Definition: SocketSpyWindow.h:33
virtual bool outgoingMessage(const char *message)
Definition: SocketSpyWindow.cpp:88
virtual void connectionInitiated()
Definition: SocketSpyWindow.cpp:94
virtual void getBaseLogFileName(QString &buffer)
Definition: SocketSpyWindow.cpp:72
virtual QPixmap * myIconPtr()
Definition: SocketSpyWindow.cpp:57
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Contains the KviWindow class.
Definition: KviIrcDataStreamMonitor.h:32
virtual void applyOptions()
Definition: SocketSpyWindow.cpp:104
virtual void resizeEvent(QResizeEvent *e)
Definition: SocketSpyWindow.cpp:62