]> git.lyx.org Git - lyx.git/blob - src/support/FileZipListDir.h
reduce <vector> include from 73 to 3
[lyx.git] / src / support / FileZipListDir.h
1 // -*- C++ -*-
2 /**
3  * \file FileZipDir.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_FILEZIPDIR_H
13 #define LYX_FILEZIPDIR_H
14
15 #include "support/docstring.h"
16 #include "support/filetools.h"
17
18 #include <vector>
19 #include <utility>
20 #include <string>
21
22 namespace lyx {
23 namespace support {
24
25 /// \return list other files in the directory having optional extension 'ext'.
26 std::vector<FileName> dirList(FileName const & filename, std::string const & ext);
27
28
29 } // namespace support
30 } // namespace lyx
31
32 /// The following functions are implemented in minizip/zipunzip.cpp, and are not in
33 /// the lyx::support namespace
34
35 /// zip several files to a zipfile. In-zip filenames are also specified
36 bool zipFiles(std::string const & zipfile, std::vector<std::pair<std::string, std::string> > const & files);
37
38 /// Unzip a zip file to a directory
39 bool unzipToDir(std::string const & zipfile, std::string const & path);
40
41
42 #endif