home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libnet / mknewsgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  63 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* functions to manage large numbers of USENET newsgroups
  19.  * store them on disk, free them, search them, etc.
  20.  *
  21.  * Lou Montulli
  22.  */
  23.  
  24. #ifndef MKNEWSGR_H
  25. #define MKNEWSGR_H
  26.  
  27. /* save a newsgroup name
  28.  *
  29.  * will munge the newsgroup name passed in for efficiency
  30.  *
  31.  */
  32. extern void NET_StoreNewsGroup(char *hostname, XP_Bool is_secure, char * newsgroup);
  33.  
  34. /* free up the list of newsgroups
  35.  */
  36. extern void NET_FreeNewsgroups(char *hostname, XP_Bool is_secure);
  37.  
  38. /* sort the newsgroups
  39.  */
  40. extern void NET_SortNewsgroups(char *hostname, XP_Bool is_secure);
  41.  
  42. /* Search and display newsgroups
  43.  */
  44. extern int NET_DisplayNewsgroups(MWContext *context,
  45.                                  char *hostname,
  46.                                  Bool is_secure, 
  47.                                  char *search_string);
  48.  
  49. /* Save them out to disk
  50.  */
  51. extern void NET_SaveNewsgroupsToDisk(char *hostname, XP_Bool is_secure);
  52.  
  53. /* read them from disk
  54.  */
  55. extern time_t NET_ReadNewsgroupsFromDisk(char *hostname, XP_Bool is_secure);
  56.  
  57. /* Get the last access date, load the newsgroups from
  58.  * disk if they are not loaded
  59.  */
  60. extern time_t NET_NewsgroupsLastUpdatedTime(char *hostname, XP_Bool is_secure);
  61.  
  62. #endif
  63.