GCF LOGO VCL LOGO
IPC module in GCF

Classes

class  GCF::IpcCall
 Make calls on methods in a remote object. More...
 
class  GCF::IpcRemoteObject
 This class allows you to maintain a persistent connection with a remote object. More...
 
class  GCF::IpcServer
 Provides a IPC server based on QTcpServer Create an instance of this class and call listen() to begin listening for incoming requests and responding to them. More...
 
struct  GCF::IpcServerInfo
 This structure contains key information about a discovered GCF::IpcServer. More...
 
class  GCF::IpcServerDiscovery
 This class can be used to discover GCF::IpcServer instances on LAN. More...
 

Functions

GCF::Result GCF::ipcConnect (QObject *sender, const char *signal, GCF::IpcRemoteObject *receiver, const char *member)
 
GCF::Result GCF::ipcConnect (GCF::IpcRemoteObject *sender, const char *signal, QObject *receiver, const char *member)
 
GCF::Result Q_DECL_IMPORT GCF::ipcConnect (QObject *sender, const char *signal, const QHostAddress &addr, quint16 port, const QString &object, const QString &method)
 

Detailed Description

The "GCF IPC Module" extends offers support for inter-process communication in your GCF applications.

Using this module you can remotely invoke methods on objects offered by components in another application. You can also create remote signal/slot connections! Please read the article on Using IPC in your applications to know more about this.

To include this module in GCF you can add the following line to your project file

CONFIG += GCFIpc3

For this to work, you should have set QMAKEFEATURES environment variable to $GCFDIR/QMakePRF. If you have not configured the QMAKEFEATURES, you can enter the following line in your project file instead.

GCF_SOURCE_DIR = /path/to/gcf/source/
include( $$GCF_SOURCE_DIR/QMakePRF/GCFIpc3.prf )

Function Documentation

GCF::Result GCF::ipcConnect ( QObject *  sender,
const char *  signal,
GCF::IpcRemoteObject receiver,
const char *  member 
)

Connects signal of local QObject sender to member of remote object receiver.

This function returns true upon success. False+error message upon failure.

GCF::Result GCF::ipcConnect ( GCF::IpcRemoteObject sender,
const char *  signal,
QObject *  receiver,
const char *  member 
)

Connects signal of remote object sender to member of local QObject receiver.

This function returns true upon success. False+error message upon failure.

GCF::Result GCF::ipcConnect ( QObject *  sender,
const char *  signal,
const QHostAddress &  addr,
quint16  port,
const QString &  object,
const QString &  method 
)

Connects signal of local QObject sender to method of a remote object by name object available at port and addr address.

This function returns true upon success. False+error message upon failure.