⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qcopchannel.3qt

📁 Linux 下的图形编程环境。
💻 3QT
字号:
'\" t.TH QCopChannel 3qt "5 March 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQCopChannel \- This class provides communication capabilities between several clients.br.PP\fC#include <qcopchannel_qws.h>\fR.PPInherits QObject..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQCopChannel\fR ( const QCString & " "channel" ", QObject * " "parent" "=0, const char * " "name" "=0 ) ".br.ti -1c.BI "virtual \fB~QCopChannel\fR () ".br.ti -1c.BI "QCString \fBchannel\fR () const".br.ti -1c.BI "virtual void \fBreceive\fR ( const QCString & " "msg" ", const QByteArray & data ) ".br.in -1c.SS "Signals".in +1c.ti -1c.BI "void \fBreceived\fR ( const QCString & " "msg" ", const QByteArray & data ) ".br.in -1c.SS "Static Public Members".in +1c.ti -1c.BI "bool \fBisRegistered\fR ( const QCString & channel ) ".br.ti -1c.BI "bool \fBsend\fR ( const QCString & " "channel" ", const QCString & msg ) ".br.ti -1c.BI "bool \fBsend\fR ( const QCString & " "channel" ", const QCString & " "msg" ", const QByteArray & data ) ".br.in -1c.SH DESCRIPTIONThis class provides communication capabilities between several clients..PPThe Qt Cop (QCOP) is a COmmunication Protocol, allowing clients to communicate inside of the same address space or between different processes..PPCurrently, this facility is only available on Qt/Embedded as on X11 and Windows we are exploring the use of existing standard such as DCOP and COM..PPQCopChannel contains important functions like send() and isRegistered() which are static and therefore usable without an object..PPIn order to \fIlisten\fR to the traffic on the channel, you should either subclass from QCopChannel and provide an re-implementation for receive(), or you should 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 under the name \fIchannel.\fR The standard \fIparent\fR and \fIname\fR arguments are passed on to the QObject constructor..SH "QCopChannel::~QCopChannel () \fC[virtual]\fR"Destructs the client's side end of the channel and notifies the server about the closing. The server itself keeps the channel open until the last registered client detaches..SH "QCString QCopChannel::channel () const"Returns the name of the channel..SH "bool QCopChannel::isRegistered ( const QCString & channel ) \fC[static]\fR"Queries the server for the existance of \fIchannel.\fR.PPReturns TRUE if \fIchannel\fR is registered..SH "void QCopChannel::receive ( const QCString & msg, const QByteArray & data ) \fC[virtual]\fR"This virtual function allows subclasses of QCopChannel to process data received from their channel..PPThe default implementation emits the received() signal..PPNote that the format of \fIdata\fR has to be well defined in order to demarshall the contained information..PPSee also send()..SH "void QCopChannel::received ( const QCString & msg, const QByteArray & data ) \fC[signal]\fR"This signal is emitted whenever the receive() function gets incoming data..SH "bool QCopChannel::send ( const QCString & channel, const QCString & msg ) \fC[static]\fR"Send the message \fImsg\fR on \fIchannel.\fR The message will be distributed to all clients subscribed to the channel..PPSee also receive()..SH "bool QCopChannel::send ( const QCString & channel, const QCString & msg, const QByteArray & data ) \fC[static]\fR"Same as above function except the additional \fIdata\fR parameter.QDataStream provides a convenient way to fill the byte array withauxiliary data..SH "SEE ALSO".BR http://doc.trolltech.com/qcopchannel.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qcopchannel.3qt) and the Qtversion (2.3.0).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -