2 //=============================================================================
6 * @author Carlos O'Ryan
8 //=============================================================================
16 #include <FL/Fl_Box.H>
18 class Progress_Window
: public Fl_Box
22 Progress_Window (int n_peers
,
28 /// Keep track of the progress on each peer
29 void sent_request (CORBA::Long id
);
30 void recv_reply (CORBA::Long id
);
32 /// One of the peers has bound to the server
33 CORBA::Long
bind (Peer_ptr a_peer
);
35 /// Start the peers...
39 /// The callback method
40 static void start_callback (Fl_Widget
* widget
, void *data
);
43 /// The total number of peers
49 /// The number of iterations;
52 /// The set of sliders where we keep track of each client
53 Fl_Widget
** request_progress_
;
54 Fl_Widget
** reply_progress_
;
60 * @brief Progress server implementation
62 * Implements the Progress interface in test.idl, forward the
63 * calls to the Progress_Window class
65 class Progress_i
: public POA_Progress
69 Progress_i (Progress_Window
* window
);
71 // = The Progress methods.
72 void sent_request (CORBA::Long id
);
73 void recv_reply (CORBA::Long id
);
74 CORBA::Long
bind (Peer_ptr a_peer
);
77 /// Display the graphics...
78 Progress_Window
* window_
;
81 #endif /* PROGRESS_I_H */