QCopChannel man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



QCopChannel(3qt)				 QCopChannel(3qt)

NAME
       QCopChannel - This class provides communication
       capabilities between several clients

       #include <qcopchannel_qws.h>

       Inherits QObject.

   Public Members
       QCopChannel ( const QCString & channel, QObject *
	   parent=0, const char * name=0 )
       virtual ~QCopChannel ()
       QCString channel () const
       virtual void receive ( const QCString & msg, const
	   QByteArray & data )

   Signals
       void received ( const QCString & msg, const QByteArray &
	   data )

   Static Public Members
       bool isRegistered ( const QCString & channel )
       bool send ( const QCString & channel, const QCString & msg
	   )
       bool send ( const QCString & channel, const QCString &
	   msg, const QByteArray & data )

DESCRIPTION
       This class provides communication capabilities between
       several clients.

       The Qt Cop (QCOP) is a COmmunication Protocol, allowing
       clients to communicate inside of the same address space or
       between different processes.

       Currently, 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.

       QCopChannel contains important functions like send() and
       isRegistered() which are static and therefore usable
       without an object.

       In order to listen 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.

MEMBER FUNCTION DOCUMENTATION
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 channel. The standard parent and name

Trolltech AS		   13 June 2001				1

QCopChannel(3qt)				 QCopChannel(3qt)

       arguments are passed on to the QObject constructor.

QCopChannel::~QCopChannel () [virtual]
       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.

QCString QCopChannel::channel () const
       Returns the name of the channel.

bool QCopChannel::isRegistered ( const QCString & channel )
       [static]
       Queries the server for the existance of channel.

       Returns TRUE if channel is registered.

void QCopChannel::receive ( const QCString & msg, const
       QByteArray & data ) [virtual]
       This virtual function allows subclasses of QCopChannel to
       process data received from their channel.

       The default implementation emits the received() signal.

       Note that the format of data has to be well defined in
       order to demarshall the contained information.

       See also send().

void QCopChannel::received ( const QCString & msg, const
       QByteArray & data ) [signal]
       This signal is emitted whenever the receive() function
       gets incoming data.

bool QCopChannel::send ( const QCString & channel, const QCString
       & msg ) [static]
       Send the message msg on channel. The message will be
       distributed to all clients subscribed to the channel.

       See also receive().

bool QCopChannel::send ( const QCString & channel, const QCString
       & msg, const QByteArray & data ) [static]
       Same as above function except the additional data
       parameter.  QDataStream provides a convenient way to fill
       the byte array with auxiliary data.

SEE ALSO
       http://doc.trolltech.com/qcopchannel.html
       http://www.trolltech.com/faq/tech.html

COPYRIGHT
       Copyright 1992-2001 Trolltech AS,
       http://www.trolltech.com.  See the license file included

Trolltech AS		   13 June 2001				2

QCopChannel(3qt)				 QCopChannel(3qt)

       in the distribution for a complete license statement.

AUTHOR
       Generated automatically from the source code.

BUGS
       If you find a bug in Qt, please report it as described in
       http://doc.trolltech.com/bughowto.html.	Good bug reports
       make our job much simpler. Thank you.

       In case of content or formattting problems with this
       manual page, please report them to qt-bugs@trolltech.com.
       Please include the name of the manual page
       (qcopchannel.3qt) and the Qt version (2.3.1).

Trolltech AS		   13 June 2001				3

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net