Bläddra i källkod

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 år sedan
förälder
incheckning
514555be01
5 ändrade filer med 11 tillägg och 1 borttagningar
  1. 2
    0
      rfb/CMsgHandler.h
  2. 2
    0
      rfb/CMsgReaderV3.cxx
  3. 1
    1
      vncviewer/FileTransfer.cxx
  4. 4
    0
      vncviewer/cview.cxx
  5. 2
    0
      vncviewer/cview.h

+ 2
- 0
rfb/CMsgHandler.h Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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

bool processFTMsg(int type);

protected:

// Locally-rendered VNC cursor

Laddar…
Avbryt
Spara