Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
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 "kdelibs_export.h"
27
28
#ifdef Q_MOC_RUN
29
#define USE_QT4
30
#endif // Q_MOC_RUN
31
32
class
KAsyncIOPrivate;
42
class
KDECORE_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
TQ_OBJECT
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
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver