Artifact f666c71e458dba72097242ebd7e2c7999fcd1922c5eb8cfd215dd10cd2f1f796:
- File
utils/ofarc/Archive.h
— part of check-in
[51343e2dfc]
at
2018-06-17 16:16:34
on branch trunk
— Rename ofzip to ofarc
It supports more than just ZIP now, so the name was no longer
appropriate. (user: js, size: 1193) [annotate] [blame] [check-ins using] - File utils/ofzip/Archive.h — part of check-in [14b9a27b65] at 2018-05-26 08:47:51 on branch trunk — ofzip: Add support for specifying the encoding (user: js, size: 1193) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, * 2018 * Jonathan Schleifer <js@heap.zone> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" #import "OFFile.h" #import "OFArray.h" @protocol Archive <OFObject> + (instancetype)archiveWithStream: (OF_KINDOF(OFStream *))stream mode: (OFString *)mode encoding: (of_string_encoding_t)encoding; - (instancetype)initWithStream: (OF_KINDOF(OFStream *))stream mode: (OFString *)mode encoding: (of_string_encoding_t)encoding; - (void)listFiles; - (void)extractFiles: (OFArray OF_GENERIC(OFString *) *)files; - (void)printFiles: (OFArray OF_GENERIC(OFString *) *)files; @optional - (void)addFiles: (OFArray OF_GENERIC(OFString *) *)files; @end