Added FTMsgReader and FTMsgWriter classes.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@391 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/FTMsgReader.cxx b/vncviewer/FTMsgReader.cxx
new file mode 100644
index 0000000..31ce470
--- /dev/null
+++ b/vncviewer/FTMsgReader.cxx
@@ -0,0 +1,36 @@
+/* Copyright (C) 2005 TightVNC Team.  All Rights Reserved.
+ *    
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
+ * USA.
+ *
+ * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
+ *
+ */
+
+// -=- FTMsgReader.cxx
+
+#include <vncviewer/FTMsgReader.h>
+
+using namespace rfb;
+using namespace rfb::win32;
+
+FTMsgReader::FTMsgReader(rdr::InStream *pIS)
+{
+  m_pInStream = pIS;
+}
+
+FTMsgReader::~FTMsgReader()
+{
+}
diff --git a/vncviewer/FTMsgReader.h b/vncviewer/FTMsgReader.h
new file mode 100644
index 0000000..b5401c2
--- /dev/null
+++ b/vncviewer/FTMsgReader.h
@@ -0,0 +1,44 @@
+/* Copyright (C) 2005 TightVNC Team.  All Rights Reserved.
+ *    
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
+ * USA.
+ *
+ * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
+ *
+ */
+
+// -=- FTMsgReader.h
+
+#ifndef __RFB_WIN32_FTMSGREADER_H__
+#define __RFB_WIN32_FTMSGREADER_H__
+
+#include <rdr/InStream.h>
+#include <vncviewer/FileTransfer.h>
+
+namespace rfb {
+  namespace win32 {
+    class FTMsgReader
+    {
+    public:
+      FTMsgReader(rdr::InStream *pIS);
+      ~FTMsgReader();
+
+    private:
+      rdr::InStream *m_pInStream;
+    };
+  }
+}
+
+#endif // __RFB_WIN32_FTMSGREADER_H__
diff --git a/vncviewer/FTMsgWriter.cxx b/vncviewer/FTMsgWriter.cxx
new file mode 100644
index 0000000..1b376ce
--- /dev/null
+++ b/vncviewer/FTMsgWriter.cxx
@@ -0,0 +1,36 @@
+/* Copyright (C) 2005 TightVNC Team.  All Rights Reserved.
+ *    
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
+ * USA.
+ *
+ * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
+ *
+ */
+
+// -=- FTMsgWriter.cxx
+
+#include <vncviewer/FTMsgWriter.h>
+
+using namespace rfb;
+using namespace rfb::win32;
+
+FTMsgWriter::FTMsgWriter(rdr::OutStream *pOS)
+{
+  m_pOutStream = pOS;
+}
+
+FTMsgWriter::~FTMsgWriter()
+{
+}
diff --git a/vncviewer/FTMsgWriter.h b/vncviewer/FTMsgWriter.h
new file mode 100644
index 0000000..1737830
--- /dev/null
+++ b/vncviewer/FTMsgWriter.h
@@ -0,0 +1,44 @@
+/* Copyright (C) 2005 TightVNC Team.  All Rights Reserved.
+ *    
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
+ * USA.
+ *
+ * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
+ *
+ */
+
+// -=- FTMsgWriter.h
+
+#ifndef __RFB_WIN32_FTMSGWRITER_H__
+#define __RFB_WIN32_FTMSGWRITER_H__
+
+#include <rdr/OutStream.h>
+#include <vncviewer/FileTransfer.h>
+
+namespace rfb {
+  namespace win32 {
+    class FTMsgWriter
+    {
+    public:
+      FTMsgWriter(rdr::OutStream *pOS);
+      ~FTMsgWriter();
+
+    private:
+      rdr::OutStream *m_pOutStream;
+    };
+  }
+}
+
+#endif // __RFB_WIN32_FTMSGWRITER_H__
diff --git a/vncviewer/vncviewer.dsp b/vncviewer/vncviewer.dsp
index 191357c..aa2322b 100644
--- a/vncviewer/vncviewer.dsp
+++ b/vncviewer/vncviewer.dsp
@@ -162,6 +162,14 @@
 # End Source File

 # Begin Source File

 

+SOURCE=.\FTMsgReader.cxx

+# End Source File

+# Begin Source File

+

+SOURCE=.\FTMsgWriter.cxx

+# End Source File

+# Begin Source File

+

 SOURCE=.\FTProgress.cxx

 # End Source File

 # Begin Source File

@@ -226,6 +234,14 @@
 # End Source File

 # Begin Source File

 

+SOURCE=.\FTMsgReader.h

+# End Source File

+# Begin Source File

+

+SOURCE=.\FTMsgWriter.h

+# End Source File

+# Begin Source File

+

 SOURCE=.\FTProgress.h

 # End Source File

 # Begin Source File