Develop and Download Open Source Software

Browse CVS Repository

Contents of /lupin/lupin/LupinFramework/LPCompress.m

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


Revision 1.1 - (show annotations) (download)
Thu Mar 17 09:40:28 2005 UTC (19 years ago) by letter
Branch: MAIN
CVS Tags: HEAD
No log message.

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 "LPCompress.h"
25
26
27 @implementation LPCompress
28
29 - (LPCompress*)init:(NSString*)compressDisplayName extension:(NSString*)compressExtension hasOptionView:(BOOL)hasOptionView index:(int)index
30 {
31 self = [super init];
32 _compressDisplayName = compressDisplayName;
33 [_compressDisplayName retain];
34 _compressExtension = compressExtension;
35 [_compressExtension retain];
36 _hasOptionView = hasOptionView;
37 _index = index;
38 return self;
39 }
40
41 - (void)dealloc
42 {
43 [_compressDisplayName release];
44 [_compressExtension release];
45 [super dealloc];
46 }
47
48 - (NSString*)compressDisplayName
49 {
50 return _compressDisplayName;
51 }
52
53 - (NSString*)compressExtension
54 {
55 return _compressExtension;
56 }
57
58 - (BOOL)hasOptionView
59 {
60 return _hasOptionView;
61 }
62
63 /*
64 - (void)setIndex:(int)index
65 {
66 _index = index;
67 }
68 */
69 - (int)index
70 {
71 return _index;
72 }
73
74 @end

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