/[classpath]/inetlib/source/gnu/inet/nntp/Newsrc.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/nntp/Newsrc.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.5 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
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.
# Line 44  import java.util.Iterator; Line 44  import java.util.Iterator;
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  {  {
# Line 53  public interface Newsrc Line 52  public interface Newsrc
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    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26