blob: 9f05cb17a54ace4372eaec9ecf76837f9b16064d [file] [log] [blame]
Dennis Syrovatsky139d7832005-11-02 05:36:05 +00001/* Copyright (C) 2005 TightVNC Team. All Rights Reserved.
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 *
18 * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
19 *
20 */
21
22// -=- FileTransfer.h
23
24#ifndef __RFB_WIN32_FILETRANSFER_H__
25#define __RFB_WIN32_FILETRANSFER_H__
26
Dennis Syrovatsky5c761172005-11-09 04:19:05 +000027#include <rdr/InStream.h>
28#include <rdr/OutStream.h>
Dennis Syrovatsky63943a32005-11-10 06:24:56 +000029#include <rfb/msgTypes.h>
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000030#include <vncviewer/FTDialog.h>
Dennis Syrovatsky63943a32005-11-10 06:24:56 +000031#include <vncviewer/FTMsgReader.h>
32#include <vncviewer/FTMsgWriter.h>
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000033
Dennis Syrovatsky139d7832005-11-02 05:36:05 +000034namespace rfb {
35 namespace win32 {
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000036 class FTDialog;
37
Dennis Syrovatsky139d7832005-11-02 05:36:05 +000038 class FileTransfer
39 {
40 public:
41 FileTransfer();
42 ~FileTransfer();
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000043
Dennis Syrovatsky5c761172005-11-09 04:19:05 +000044 bool initialize(rdr::InStream *pIS, rdr::OutStream *pOS);
Dennis Syrovatsky63943a32005-11-10 06:24:56 +000045 bool processFTMsg(int type);
Dennis Syrovatskyb595e032005-11-09 06:24:25 +000046 bool show();
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000047
48 private:
49 bool m_bFTDlgShown;
Dennis Syrovatsky5c761172005-11-09 04:19:05 +000050 bool m_bInitialized;
Dennis Syrovatsky4ab41852005-11-07 09:52:36 +000051
52 FTDialog *m_pFTDialog;
Dennis Syrovatsky5c761172005-11-09 04:19:05 +000053
Dennis Syrovatsky63943a32005-11-10 06:24:56 +000054 FTMsgReader *m_pReader;
55 FTMsgWriter *m_pWriter;
56
Dennis Syrovatsky139d7832005-11-02 05:36:05 +000057 };
58 }
59}
60
61#endif // __RFB_WIN32_FILETRANSFER_H__