Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / QtTests / client.h
blob06237659dc6bbddfbe3ec1412bd52eeb0b50a13e
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:
25 /// ctor
26 Client (CORBA::ORB_ptr orb,
27 QApplication &app);
29 ///Dtor..
30 ~Client ();
32 /// Adds the callbacks to the GUI underneath.....
33 void create_widgets ();
35 void show ();
37 void parse_args (int argc, ACE_TCHAR *argv[]);
39 /// A box widget..
40 QHBoxLayout box_;
41 QWidget mainwindow_;
43 public slots:
44 /// Two slot handlers for the two widgets that we have
45 void remote_call (int val);
46 void shutdown_call ();
48 private:
49 /// A push button
50 QPushButton *push_button_;
52 /// A slider widget
53 QSlider *slider_;
55 /// The ORB
56 CORBA::ORB_var orb_;
58 LCD_Display_var server_;
60 QApplication *qapp_;
63 #endif /* _QT_CLIENT_H */