/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */This news browser generates listings for NNTP reponses. This module contains the protocol independent code and it produces the HTML object. It is only included if the NNTP.
This module is implemented by HTNDir.c, and it is a part of the W3C Reference Library.
#ifndef HTNDIR_H #define HTNDIR_H #include "HTReq.h"
typedef enum _HTNewsDirKey { HT_NDK_NONE = 0, /* Unsorted */ HT_NDK_INDEX = 1, /* Sort by Message Number */ HT_NDK_DATE = 2, /* Sort by date */ HT_NDK_SUBJECT = 3, /* Sort by Subject */ HT_NDK_FROM = 4, /* Sort by Sender */ HT_NDK_GROUP = 5 /* Sort group listing */ } HTNewsDirKey;
typedef struct _HTNewsDir HTNewsDir; extern HTNewsDir * HTNewsDir_new (HTRequest * request, const char * title, HTNewsDirKey key);
extern BOOL HTNewsDir_addElement (HTNewsDir * dir, int index, char * subject, char * from, time_t date, char * name, int refs);
extern BOOL HTNewsDir_free (HTNewsDir * dir);
#endif /* HTNDIR */