1 /* StringsEntry
2 
3    Copyright (C) 2002 Free Software Foundation, Inc.
4 
5    Written by:  Alexander Malmberg <alexander@malmberg.org>
6    Created: 2002
7 
8    This file is part of the GNUstep Project
9 
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License
12    as published by the Free Software Foundation; either
13    version 3 of the License, or (at your option) any later version.
14 
15    You should have received a copy of the GNU General Public
16    License along with this program; see the file COPYINGv3.
17    If not, write to the Free Software Foundation,
18    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20 */
21 
22 #ifndef StringsEntry_h
23 #define StringsEntry_h
24 
25 @class SourceEntry;
26 
27 @interface StringsEntry : NSObject
28 {
29 	NSString *key,*comment,*translated;
30 	NSString *user_comment;
31 
32 #define FLAG_UNTRANSLATED  0x01
33 #define FLAG_UNMATCHED     0x02
34 	int flags;
35 
36 	NSString *file;
37 	unsigned int line;
38 }
39 
40 + stringsEntryFromSourceEntry: (SourceEntry *)se;
41 
42 - initWithKey: (NSString *)k comment: (NSString *)c translated: (NSString *)t userComment: (NSString *)uc
43 	flags: (int)flags  file: (NSString *)filename line: (int)line;
44 
45 -(NSString *) key;
46 -(NSString *) comment;
47 -(NSString *) translated;
48 -(NSString *) userComment;
49 
50 -(int) flags;
51 
52 -(NSString *) file;
53 -(unsigned int) line;
54 
55 -(int) compareFileLine: (StringsEntry *)e;
56 -(int) compareFileKeyComment: (StringsEntry *)e;
57 
58 
59 -(void) setKey: (NSString *)k;
60 -(void) setComment: (NSString *)c;
61 -(void) setTranslated: (NSString *)t;
62 -(void) setUserComment: (NSString *)uc;
63 
64 -(void) setFlags: (int)f;
65 -(void) addFlag: (int)f;
66 
67 -(void) setFile: (NSString *)f;
68 -(void) setLine: (unsigned int)l;
69 
70 @end
71 
72 #endif
73 
74