// ********************************************************************** // // Copyright (c) 2003-2006 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. // // ********************************************************************** #include "stdafx.h" #include using namespace std; HelloI::HelloI(const LogIPtr& log, CDialog* dialog) : _log(log), _dialog(dialog) { } void HelloI::sayHello(const Ice::Current&) const { _log->message("Hello World!"); } void HelloI::shutdown(const Ice::Current&) { if(_dialog) { _log->message("Shutting down..."); _dialog->EndDialog(0); _dialog = 0; } }