]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/private/gsocketiohandler.h
added wxUSE_SVG
[wxWidgets.git] / include / wx / private / gsocketiohandler.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/private/gsocketiohandler.h
3// Purpose: class for registering GSocket in wxSelectDispatcher
4// Authors: Lukasz Michalski
5// Modified by:
6// Created: December 2006
7// Copyright: (c) Lukasz Michalski
8// RCS-ID: $Id$
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRIVATE_GSOCKETIOHANDLER_H_
13#define _WX_PRIVATE_GSOCKETIOHANDLER_H_
14
15#include "wx/defs.h"
16#include "wx/private/selectdispatcher.h"
17
18#if wxUSE_SOCKETS
19
20// forward declarations
21class GSocket;
22
23class WXDLLIMPEXP_CORE wxGSocketIOHandler : public wxFDIOHandler
24{
25public:
26 wxGSocketIOHandler(GSocket* socket);
27 int GetFlags() const;
28 void RemoveFlag(wxFDIODispatcherEntryFlags flag);
29 void AddFlag(wxFDIODispatcherEntryFlags flag);
30
31 virtual void OnReadWaiting();
32 virtual void OnWriteWaiting();
33 virtual void OnExceptionWaiting();
34
35private:
36 GSocket* m_socket;
37 int m_flags;
38};
39
40#endif // wxUSE_SOCKETS
41
42#endif // _WX_PRIVATE_SOCKETEVTDISPATCH_H_