sync with sylpheed 0.6.5cvs7
[claws.git] / src / news.h
index 0ea35476008824a7c6e8a82b10b02f90f2556962..3bb2eef0027d675747befeaf95b0aeba4f6b8072 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2001 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 
 #include "folder.h"
 #include "session.h"
+#include "nntp.h"
 
 typedef struct _NNTPSession    NNTPSession;
+typedef struct _NewsGroupInfo  NewsGroupInfo;
 
 #define NNTP_SESSION(obj)      ((NNTPSession *)obj)
 
@@ -33,12 +35,18 @@ struct _NNTPSession
 {
        Session session;
 
+       NNTPSockInfo *nntp_sock;
        gchar *group;
 };
 
+struct _NewsGroupInfo
+{
+       gchar *name;
+       gchar first;
+       gchar last;
+       gchar type;
+};
 
-Session *news_session_new              (const gchar    *server,
-                                        gushort         port);
 void news_session_destroy              (NNTPSession    *session);
 NNTPSession *news_session_get          (Folder         *folder);
 
@@ -52,10 +60,11 @@ gchar *news_fetch_msg                       (Folder         *folder,
 void news_scan_group                   (Folder         *folder,
                                         FolderItem     *item);
 
+GSList *news_get_group_list            (Folder         *folder);
+void news_group_list_free              (GSList         *group_list);
+void news_remove_group_list_cache      (Folder         *folder);
+
 gint news_post                         (Folder         *folder,
                                         const gchar    *file);
 
-GSList * news_get_group_list(FolderItem *item);
-void news_reset_group_list();
-
 #endif /* __NEWS_H__ */