diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-04-13 10:51:38 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-04-13 10:51:38 +0000 |
| commit | 935b0c265496c56cd3dd1a0f2a37caa6aab7379a (patch) | |
| tree | bd9f60eaa05e0b60351a989a2e3bdba4a39e2273 /src/dom/util/ziptool.cpp | |
| parent | wip (diff) | |
| download | inkscape-935b0c265496c56cd3dd1a0f2a37caa6aab7379a.tar.gz inkscape-935b0c265496c56cd3dd1a0f2a37caa6aab7379a.zip | |
add zipentry methods
(bzr r509)
Diffstat (limited to 'src/dom/util/ziptool.cpp')
| -rw-r--r-- | src/dom/util/ziptool.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp index 657d26765..72b7e63b7 100644 --- a/src/dom/util/ziptool.cpp +++ b/src/dom/util/ziptool.cpp @@ -1997,7 +1997,6 @@ void ZipEntry::finish() compressionMethod);
}
}
- printf("### done\n");
}
@@ -2140,16 +2139,28 @@ void ZipFile::trace(char *fmt, ...) /**
*
*/
-bool ZipFile::addFile(const std::string &fileName,
+ZipEntry *ZipFile::addFile(const std::string &fileName,
const std::string &comment)
{
ZipEntry *ze = new ZipEntry();
if (!ze->readFile(fileName, comment))
{
- return false;
+ return NULL;
}
entries.push_back(ze);
- return true;
+ return ze;
+}
+
+
+/**
+ *
+ */
+ZipEntry *ZipFile::newEntry(const std::string &fileName,
+ const std::string &comment)
+{
+ ZipEntry *ze = new ZipEntry(fileName, comment);
+ entries.push_back(ze);
+ return ze;
}
|
