git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@408 3789f03b-4d11-0410-bbf8-ca57d06f2519tags/v0.0.90
@@ -56,6 +56,8 @@ namespace rfb { | |||
virtual void imageRect(const Rect& r, void* pixels); | |||
virtual void copyRect(const Rect& r, int srcX, int srcY); | |||
virtual bool processFTMsg(int type) = 0; | |||
ConnParams cp; | |||
}; | |||
} |
@@ -58,6 +58,8 @@ void CMsgReaderV3::readMsg() | |||
case msgTypeSetColourMapEntries: readSetColourMapEntries(); break; | |||
case msgTypeBell: readBell(); break; | |||
case msgTypeServerCutText: readServerCutText(); break; | |||
case msgTypeFileListData: | |||
handler->processFTMsg(type); break; | |||
default: | |||
fprintf(stderr, "unknown message type %d\n", type); | |||
throw Exception("unknown message type"); |
@@ -69,7 +69,7 @@ FileTransfer::show() | |||
bool | |||
FileTransfer::processFTMsg(int type) | |||
{ | |||
if (m_bInitialized) return false; | |||
if (!m_bInitialized) return false; | |||
switch (type) | |||
{ |
@@ -1705,3 +1705,7 @@ bool CView::getUserPasswd(char** user, char** password) { | |||
return true; | |||
} | |||
bool CView::processFTMsg(int type) | |||
{ | |||
return m_fileTransfer.processFTMsg(type); | |||
} |
@@ -176,6 +176,8 @@ namespace rfb { | |||
// Global user-config registry key | |||
static RegKey userConfigKey; | |||
bool processFTMsg(int type); | |||
protected: | |||
// Locally-rendered VNC cursor |