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 59 60 61 62 63
|
/* $Id: nntpxover.H,v 1.1 2003/05/27 14:09:08 mrsam Exp $
**
** Copyright 2003, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#ifndef libmail_nntpxover_H
#define libmail_nntpxover_H
#include "libmail_config.h"
#include <fstream>
#include "nntp.H"
#include "nntpgroup.H"
#include <set>
#include <string>
LIBMAIL_START
//
// XOVER-based implementation of readMessageAttributes() for
// MESSAGESIZE, ENVELOPE, and DATE
//
class mail::nntp::XoverTask : public mail::nntp::GroupTask {
void (mail::nntp::XoverTask::*response_func)(const char *);
std::vector< std::pair<size_t, std::string> > msgUids;
std::vector< std::pair<size_t, std::string> >::iterator nextUid,
prevUid;
msgnum_t firstMsgNum, lastMsgNum;
MessageAttributes attributes;
callback::message &xoverCallback;
public:
XoverTask(callback::message *callbackArg, nntp &myserverArg,
std::string groupNameArg,
const std::vector<size_t> &messages,
MessageAttributes attributes);
~XoverTask();
void selectedGroup(msgnum_t estimatedCount,
msgnum_t loArticleCount,
msgnum_t hiArticleCount);
void processGroup(const char *);
private:
void doNextXoverRange();
void processXoverStatus(const char *);
void processXover(const char *);
};
LIBMAIL_END
#endif
|