Home | History | Annotate | Download | only in tightvnc-filetransfer
      1 /*
      2  * Copyright (c) 2005 Novell, Inc.
      3  * All Rights Reserved.
      4  *
      5  * This program is free software; you can redistribute it and/or
      6  * modify it under the terms of version 2 of the GNU General Public License as
      7  * published by the Free Software Foundation.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  * GNU General Public License for more details.
     13  *
     14  * You should have received a copy of the GNU General Public License
     15  * along with this program; if not, contact Novell, Inc.
     16  *
     17  * To contact Novell about this file by physical or electronic mail,
     18  * you may find current contact information at www.novell.com
     19  *
     20  * Author		: Rohit Kumar
     21  * Email ID	: rokumar (at) novell.com
     22  * Date		: 14th July 2005
     23  */
     24 
     25 #ifndef HANDLE_FILE_TRANSFER_REQUEST_H
     26 #define HANDLE_FILE_TRANSFER_REQUEST_H
     27 
     28 
     29 #include <rfb/rfb.h>
     30 
     31 
     32 void InitFileTransfer();
     33 int SetFtpRoot(char* path);
     34 void EnableFileTransfer(rfbBool enable);
     35 rfbBool IsFileTransferEnabled();
     36 char* GetFtpRoot();
     37 
     38 void HandleFileListRequest(rfbClientPtr cl, rfbTightClientRec* data);
     39 void HandleFileDownloadRequest(rfbClientPtr cl, rfbTightClientRec* data);
     40 void HandleFileDownloadCancelRequest(rfbClientPtr cl, rfbTightClientRec* data);
     41 void HandleFileUploadRequest(rfbClientPtr cl, rfbTightClientRec* data);
     42 void HandleFileUploadDataRequest(rfbClientPtr cl, rfbTightClientRec* data);
     43 void HandleFileUploadFailedRequest(rfbClientPtr cl, rfbTightClientRec* data);
     44 void HandleFileCreateDirRequest(rfbClientPtr cl, rfbTightClientRec* data);
     45 
     46 #endif
     47 
     48