Develop and Download Open Source Software

Browse CVS Repository

Contents of /lupin/lupin/TarPlugin/PluginTest.h

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


Revision 1.6 - (show annotations) (download) (as text)
Fri Jun 10 09:51:19 2005 UTC (18 years, 10 months ago) by letter
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -0 lines
File MIME type: text/x-chdr
(fix) corrupt when decoding multi-byte string (because this string is too short to decode)

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 TarPlugin : 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 NSMutableData* _stdoutRestData;
45 NSMutableData* _stderrRestData;
46 int _totalFileCount; //! ������������������������������������������������
47 int _totalInArchiveFileCount; //! ������������������������������������
48 BOOL _compressed; //! tgz������tbz������tar.bz2������tar.gz������tar.Z������������YES
49 BOOL _bz2Compressed; //! tar.bz2���������������tar���������������������z������������j������������
50 BOOL _hierarchy; //!���������������������(YES)������������������������(NO)���
51 int _processMode; //! 1:������������������������������������������2:��������������������������� 3:���������������������������
52 }
53
54 - (void)readPipe:(NSNotification*)notification;
55 - (void)terminateTask:(NSNotification*)notification;
56 - (void)stopTask;
57 - (int)containFilesCount;
58 - (NSString*)ascii2String:(const char*)encodeData length:(int)length;
59
60 @end

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