summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/LogI.h
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-07-13 17:40:46 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-07-13 17:40:46 +0000
commit6535f926382842de14a36f1354cb08c86cbab28c (patch)
tree50d98021e0e50a1539a7cc35594fc63c58ddc361 /cppe/demo/IceE/chat/LogI.h
parentDon't copy the testCommon libs. (diff)
downloadice-6535f926382842de14a36f1354cb08c86cbab28c.tar.bz2
ice-6535f926382842de14a36f1354cb08c86cbab28c.tar.xz
ice-6535f926382842de14a36f1354cb08c86cbab28c.zip
Commited first stab at MFC chat demo
Diffstat (limited to 'cppe/demo/IceE/chat/LogI.h')
-rw-r--r--cppe/demo/IceE/chat/LogI.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/cppe/demo/IceE/chat/LogI.h b/cppe/demo/IceE/chat/LogI.h
new file mode 100644
index 00000000000..5ac80a9f637
--- /dev/null
+++ b/cppe/demo/IceE/chat/LogI.h
@@ -0,0 +1,35 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 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 LOG_I_H
+#define LOG_I_H
+
+class LogI : public Ice::Logger
+{
+public:
+
+ LogI();
+
+ virtual void print(const std::string&);
+ virtual void trace(const std::string&, const std::string&);
+ virtual void warning(const std::string&);
+ virtual void error(const std::string&);
+
+ void message(const std::string&);
+ void setControl(CEdit*);
+
+private:
+
+ std::string _buffer;
+ CEdit* _log;
+};
+
+typedef IceUtil::Handle<LogI> LogIPtr;
+
+#endif