summaryrefslogtreecommitdiff
path: root/TAO/tao/qt_resource.h
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>1999-10-15 23:10:45 +0000
committerbala <balanatarajan@users.noreply.github.com>1999-10-15 23:10:45 +0000
commitce0a343f7895a5960afc4d93ce2cbfae6f99c49c (patch)
tree2b70b29a450cb3da81c880af9c65d0ae53da63f1 /TAO/tao/qt_resource.h
parentba8d15a7768ef6f5ebbee1e986ee45e3b55e7529 (diff)
downloadATCD-ce0a343f7895a5960afc4d93ce2cbfae6f99c49c.tar.gz
ChangeLogTag: Fri Oct 15 17:47:24 1999 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/qt_resource.h')
-rw-r--r--TAO/tao/qt_resource.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/tao/qt_resource.h b/TAO/tao/qt_resource.h
new file mode 100644
index 00000000000..f8c747807eb
--- /dev/null
+++ b/TAO/tao/qt_resource.h
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// qt_resource.h
+//
+// = AUTHOR
+// Hamish Friedlander <ullexco@wave.co.nz>
+// integrated in to TAO by Balachandran Natarajan <bala@cs.wustl.edu>
+// ============================================================================
+#ifndef _TAO_QTRESOURCE_H
+#define _TAO_QTRESOURCE_H
+
+#include "tao/default_resource.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#if defined (ACE_HAS_QT)
+#include "ace/QtReactor.h"
+
+
+class TAO_Export TAO_QtResource_Factory : public TAO_Default_Resource_Factory
+{
+ // = TITLE
+ // TAO's default resource factory
+ //
+ // = DESCRIPTION
+ // Using a <{resource source specifier}> as a discriminator, the
+ // factory can return resource instances which are, e.g., global,
+ // stored in thread-specific storage, stored in shared memory,
+ // etc.
+
+public:
+ TAO_QtResource_Factory (void);
+
+ static void set_context (QApplication *qapp) ;
+ // Set the context used to create the QtReactor
+
+protected:
+ virtual ACE_Reactor_Impl *allocate_reactor_impl (void) const;
+ // Obtain the reactor implementation
+
+private:
+ static QApplication *qapp_ ;
+};
+
+#if defined (__ACE_INLINE__)
+#include "qt_resource.i"
+#endif /* __ACE_INLINE__ */
+
+ACE_STATIC_SVC_DECLARE( TAO_QtResource_Factory )
+ACE_FACTORY_DECLARE ( TAO, TAO_QtResource_Factory )
+
+#endif /*ACE_HAS_QT */
+#endif /* QTRESOURCE_H */