1 /* 2 SPDX-FileCopyrightText: 2011 Graeme Gott <graeme@gottcode.org> 3 4 SPDX-License-Identifier: GPL-3.0-or-later 5 */ 6 7 #ifndef TANGLET_GZIP_H 8 #define TANGLET_GZIP_H 9 10 class QByteArray; 11 class QString; 12 13 /** 14 * Compress the file located at path with the Gzip algorithm. 15 * @param path file to compress 16 */ 17 void gzip(const QString& path); 18 19 /** 20 * Decompress the file located at path with the Gzip algorithm. 21 * @param path file to decompress 22 * @return uncompressed file contents 23 */ 24 QByteArray gunzip(const QString& path); 25 26 #endif // TANGLET_GZIP_H 27