This package contains the
description of the IDL interface implemented by the IGUI to act as a
CORBA servant and be published in IPC.
The Server interface
includes three methods:
- void askUser(in ClientRequest
clr): the IGUI operator will be asked to give an answer (via a
modal dialog) to the question contained in the ClientRequest structure;
- void informUser(in string msg,
in MessageSeverity mt): the IGUI operator will be informed about
an event which is described by the msg
string (message severity is specified by the mt parameter);
- void executeCommand(in Command
cmd): generic method to ask the IGUI to execute the cmd command.
The ClientRequest structure
is made up of three fields:
- string clientId: a
string to identify the application sending the message;
- string msg: the message
to show to the IGUI operator;
- Client clientRef: CORBA
reference of the client (used to receive notification of the user
choice).
The Client interface contains
only one method:
- void done(in UserAnswer answ):
this method will return the user answer to the question sent by the askUser(...). UserAnswer is an enumeration with
three possible values: YES, NO, CANCELLED. Any implementation of the askUser(...) method is requested
to call done(...) after the
user answer in any case.
The examples directory contains some examples (both in Java and C++)
showing how to send messages to a servant implementing the Server interface.