claws-mail/src/plugins/rssyl/rssyl_feed.h
Andrej Kacian a0cd163714 Replace verbosity boolean flag with a bitfield of flags.
Currently, there are two - whether or not to show error dialogs
and whether or not to show a feed rename dialog after subscribing.

We use same enum typedef for subscribing and fetching/updating
for consistency, the second flag only has effect in rssyl_subscribe().
2017-02-25 11:43:26 +01:00

30 lines
1 KiB
C

#ifndef __RSSYL_FEED_H
#define __RSSYL_FEED_H
#include <glib.h>
#include <folder.h>
#include "rssyl.h"
#define RSSYL_LOG_SUBSCRIBING _("RSSyl: Subscribing new feed: %s\n")
#define RSSYL_LOG_SUBSCRIBED _("RSSyl: New feed subscribed: '%s' (%s)\n")
#define RSSYL_LOG_UPDATING _("RSSyl: Updating feed: %s\n")
#define RSSYL_LOG_UPDATED _("RSSyl: Feed update finished: %s\n")
#define RSSYL_LOG_ERROR_FETCH _("RSSyl: Error fetching feed at '%s': %s\n")
#define RSSYL_LOG_ERROR_NOFEED _("RSSyl: No valid feed found at '%s'\n")
#define RSSYL_LOG_ERROR_PROC _("RSSyl: Couldn't process feed at '%s'\n")
#define RSSYL_LOG_ABORTED_EXITING _("RSSyl: Application is exiting, couldn't finish updating feed at '%s'\n")
typedef enum
{
RSSYL_SHOW_ERRORS = 1 << 0,
RSSYL_SHOW_RENAME_DIALOG = 1 << 1
} RSSylVerboseFlags;
MsgInfo *rssyl_feed_parse_item_to_msginfo(gchar *file, MsgFlags flags,
gboolean a, gboolean b, FolderItem *item);
void rssyl_feed_start_refresh_timeout(RFolderItem *ritem);
#endif /* __RSSYL_FEED_H */