Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / QtTests / client.h
blob838779141b039afae1f69a6a7363ddc6fa47d74d
2 //=============================================================================
3 /**
4 * @file client.h
6 * @author Balachandran Natarajan <bala@cs.wustl.edu>
7 */
8 //=============================================================================
11 #ifndef _QT_CLIENT_H
12 #define _QT_CLIENT_H
14 #include "testC.h"
16 #include <QtGui/qapplication.h>
17 #include <QtGui/qboxlayout.h>
18 #include <QtGui/qslider.h>
19 #include <QtGui/qpushbutton.h>
21 class Client : public QObject
23 Q_OBJECT
24 public:
26 /// ctor
27 Client (CORBA::ORB_ptr orb,
28 QApplication &app);
30 ///Dtor..
31 ~Client (void);
33 /// Adds the callbacks to the GUI underneath.....
34 void create_widgets (void);
36 void show (void);
38 void parse_args (int argc, ACE_TCHAR *argv[]);
40 /// A box widget..
41 QHBoxLayout box_;
42 QWidget mainwindow_;
44 public slots:
45 /// Two slot handlers for the two widgets that we have
46 void remote_call (int val);
47 void shutdown_call (void);
49 private:
51 /// A push button
52 QPushButton *push_button_;
54 /// A slider widget
55 QSlider *slider_;
57 /// The ORB
58 CORBA::ORB_var orb_;
60 LCD_Display_var server_;
62 QApplication *qapp_;
65 #endif /* _QT_CLIENT_H */