Moved clipboard changed event to CClientProxy because only it

and CServer use it.  CServerProxy instead makes a direct call
to CClient, like it does for most other messages.
This commit is contained in:
crs
2004-02-29 17:28:51 +00:00
parent 1ccb92b888
commit c3135b1b1c
7 changed files with 21 additions and 34 deletions

View File

@@ -21,8 +21,9 @@
// CClientProxy
//
CEvent::Type CClientProxy::s_readyEvent = CEvent::kUnknown;
CEvent::Type CClientProxy::s_disconnectedEvent = CEvent::kUnknown;
CEvent::Type CClientProxy::s_readyEvent = CEvent::kUnknown;
CEvent::Type CClientProxy::s_disconnectedEvent = CEvent::kUnknown;
CEvent::Type CClientProxy::s_clipboardChangedEvent= CEvent::kUnknown;
CClientProxy::CClientProxy(const CString& name, IStream* stream) :
m_name(name),
@@ -72,6 +73,13 @@ CClientProxy::getDisconnectedEvent()
"CClientProxy::disconnected");
}
CEvent::Type
CClientProxy::getClipboardChangedEvent()
{
return CEvent::registerTypeOnce(s_clipboardChangedEvent,
"CClientProxy::clipboardChanged");
}
void*
CClientProxy::getEventTarget() const
{