blob: d19534da96a8798a58f4a3fdc665b34236dc595d (
plain)
| 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
 | /*
** Copyright 2003, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#ifndef libmail_nntpnewsrc_H
#define libmail_nntpnewsrc_H
#include "libmail_config.h"
#include "nntp.H"
#include <string>
#include <vector>
LIBMAIL_START
/////////////////////////////////////////////////////////////////////////////
//
// The objects that represents lines in a newsrc file
class mail::nntp::newsrc {
public:
	std::string newsgroupname;
	bool subscribed;
	std::vector< std::pair<msgnum_t, msgnum_t> > msglist;
	// A list of read messages, in strict ascending order.
	newsrc();
	~newsrc();
	newsrc(std::string); // Construct from a line of text in newsrc
	operator std::string() const;
	void read(msgnum_t);
	void unread(msgnum_t);
};
LIBMAIL_END
#endif
 |