Przeglądaj źródła

Added methods for processing file transfer message FileListData.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@408 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v0.0.90
Dennis Syrovatsky 18 lat temu
rodzic
commit
514555be01

+ 2
- 0
rfb/CMsgHandler.h Wyświetl plik

@@ -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;
};
}

+ 2
- 0
rfb/CMsgReaderV3.cxx Wyświetl plik

@@ -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");

+ 1
- 1
vncviewer/FileTransfer.cxx Wyświetl plik

@@ -69,7 +69,7 @@ FileTransfer::show()
bool
FileTransfer::processFTMsg(int type)
{
if (m_bInitialized) return false;
if (!m_bInitialized) return false;

switch (type)
{

+ 4
- 0
vncviewer/cview.cxx Wyświetl plik

@@ -1705,3 +1705,7 @@ bool CView::getUserPasswd(char** user, char** password) {
return true;
}

bool CView::processFTMsg(int type)
{
return m_fileTransfer.processFTMsg(type);
}

+ 2
- 0
vncviewer/cview.h Wyświetl plik

@@ -176,6 +176,8 @@ namespace rfb {
// Global user-config registry key
static RegKey userConfigKey;

bool processFTMsg(int type);

protected:

// Locally-rendered VNC cursor

Ładowanie…
Anuluj
Zapisz