1 |
/* |
/* |
2 |
* $Id$ |
* Newsrc.java |
3 |
* Copyright (C) 2002 The Free Software Foundation |
* Copyright (C) 2002 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
44 |
* Interface for a .newsrc configuration. |
* Interface for a .newsrc configuration. |
45 |
* |
* |
46 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
|
* @version $Revision$ $Date$ |
|
47 |
*/ |
*/ |
48 |
public interface Newsrc |
public interface Newsrc |
49 |
{ |
{ |
52 |
* Returns an iterator over the names of the subscribed newsgroups. |
* Returns an iterator over the names of the subscribed newsgroups. |
53 |
* Each item returned is a String. |
* Each item returned is a String. |
54 |
*/ |
*/ |
55 |
public Iterator list (); |
public Iterator list(); |
56 |
|
|
57 |
/** |
/** |
58 |
* Indicates whether a newsgroup is subscribed in this newsrc. |
* Indicates whether a newsgroup is subscribed in this newsrc. |
59 |
*/ |
*/ |
60 |
public boolean isSubscribed (String newsgroup); |
public boolean isSubscribed(String newsgroup); |
61 |
|
|
62 |
/** |
/** |
63 |
* Sets whether a newsgroup is subscribed in this newsrc. |
* Sets whether a newsgroup is subscribed in this newsrc. |
64 |
*/ |
*/ |
65 |
public void setSubscribed (String newsgroup, boolean subs); |
public void setSubscribed(String newsgroup, boolean subs); |
66 |
|
|
67 |
/** |
/** |
68 |
* Indicates whether an article is marked as seen in the specified newsgroup. |
* Indicates whether an article is marked as seen in the specified newsgroup. |
69 |
*/ |
*/ |
70 |
public boolean isSeen (String newsgroup, int article); |
public boolean isSeen(String newsgroup, int article); |
71 |
|
|
72 |
/** |
/** |
73 |
* Sets whether an article is marked as seen in the specified newsgroup. |
* Sets whether an article is marked as seen in the specified newsgroup. |
74 |
*/ |
*/ |
75 |
public void setSeen (String newsgroup, int article, boolean seen); |
public void setSeen(String newsgroup, int article, boolean seen); |
76 |
|
|
77 |
/** |
/** |
78 |
* Closes the configuration, potentially saving any changes. |
* Closes the configuration, potentially saving any changes. |
79 |
*/ |
*/ |
80 |
public void close (); |
public void close(); |
81 |
|
|
82 |
} |
} |
83 |
|
|