]> source.dussan.org Git - tigervnc.git/commitdiff
Added FTMsgReader and FTMsgWriter classes.
authorDennis Syrovatsky <dennis@tightvnc.com>
Thu, 10 Nov 2005 05:40:07 +0000 (05:40 +0000)
committerDennis Syrovatsky <dennis@tightvnc.com>
Thu, 10 Nov 2005 05:40:07 +0000 (05:40 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@391 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/FTMsgReader.cxx [new file with mode: 0644]
vncviewer/FTMsgReader.h [new file with mode: 0644]
vncviewer/FTMsgWriter.cxx [new file with mode: 0644]
vncviewer/FTMsgWriter.h [new file with mode: 0644]
vncviewer/vncviewer.dsp

diff --git a/vncviewer/FTMsgReader.cxx b/vncviewer/FTMsgReader.cxx
new file mode 100644 (file)
index 0000000..31ce470
--- /dev/null
@@ -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 (file)
index 0000000..b5401c2
--- /dev/null
@@ -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 (file)
index 0000000..1b376ce
--- /dev/null
@@ -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 (file)
index 0000000..1737830
--- /dev/null
@@ -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__
index 191357c316eb0d7afe51f10c5b2228e776c1e5ac..aa2322b9375cccc93bb0a35c1893db039e4f14bb 100644 (file)
@@ -162,6 +162,14 @@ SOURCE=.\FTListView.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\FTMsgReader.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\FTMsgWriter.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\FTProgress.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -226,6 +234,14 @@ SOURCE=.\FTListView.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\FTMsgReader.h\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\FTMsgWriter.h\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\FTProgress.h\r
 # End Source File\r
 # Begin Source File\r