00001 /* 00002 * Copyright (c) 2005 Novell, Inc. 00003 * All Rights Reserved. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of version 2 of the GNU General Public License as 00007 * published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, contact Novell, Inc. 00016 * 00017 * To contact Novell about this file by physical or electronic mail, 00018 * you may find current contact information at www.novell.com 00019 * 00020 * Author : Rohit Kumar 00021 * Email ID : rokumar@novell.com 00022 * Date : 14th July 2005 00023 */ 00024 00025 #ifndef HANDLE_FILE_TRANSFER_REQUEST_H 00026 #define HANDLE_FILE_TRANSFER_REQUEST_H 00027 00028 00029 #include <rfb/rfb.h> 00030 00031 00032 void InitFileTransfer(); 00033 int SetFtpRoot(char* path); 00034 void EnableFileTransfer(rfbBool enable); 00035 rfbBool IsFileTransferEnabled(); 00036 char* GetFtpRoot(); 00037 00038 void HandleFileListRequest(rfbClientPtr cl, rfbTightClientRec* data); 00039 void HandleFileDownloadRequest(rfbClientPtr cl, rfbTightClientRec* data); 00040 void HandleFileDownloadCancelRequest(rfbClientPtr cl, rfbTightClientRec* data); 00041 void HandleFileUploadRequest(rfbClientPtr cl, rfbTightClientRec* data); 00042 void HandleFileUploadDataRequest(rfbClientPtr cl, rfbTightClientRec* data); 00043 void HandleFileUploadFailedRequest(rfbClientPtr cl, rfbTightClientRec* data); 00044 void HandleFileCreateDirRequest(rfbClientPtr cl, rfbTightClientRec* data); 00045 00046 #endif 00047