make zip lib structure more compliant with Qt standards
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 26 Sep 2010 15:50:27 +0000 (15:50 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 26 Sep 2010 15:50:27 +0000 (15:50 +0000)
git-svn-id: https://silmor.de/svn/softmagic/ziplib/trunk@589 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

19 files changed:
README
include/QUnZip [new file with mode: 0644]
include/QZip [new file with mode: 0644]
include/qunzip.h [moved from qunzip.h with 98% similarity]
include/qzip.h [moved from qzip.h with 98% similarity]
src/crypt.h [moved from crypt.h with 100% similarity]
src/ioapi.c [moved from ioapi.c with 100% similarity]
src/ioapi.h [moved from ioapi.h with 100% similarity]
src/qtioapi.cpp [moved from qtioapi.cpp with 100% similarity]
src/qtioapi.h [moved from qtioapi.h with 100% similarity]
src/qunzip.cpp [moved from qunzip.cpp with 100% similarity]
src/qzip.cpp [moved from qzip.cpp with 100% similarity]
src/unzip.c [moved from unzip.c with 100% similarity]
src/unzip.h [moved from unzip.h with 100% similarity]
src/zconf.h [moved from zconf.h with 100% similarity]
src/zip.c [moved from zip.c with 100% similarity]
src/zip.h [moved from zip.h with 100% similarity]
src/zip.pro [moved from zip.pro with 91% similarity]
src/zlib.h [moved from zlib.h with 100% similarity]

diff --git a/README b/README
index 10e5d54..4f3fe3d 100644 (file)
--- a/README
+++ b/README
@@ -11,23 +11,23 @@ ported to Qt4 by Konrad Rosenbaum, 2007-2010
 Build
 ------
 
-simply call "qmake && make" in this directory
+simply call "qmake && make" in the src directory
 
 A static library will be created. I recommend you leave the library as static,
 since dynamic libs may make some trouble, due to the fact that quite a few
-of them are called "libzip.so" or "zip.dll".
+of them are called "libqzip.so" or "qzip.dll".
 
 Usage
 ------
 
 Add something like this to your project file:
 
-LIBS += -L../zip -lzip
-INCLUDEPATH += ../zip
+LIBS += -L../zip -lQZip
+INCLUDEPATH += ../zip/include
 
 (replace "../zip" with the appropriate relative path to this directory)
 
-In your sources simply #include zip.h and/or unzip.h.
+In your sources simply do #include<QZip> and/or <QUnZip>.
 
 API docu
 ---------
diff --git a/include/QUnZip b/include/QUnZip
new file mode 100644 (file)
index 0000000..3b7ef62
--- /dev/null
@@ -0,0 +1 @@
+#include "qunzip.h"
diff --git a/include/QZip b/include/QZip
new file mode 100644 (file)
index 0000000..8934d3e
--- /dev/null
@@ -0,0 +1 @@
+#include "qzip.h"
similarity index 98%
rename from qunzip.h
rename to include/qunzip.h
index 6e26c40..b096244 100644 (file)
--- a/qunzip.h
 #ifndef _QUNZIP_H
 #define _QUNZIP_H
 
-#include <qstring.h>
-#include <qiodevice.h>
-#include <qdatetime.h>
-#include <qbuffer.h>
+#include <QString>
+#include <QIODevice>
+#include <QDateTime>
+#include <QBuffer>
 
 /**
  * Class that exctract files from .zip archives. This class uses QIODevice
similarity index 98%
rename from qzip.h
rename to include/qzip.h
index 16555a7..3e6b933 100644 (file)
--- a/qzip.h
@@ -26,9 +26,9 @@
 #ifndef _QZIP_H
 #define _QZIP_H
 
-#include <qstring.h>
-#include <qiodevice.h>
-#include <qdatetime.h>
+#include <QString>
+#include <QIODevice>
+#include <QDateTime>
 
 /**
  * Class that stores files to .zip archives. This class uses QIODevice
similarity index 100%
rename from crypt.h
rename to src/crypt.h
similarity index 100%
rename from ioapi.c
rename to src/ioapi.c
similarity index 100%
rename from ioapi.h
rename to src/ioapi.h
similarity index 100%
rename from qtioapi.cpp
rename to src/qtioapi.cpp
similarity index 100%
rename from qtioapi.h
rename to src/qtioapi.h
similarity index 100%
rename from qunzip.cpp
rename to src/qunzip.cpp
similarity index 100%
rename from qzip.cpp
rename to src/qzip.cpp
similarity index 100%
rename from unzip.c
rename to src/unzip.c
similarity index 100%
rename from unzip.h
rename to src/unzip.h
similarity index 100%
rename from zconf.h
rename to src/zconf.h
diff --git a/zip.c b/src/zip.c
similarity index 100%
rename from zip.c
rename to src/zip.c
diff --git a/zip.h b/src/zip.h
similarity index 100%
rename from zip.h
rename to src/zip.h
similarity index 91%
rename from zip.pro
rename to src/zip.pro
index ed0a57a..d9e6dd1 100644 (file)
--- a/zip.pro
@@ -28,8 +28,8 @@
 # Boston, MA 02111-1307, USA.
 
 TEMPLATE = lib
-TARGET = zip
-DESTDIR = ../zip
+TARGET = QZip
+DESTDIR = ..
 CONFIG += release staticlib create_prl
 OBJECTS_DIR = .ctmp
 MOC_DIR = .ctmp
@@ -48,5 +48,8 @@ HEADERS += \
                unzip.h \
                zip.h \
                qtioapi.h \
-               qunzip.h \
-               qzip.h \
+               ../include/qunzip.h \
+               ../include/qzip.h \
+
+INCLUDEPATH += ../include
+DEPENDPATH += ../include
\ No newline at end of file
similarity index 100%
rename from zlib.h
rename to src/zlib.h