/*
* 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;
{
Session session;
+ NNTPSockInfo *nntp_sock;
gchar *group;
+
+ GSList * group_list;
+};
+
+struct NNTPGroupInfo {
+ gint first;
+ gint last;
+ gchar * name;
+ gchar type;
};
-Session *news_session_new (const gchar *server,
- gushort port);
void news_session_destroy (NNTPSession *session);
NNTPSession *news_session_get (Folder *folder);
void news_scan_group (Folder *folder,
FolderItem *item);
+GSList *news_get_group_list (Folder *folder);
+void news_cancel_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();
+gint news_group_info_compare(struct NNTPGroupInfo * info1,
+ struct NNTPGroupInfo * info2);
#endif /* __NEWS_H__ */