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

📄 qcopchannel.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
字号:
.TH QCopChannel 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 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.SH SYNOPSIS.br.PP\fC#include <qwsdisplay_qws.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQCopChannel\fR ( const QCString & channel ) ".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 "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 is an abstract base class. Important functions like send() and isRegistered() are static and therefore usable without an object. In order to \fIlisten\fR to the traffic on channel you have to subclass from QCopChannel and provide an implementation for receive()..SH MEMBER FUNCTION DOCUMENTATION.SH "QCopChannel::QCopChannel ( const QCString & channel )"Constructs a QCop channel and registers it with the server under the name \fIchannel.\fR.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 abstract virtual function allows subclasses of QCopChannel to process data received from their channel. Note that the format of \fIdata\fR has to be well defined in order to demarshall the contained information..PPSee also send()..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.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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