summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/callback/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-08-08 05:14:16 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-08-08 05:14:16 +0000
commit1f2bcf804162014a6e5c428a9d973f1d8b149a97 (patch)
treebeade943ec3fabfe7d2fe11ca1495128b96352ce /cppe/demo/IceE/callback/Client.cpp
parentFixed bug with Log implementation. (diff)
downloadice-1f2bcf804162014a6e5c428a9d973f1d8b149a97.tar.bz2
ice-1f2bcf804162014a6e5c428a9d973f1d8b149a97.tar.xz
ice-1f2bcf804162014a6e5c428a9d973f1d8b149a97.zip
Added seperate CE resource files. Fixed font problems. Cleaned up and fixed
bugs with MFC demos.
Diffstat (limited to 'cppe/demo/IceE/callback/Client.cpp')
-rw-r--r--cppe/demo/IceE/callback/Client.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/cppe/demo/IceE/callback/Client.cpp b/cppe/demo/IceE/callback/Client.cpp
index 9486727d90b..c8f416e2bbd 100644
--- a/cppe/demo/IceE/callback/Client.cpp
+++ b/cppe/demo/IceE/callback/Client.cpp
@@ -11,14 +11,13 @@
#include <Callback.h>
using namespace std;
-using namespace Ice;
using namespace Demo;
class CallbackReceiverI : public CallbackReceiver
{
public:
- virtual void callback(const Current&)
+ virtual void callback(const Ice::Current&)
{
printf("received callback\n");
}
@@ -41,16 +40,16 @@ menu()
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
- PropertiesPtr properties = communicator->getProperties();
+ Ice::PropertiesPtr properties = communicator->getProperties();
const char* proxyProperty = "Callback.Client.CallbackServer";
- std::string proxy = properties->getProperty(proxyProperty);
+ string proxy = properties->getProperty(proxyProperty);
if(proxy.empty())
{
fprintf(stderr, "%s: property `%s' not set\n", argv[0], proxyProperty);
return EXIT_FAILURE;
}
- ObjectPrx base = communicator->stringToProxy(proxy);
+ Ice::ObjectPrx base = communicator->stringToProxy(proxy);
CallbackPrx twoway = CallbackPrx::checkedCast(base->ice_twoway()->ice_timeout(-1));
if(!twoway)
{
@@ -60,12 +59,12 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
CallbackPrx oneway = CallbackPrx::uncheckedCast(twoway->ice_oneway());
CallbackPrx batchOneway = CallbackPrx::uncheckedCast(twoway->ice_batchOneway());
- ObjectAdapterPtr adapter = communicator->createObjectAdapter("Callback.Client");
- adapter->add(new CallbackReceiverI, stringToIdentity("callbackReceiver"));
+ Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Callback.Client");
+ adapter->add(new CallbackReceiverI, Ice::stringToIdentity("callbackReceiver"));
adapter->activate();
CallbackReceiverPrx twowayR = CallbackReceiverPrx::uncheckedCast(
- adapter->createProxy(stringToIdentity("callbackReceiver")));
+ adapter->createProxy(Ice::stringToIdentity("callbackReceiver")));
CallbackReceiverPrx onewayR = CallbackReceiverPrx::uncheckedCast(twowayR->ice_oneway());
menu();
@@ -115,7 +114,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
menu();
}
}
- catch(const Exception& ex)
+ catch(const Ice::Exception& ex)
{
fprintf(stderr, "%s\n", ex.toString().c_str());
}