summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcopchannel.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqcopchannel.3qt')
-rw-r--r--doc/man/man3/tqcopchannel.3qt20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/man/man3/tqcopchannel.3qt b/doc/man/man3/tqcopchannel.3qt
index 50c95ff3..25bd87fa 100644
--- a/doc/man/man3/tqcopchannel.3qt
+++ b/doc/man/man3/tqcopchannel.3qt
@@ -11,12 +11,12 @@ QCopChannel \- Communication capabilities between several clients
.SH SYNOPSIS
\fC#include <qcopchannel_qws.h>\fR
.PP
-Inherits QObject.
+Inherits TQObject.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQCopChannel\fR ( const QCString & channel, QObject * parent = 0, const char * name = 0 )"
+.BI "\fBQCopChannel\fR ( const QCString & channel, TQObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
.BI "virtual \fB~QCopChannel\fR ()"
@@ -59,8 +59,8 @@ The channel() function returns the name of the channel.
.PP
In order to \fIlisten\fR to the traffic on a channel, you should either subclass QCopChannel and reimplement receive(), or connect() to the received() signal.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QCopChannel::QCopChannel ( const QCString & channel, QObject * parent = 0, const char * name = 0 )"
-Constructs a QCop channel and registers it with the server using the name \fIchannel\fR. The standard \fIparent\fR and \fIname\fR arguments are passed on to the QObject constructor.
+.SH "QCopChannel::QCopChannel ( const QCString & channel, TQObject * parent = 0, const char * name = 0 )"
+Constructs a QCop channel and registers it with the server using the name \fIchannel\fR. The standard \fIparent\fR and \fIname\fR arguments are passed on to the TQObject constructor.
.SH "QCopChannel::~QCopChannel ()\fC [virtual]\fR"
Destroys the client's end of the channel and notifies the server that the client has closed its connection. The server will keep the channel open until the last registered client detaches.
.SH "QCString QCopChannel::channel () const"
@@ -86,17 +86,17 @@ Example:
.br
QDataStream stream( data, IO_ReadOnly );
.br
- if ( msg == "execute(QString,QString)" ) {
+ if ( msg == "execute(TQString,TQString)" ) {
.br
- QString cmd, arg;
+ TQString cmd, arg;
.br
stream >> cmd >> arg;
.br
...
.br
- } else if ( msg == "delete(QString)" ) {
+ } else if ( msg == "delete(TQString)" ) {
.br
- QString filenname;
+ TQString filenname;
.br
stream >> filename;
.br
@@ -127,9 +127,9 @@ Example:
.br
QDataStream stream( ba, IO_WriteOnly );
.br
- stream << QString("cat") << QString("file.txt");
+ stream << TQString("cat") << TQString("file.txt");
.br
- QCopChannel::send( "System/Shell", "execute(QString,QString)", ba );
+ QCopChannel::send( "System/Shell", "execute(TQString,TQString)", ba );
.br
.fi
Here the channel is "System/Shell". The \fImsg\fR is an arbitrary string, but in the example we've used the DCOP convention of passing a function signature. Such a signature is formatted as functionname(types) where types is a list of zero or more comma-separated type names, with no whitespace, no consts and no pointer or reference marks, i.e. no "*" or "&".