~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Externals/wxWidgets3/include/wx/private/fdiomanager.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/private/fdiomanager.h
 
3
// Purpose:     declaration of wxFDIOManager
 
4
// Author:      Vadim Zeitlin
 
5
// Created:     2009-08-17
 
6
// Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
 
7
// Licence:     wxWindows licence
 
8
///////////////////////////////////////////////////////////////////////////////
 
9
 
 
10
#ifndef _WX_PRIVATE_FDIOMANAGER_H_
 
11
#define _WX_PRIVATE_FDIOMANAGER_H_
 
12
 
 
13
#include "wx/private/fdiohandler.h"
 
14
 
 
15
// ----------------------------------------------------------------------------
 
16
// wxFDIOManager: register or unregister wxFDIOHandlers
 
17
// ----------------------------------------------------------------------------
 
18
 
 
19
// currently only used in wxGTK and wxMotif, see wx/unix/apptrait.h
 
20
 
 
21
class wxFDIOManager
 
22
{
 
23
public:
 
24
    // identifies either input or output direction
 
25
    //
 
26
    // NB: the values of this enum shouldn't change
 
27
    enum Direction
 
28
    {
 
29
        INPUT,
 
30
        OUTPUT
 
31
    };
 
32
 
 
33
    // start or stop monitoring the events on the given file descriptor
 
34
    virtual int AddInput(wxFDIOHandler *handler, int fd, Direction d) = 0;
 
35
    virtual void RemoveInput(wxFDIOHandler *handler, int fd, Direction d) = 0;
 
36
 
 
37
    // empty but virtual dtor for the base class
 
38
    virtual ~wxFDIOManager() { }
 
39
};
 
40
 
 
41
#endif // _WX_PRIVATE_FDIOMANAGER_H_
 
42