Last change
on this file since 28901 was 22548, checked in by davidb, 14 years ago |
Original version of Greenstone2 app for iPhone/iPod-touch
|
File size:
812 bytes
|
Line | |
---|
1 | #import "GSResultItem.h"
|
---|
2 |
|
---|
3 | @implementation GSResultItem
|
---|
4 |
|
---|
5 | -(id) initWithOID:(NSString*)oid withTitle:(NSString*)title
|
---|
6 | {
|
---|
7 | return [self initWithOID:oid withTitle:title withSrcUrl:nil];
|
---|
8 | }
|
---|
9 |
|
---|
10 | -(id) initWithOID:(NSString*)oid withTitle:(NSString*)title withSrcUrl:(NSString*)srcurl
|
---|
11 | {
|
---|
12 | self = [super init];
|
---|
13 |
|
---|
14 | _oid = oid;
|
---|
15 | _title = title;
|
---|
16 | _srcurl = srcurl;
|
---|
17 |
|
---|
18 | return self;
|
---|
19 | }
|
---|
20 |
|
---|
21 | -(NSString*) oid
|
---|
22 | {
|
---|
23 | return _oid;
|
---|
24 | }
|
---|
25 |
|
---|
26 | -(NSString*) title
|
---|
27 | {
|
---|
28 | return _title;
|
---|
29 | }
|
---|
30 |
|
---|
31 | -(NSString*) srcurl
|
---|
32 | {
|
---|
33 | return _srcurl;
|
---|
34 | }
|
---|
35 |
|
---|
36 |
|
---|
37 | /*
|
---|
38 | -(void) printUnused // ******
|
---|
39 | {
|
---|
40 | printf("(");
|
---|
41 | [_oid print];
|
---|
42 | printf(",");
|
---|
43 | [_title print];
|
---|
44 | printf(",");
|
---|
45 | [_srcurl print];
|
---|
46 | printf(")");
|
---|
47 | }
|
---|
48 | */
|
---|
49 |
|
---|
50 | -(void) dealloc
|
---|
51 | {
|
---|
52 | [_oid release];
|
---|
53 | [_title release];
|
---|
54 | [_srcurl release];
|
---|
55 |
|
---|
56 | [super dealloc];
|
---|
57 | }
|
---|
58 |
|
---|
59 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.