File: FolderThreader.h

package info (click to toggle)
lusernet.app 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 828 kB
  • sloc: objc: 8,495; makefile: 22
file content (58 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
copyright 2002 Alexander Malmberg <alexander@malmberg.org>
*/

#ifndef FolderThreader_h
#define FolderThreader_h

#include "MsgDB.h"

typedef struct
{
	msg_id_t mid;
	char rstatus,level;
	unsigned char cached;
} msg_info_t;

@protocol FolderThreaderTarget
-(void) selectMessage: (int)num;
@end

@interface FolderThreader : NSObject
{
@public
	msg_info_t *msgs;
	int num_msgs;
	MsgDB *mdb;

	id<FolderThreaderTarget> t;

	struct msg_header_cache_s *header_cache;
}

- initWithMsgDB: (MsgDB *)mdb  target: (id<FolderThreaderTarget>)target;

-(int) addMsg: (msg_id_t)mid;
-(int) indexOf: (msg_id_t)mid;

-(BOOL) selectFirstUnreadFrom: (int)i;

-(int) findNextUnreadFrom: (int)i;

-(int) findNextMax: (int)max  from: (int)i;
-(int) findPrevMax: (int)max  from: (int)i;

-(void) markAsRead: (int)from : (int)to;


-(NSString *) header: (const char *)h  forMessage: (int)msg;

-(NSString *) subjectForMessage: (int)msg;
-(NSString *) fromForMessage: (int)msg;
-(NSDate *) dateForMessage: (int)msg;

@end


#endif