~ubuntu-branches/ubuntu/dapper/pantomime/dapper

« back to all changes in this revision

Viewing changes to Headers/Pantomime/Flags.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-11-20 00:25:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041120002528-igjuwyao6gubpig1
Tags: 1.1.2-3
Build depend / depend on libgnustep-base-1.10-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
**  Flags.h
3
3
**
4
 
**  Copyright (c) 2001, 2002
 
4
**  Copyright (c) 2001, 2002, 2003
5
5
**
6
6
**  Author: Ludovic Marcotte <ludovic@Sophos.ca>
7
7
**
19
19
**  License along with this library; if not, write to the Free Software
20
20
**  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
*/
22
 
#import <Foundation/Foundation.h>
 
22
 
 
23
#ifndef _Pantomime_H_Flags
 
24
#define _Pantomime_H_Flags
 
25
 
 
26
#import <Foundation/NSCoder.h>
 
27
#import <Foundation/NSObject.h>
 
28
#import <Foundation/NSString.h>
 
29
#import <Foundation/NSValue.h>
23
30
 
24
31
#define ANSWERED    1
25
32
#define DRAFT       2
27
34
#define RECENT      8
28
35
#define SEEN        16
29
36
#define DELETED     32
30
 
#define TRANSFERRED 64
31
37
 
32
38
@interface Flags : NSObject <NSCoding, NSCopying>
33
39
{
34
 
  int flags;
 
40
  @public
 
41
    int flags;
35
42
}
36
43
 
37
44
- (id) init;
38
45
- (id) initWithFlags: (int) theFlags;
39
 
- (id) initWithString: (NSString *) theString;
40
46
 
41
47
- (void) dealloc;
42
48
 
56
62
// access/mutation methods
57
63
//
58
64
- (void) add: (int) aFlag;
59
 
- (void) addFlagsFromString: (NSString *) theString;
 
65
- (void) addFlagsFromData: (NSData *) theData;
60
66
 
61
67
- (BOOL) contain: (int) theFlag;
 
68
 
 
69
- (void) replaceWithFlags: (Flags *) theFlags;
62
70
- (void) remove: (int) theFlag;
63
71
- (void) removeAll;
64
72
 
68
76
- (char *) xstatusString;
69
77
 
70
78
@end
 
79
 
 
80
#endif // _Pantomime_H_Flags