KVIrc  4.9.2
DeveloperAPIs
libkviident.h
Go to the documentation of this file.
1 #ifndef _LIBKVIIDENT_H_
2 #define _LIBKVIIDENT_H_
3 //=============================================================================
4 //
5 // File : libkviident.h
6 // Creation date : Tue Oct 2 18:22:05 2001 GMT by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2001-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 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 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 "KviThread.h"
28 #include "kvi_sockettype.h"
29 #include "KviCString.h"
30 #include "KviTimeUtils.h"
31 #include "kvi_settings.h"
32 #include "KviPointerList.h"
33 
34 #include <QObject>
35 
37 {
38 public:
39  KviIdentRequest(kvi_socket_t sock, const char * host, kvi_u32_t uPort);
41 
42 public:
46  kvi_u32_t m_uPort;
47  time_t m_tStart;
48 };
49 
50 typedef struct _KviIdentMessageData
51 {
55  unsigned int uPort;
57 
58 class KviIdentSentinel : public QObject
59 {
60  Q_OBJECT
61 public:
64 
65 protected:
66  virtual bool event(QEvent * e);
67 };
68 
70 {
71 public:
74 
75 private:
77  kvi_u32_t m_uPort;
83 
84 public:
85  virtual void run();
86 
87 protected:
88  void postMessage(const char * message, KviIdentRequest * r, const char * szAux = 0);
89 };
90 
91 #endif //_LIBKVIIDENT_H_
time_t m_tStart
Definition: libkviident.h:47
kvi_socket_t m_sock
Definition: libkviident.h:43
int kvi_socket_t
Definition: kvi_sockettype.h:40
struct _KviIdentMessageData KviIdentMessageData
Definition: libkviident.h:69
virtual bool event(QEvent *e)
Definition: libkviident.cpp:84
Definition: KviCString.h:105
bool m_bIPv6ContainsIPv4
Definition: libkviident.h:79
KviPointerList< KviIdentRequest > * m_pRequestList
Definition: libkviident.h:82
KviIdentSentinel()
Definition: libkviident.cpp:74
KviIdentDaemon()
Definition: libkviident.cpp:155
KviCString m_szHost
Definition: libkviident.h:45
~KviIdentRequest()
Definition: libkviident.cpp:150
unsigned int uPort
Definition: libkviident.h:55
KviIdentRequest(kvi_socket_t sock, const char *host, kvi_u32_t uPort)
Definition: libkviident.cpp:142
Definition: libkviident.h:36
Definition: libkviident.h:50
KviCString szHost
Definition: libkviident.h:53
~KviIdentSentinel()
Definition: libkviident.cpp:79
bool m_bEnableIPv6
Definition: libkviident.h:78
KviCString m_szUser
Definition: libkviident.h:76
~KviIdentDaemon()
Definition: libkviident.cpp:172
#define e
Definition: detector.cpp:69
KviCString m_szData
Definition: libkviident.h:44
Definition: libkviident.h:58
Time management.
kvi_u32_t m_uPort
Definition: libkviident.h:77
#define r
Definition: detector.cpp:82
C++ Template based double linked pointer list class.
virtual void run()
Definition: libkviident.cpp:202
KviCString szMessage
Definition: libkviident.h:52
kvi_socket_t m_sock
Definition: libkviident.h:80
unsigned int uPort
Definition: libkvisetup.cpp:44
kvi_socket_t m_sock6
Definition: libkviident.h:81
KviCString szAux
Definition: libkviident.h:54
kvi_u32_t m_uPort
Definition: libkviident.h:46
This file contains compile time settings.
Definition: KviThread.h:333
void postMessage(const char *message, KviIdentRequest *r, const char *szAux=0)
Definition: libkviident.cpp:182