Develop and Download Open Source Software

Browse CVS Repository

Contents of /lupin/lupin/ZipPlugin/ZipPlugin.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Fri May 27 07:11:28 2005 UTC (18 years, 10 months ago) by letter
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +9 -4 lines
File MIME type: text/x-chdr
fix to get stdout/stderr string.
add several error code(see Lupin/LupinPluginProtocol.h)

1 /*
2 * Copyright (c) 2004-2005 The Lupin Project. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without modification, are permitted
5 * provided that the following conditions are met:
6 *
7 * 1. Redistributions of source code must retain the above copyright notice, this list of conditions
8 * and the following disclaimer.
9 *
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of
11 * conditions and the following disclaimer in the documentation and/or other materials provided
12 * with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE LUPIN PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
15 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE LUPIN PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
17 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
18 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
20 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
21 * POSSIBILITY OF SUCH DAMAGE.
22 */
23
24 #import <Foundation/Foundation.h>
25 #import <Lupin/LupinPluginProtocol.h>
26 #import <Lupin/LPFile.h>
27 #import <Lupin/LPCompress.h>
28 #import <objc/objc-runtime.h>
29
30 @interface ZipPlugin : NSObject <LupinPluginProtocol> {
31 NSString* filePath;
32
33 id _receiver;
34 SEL _selector;
35 NSTask* _pluginTask;
36 NSFileHandle* _pluginStdoutHandle;
37 NSFileHandle* _pluginStderrHandle;
38
39 BOOL _stdoutEmpty;
40 BOOL _stderrEmpty;
41 BOOL _terminatedTask;
42 NSMutableArray* _stdoutArray;
43 NSMutableArray* _stderrArray;
44 int _totalFileCount; //! ������������������������������������������������
45 int _totalInArchiveFileCount; //! ������������������������������������
46 BOOL _hierarchy; //!���������������������(YES)������������������������(NO)���
47 int _processMode; //! 1:������������������������������������������2:��������������������������� 3:���������������������������
48 }
49
50 - (void)readPipe:(NSNotification*)notification;
51 - (void)terminateTask:(NSNotification*)notification;
52 - (void)stopTask;
53 - (int)containFilesCount;
54
55 @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26