Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdecore
tdecore
tdecore
kasyncio.h
1
/*
2
* This file is part of the KDE libraries
3
* Copyright (C) 2001 Thiago Macieira <thiago.macieira@kdemail.net>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*/
20
#ifndef KASYNCIO_H
21
#define KASYNCIO_H
22
23
24
#include <tqobject.h>
25
#include <tqiodevice.h>
26
#include "tdelibs_export.h"
27
28
#ifdef Q_MOC_RUN
29
#define USE_QT4
30
#endif // Q_MOC_RUN
31
32
class
KAsyncIOPrivate;
42
class
TDECORE_EXPORT
KAsyncIO
:
43
#ifdef USE_QT4
44
#else // USE_QT4
45
public
TQObject,
46
#endif // USE_QT4
47
public
TQIODevice
48
{
49
Q_OBJECT
50
51
protected
:
52
KAsyncIO
()
// cannot be accessed externally
53
{ }
54
55
private
:
56
KAsyncIO
(
KAsyncIO
&);
57
58
KAsyncIO
& operator=(
KAsyncIO
&);
59
60
public
:
67
virtual
void
enableRead(
bool
enable) = 0;
68
75
virtual
void
enableWrite(
bool
enable) = 0;
76
77
signals:
78
82
void
readyRead();
83
87
void
readyWrite();
88
protected
:
90
virtual
void
virtual_hook(
int
id
,
void
* data );
91
private
:
92
KAsyncIOPrivate* d;
93
};
94
95
#endif // KASYNCIO_H
tdecore
Skip menu "tdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdecore
Skip menu "tdecore"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet