summaryrefslogtreecommitdiffstats
path: root/libmail/nntpgroupinfo.H
blob: 00dea1f551e2948f175ea1c1cca4723c01800233 (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
/*
** Copyright 2003, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#ifndef libmail_nntpgroupinfo_H
#define libmail_nntpgroupinfo_H

#include "libmail_config.h"

#include "nntp.H"
#include "nntpgroup.H"

#include <string>

LIBMAIL_START

//
// Obtain number of messages in the group by using a GROUP
//

class mail::nntp::GroupInfoTask : public mail::nntp::GroupTask {
	callback::folderInfo &infoCallback;

public:

	GroupInfoTask(callback *callbackArg, nntp &myserverArg,
		      std::string groupNameArg,
		      callback::folderInfo &infoCallbackArg);
	~GroupInfoTask();

	void selectedGroup(msgnum_t estimatedCount,
			   msgnum_t loArticleCount,
			   msgnum_t hiArticleCount);
	void processGroup(const char *);
};

LIBMAIL_END

#endif