#include <Newsgroup.h>
Inheritance diagram for Newsgroup:

Public Member Functions | |
| Newsgroup (OverviewFmt *fmt, const char *name) | |
| virtual | ~Newsgroup () |
| void | setoverviewfmt (OverviewFmt *fmt) |
| OverviewFmt * | getoverviewfmt () |
| const char * | name (void) |
| virtual void | getsize (unsigned int *f, unsigned int *l)=0 |
| virtual void | setsize (unsigned int f, unsigned int l)=0 |
| virtual unsigned int | firstnbr ()=0 |
| virtual unsigned int | lastnbr ()=0 |
| virtual int | hasrecord (unsigned int i)=0 |
| virtual Article * | getarticle (unsigned int nbr)=0 |
| virtual void | freearticle (Article *artp)=0 |
| virtual void | setarticle (Article *art)=0 |
| virtual void | printarticle (std::ostream &os, unsigned int nbr)=0 |
| virtual void | prefetchGroup (int lockgrp=1)=0 |
| virtual void | prefetchOverview (void)=0 |
| virtual const char * | getover (unsigned int nbr)=0 |
| virtual void | setover (const string &over)=0 |
| virtual void | printover (std::ostream &os, unsigned int nbr) |
| virtual void | readoverdb (std::istream &is)=0 |
| virtual void | printoverdb (std::ostream &os, unsigned int f=0, unsigned int l=UINT_MAX) |
| virtual void | printheaderdb (std::ostream &os, const char *header, unsigned int f=0, unsigned int l=UINT_MAX)=0 |
| virtual void | printlistgroup (std::ostream &os)=0 |
Protected Member Functions | |
| virtual Article * | retrievearticle (unsigned int nbr) |
Protected Attributes | |
| char | _NewsgroupName [MAXGROUPNAMELEN+1] |
| OverviewFmt * | _OverviewFormat |
|
||||||||||||
|
Definition at line 37 of file Newsgroup.h. References _NewsgroupName, _OverviewFormat, ASSERT, MAXGROUPNAMELEN, and slog.
00037 {
00038 _OverviewFormat = fmt;
00039 _NewsgroupName[MAXGROUPNAMELEN] = '\0';
00040 strncpy(_NewsgroupName, name, MAXGROUPNAMELEN);
00041 ASSERT(if (strlen(name) > MAXGROUPNAMELEN) {
00042 slog.
00043 p(Logger::
00044 Error) <<
00045 "Name of newsgroup too long - truncated\n";}
00046 );
00047 }
|
|
|
Definition at line 3 of file Newsgroup.cc.
00004 {
00005 }
|
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Implemented in NVNewsgroup, and RNewsgroup. Referenced by ns_article(). |
|
|
Implemented in NVNewsgroup, and RNewsgroup. Referenced by ns_article(). |
|
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. Referenced by ns_lastnext(), ns_stat(), printover(), and printoverdb(). |
|
|
Definition at line 53 of file Newsgroup.h. References _OverviewFormat.
00053 {
00054 return _OverviewFormat;
00055 }
|
|
||||||||||||
|
Implemented in NVNewsgroup, and RNewsgroup. Referenced by ns_lastnext(), and printoverdb(). |
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Definition at line 61 of file Newsgroup.h. References _NewsgroupName. Referenced by CServer::overviewdb(), and CNewsgroup::sUpdateOverview().
00061 {
00062 return _NewsgroupName;
00063 }
|
|
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. |
|
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. Referenced by doprefetch(). |
|
||||||||||||
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
||||||||||||||||||||
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. Referenced by ns_xover(). |
|
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. Referenced by ns_listgroup(). |
|
||||||||||||
|
Reimplemented in CNewsgroup, and NVNewsgroup. Definition at line 80 of file Newsgroup.h. References getover().
00080 {
00081 const char *o = getover(nbr);
00082 if (o)
00083 os << o << "\r\n";
00084 }
|
|
||||||||||||||||
|
Reimplemented in CNewsgroup, and NVNewsgroup. Definition at line 86 of file Newsgroup.h. References getover(), and getsize(). Referenced by ns_xover().
|
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Reimplemented in CNewsgroup. Definition at line 34 of file Newsgroup.h. Referenced by NVNewsgroup::getarticle(), and NVNewsgroup::printarticle().
00034 {
00035 return NULL;
00036 } public:
|
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Implemented in NVNewsgroup, and RNewsgroup. |
|
|
Definition at line 50 of file Newsgroup.h. References _OverviewFormat.
00050 {
00051 _OverviewFormat = fmt;
00052 }
|
|
||||||||||||
|
Implemented in CNewsgroup, NVNewsgroup, and RNewsgroup. Referenced by selectgroup(). |
|
|
Definition at line 32 of file Newsgroup.h. Referenced by name(), and Newsgroup(). |
|
|
Definition at line 33 of file Newsgroup.h. Referenced by getoverviewfmt(), Newsgroup(), and setoverviewfmt(). |
1.3.6-20040222