summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/TestI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/background/TestI.h')
-rw-r--r--cpp/test/Ice/background/TestI.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/cpp/test/Ice/background/TestI.h b/cpp/test/Ice/background/TestI.h
new file mode 100644
index 00000000000..2acedc0489c
--- /dev/null
+++ b/cpp/test/Ice/background/TestI.h
@@ -0,0 +1,66 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef TEST_I_H
+#define TEST_I_H
+
+#include <Test.h>
+#include <Configuration.h>
+
+#include <set>
+
+class BackgroundControllerI;
+typedef IceUtil::Handle<BackgroundControllerI> BackgroundControllerIPtr;
+
+class BackgroundI : virtual public Test::Background
+{
+public:
+
+ virtual void op(const Ice::Current&);
+ virtual void opWithPayload(const Ice::ByteSeq&, const Ice::Current&);
+ virtual void shutdown(const Ice::Current&);
+
+ BackgroundI(const BackgroundControllerIPtr&);
+
+private:
+
+ BackgroundControllerIPtr _controller;
+};
+
+class BackgroundControllerI : public Test::BackgroundController, IceUtil::Monitor<IceUtil::Mutex>
+{
+public:
+
+
+ virtual void pauseCall(const std::string&, const Ice::Current&);
+ virtual void resumeCall(const std::string&, const Ice::Current&);
+ virtual void checkCallPause(const Ice::Current&);
+
+ virtual void holdAdapter(const Ice::Current&);
+ virtual void resumeAdapter(const Ice::Current&);
+
+ virtual void initializeSocketStatus(int, const Ice::Current&);
+ virtual void initializeException(bool, const Ice::Current&);
+
+ virtual void readReady(bool, const Ice::Current&);
+ virtual void readException(bool, const Ice::Current&);
+
+ virtual void writeReady(bool, const Ice::Current&);
+ virtual void writeException(bool, const Ice::Current&);
+
+ BackgroundControllerI(const Ice::ObjectAdapterPtr&, const ConfigurationPtr&);
+
+private:
+
+ Ice::ObjectAdapterPtr _adapter;
+ std::set<std::string> _pausedCalls;
+ ConfigurationPtr _configuration;
+};
+
+#endif