]> source.dussan.org Git - tigervnc.git/commitdiff
Added virtual class DirManager.
authorDennis Syrovatsky <dennis@tightvnc.com>
Wed, 19 Oct 2005 07:01:41 +0000 (07:01 +0000)
committerDennis Syrovatsky <dennis@tightvnc.com>
Wed, 19 Oct 2005 07:01:41 +0000 (07:01 +0000)
Added FolderManager class to rfb_win32 project.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@351 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfb/DirManager.h [new file with mode: 0644]
rfb/rfb.dsp
rfb_win32/FolderManager.cxx [new file with mode: 0644]
rfb_win32/FolderManager.h [new file with mode: 0644]
rfb_win32/rfb_win32.dsp

diff --git a/rfb/DirManager.h b/rfb/DirManager.h
new file mode 100644 (file)
index 0000000..bdd2722
--- /dev/null
@@ -0,0 +1,43 @@
+/* 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/
+ *
+ */
+
+// -=- DirManager.cxx
+
+#ifndef __RFB_DIRMANAGER_H__
+#define __RFB_DIRMANAGER_H__
+
+#include <rfb/FileInfo.h>
+
+namespace rfb {
+  class DirManager {
+  public:
+    DirManager();
+    ~DirManager();
+
+    virtual bool createDir(char *pFullPath);
+    virtual bool renameDir(char *pOldName, char *pNewName);
+    virtual bool deleteDir(char *pFullPath);
+
+    virtual bool getDirInfo(char *pPath, FileInfo *pFileInfo, unsigned int dirOnly);
+  };
+}
+
+#endif // __RFB_DIRMANAGER_H__
\ No newline at end of file
index c6fcd20b9dc64996df9ab4c800480b3511fc3387..4bb018948a5c2ba949b02e9c576697d4e80317c4 100644 (file)
@@ -416,6 +416,10 @@ SOURCE=.\Decoder.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\DirManager.h\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\Encoder.h\r
 # End Source File\r
 # Begin Source File\r
@@ -444,6 +448,10 @@ SOURCE=.\FileWriter.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\rfb_win32\FolderManager.h\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\hextileConstants.h\r
 # End Source File\r
 # Begin Source File\r
diff --git a/rfb_win32/FolderManager.cxx b/rfb_win32/FolderManager.cxx
new file mode 100644 (file)
index 0000000..4453ce6
--- /dev/null
@@ -0,0 +1,61 @@
+/* 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/
+ *
+ */
+
+// -=- FolderManager.cxx
+
+#include <rfb_win32/FolderManager.h>
+
+using namespace rfb;
+using namespace rfb::win32;
+
+FolderManager::FolderManager()
+{
+
+}
+
+FolderManager::~FolderManager()
+{
+
+}
+      
+bool 
+FolderManager::createDir(char *pFullPath)
+{
+  return false;
+}
+
+bool 
+FolderManager::renameDir(char *pOldName, char *pNewName)
+{
+  return false;
+}
+
+bool 
+FolderManager::deleteDir(char *pFullPath)
+{
+  return false;
+}
+    
+bool 
+FolderManager::getDirInfo(char *pPath, FileInfo *pFileInfo, unsigned int dirOnly)
+{
+  return false;
+}
diff --git a/rfb_win32/FolderManager.h b/rfb_win32/FolderManager.h
new file mode 100644 (file)
index 0000000..1baff92
--- /dev/null
@@ -0,0 +1,46 @@
+/* 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/
+ *
+ */
+
+// -=- FolderManager.h
+
+#ifndef __RFB_WIN32_FOLDERMANAGER_H__
+#define __RFB_WIN32_FOLDERMANAGER_H__
+
+#include <rfb/FileInfo.h>
+#include <rfb/DirManager.h>
+
+namespace rfb {
+  namespace win32{
+    class FolderManager : public DirManager {
+    public:
+      FolderManager();
+      ~FolderManager();
+      
+      bool createDir(char *pFullPath);
+      bool renameDir(char *pOldName, char *pNewName);
+      bool deleteDir(char *pFullPath);
+      
+      bool getDirInfo(char *pPath, FileInfo *pFileInfo, unsigned int dirOnly);
+    };
+  }
+}
+
+#endif // __RFB_WIN32_FOLDERMANAGER_H__
\ No newline at end of file
index 15a6bd44c1a3637776496fd9ccab6c99918d7748..5c1303682995e4898e396e1a74174e6a11bcdd8f 100644 (file)
@@ -146,6 +146,10 @@ SOURCE=.\DIBSectionBuffer.cxx
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\FolderManager.cxx\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\LaunchProcess.cxx\r
 # End Source File\r
 # Begin Source File\r
@@ -262,6 +266,10 @@ SOURCE=.\DIBSectionBuffer.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=.\FolderManager.h\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=.\IntervalTimer.h\r
 # End Source File\r
 # Begin Source File\r