summaryrefslogtreecommitdiff
path: root/src/trg-rss-model.h
diff options
context:
space:
mode:
authorGravatar Alan F <ajf@eth0.org.uk>2014-02-24 18:48:23 +0000
committerGravatar Alan F <ajf@eth0.org.uk>2014-02-24 18:48:23 +0000
commit907636d97b1893e9df4ef28489c92d32118c6fa2 (patch)
tree3c621a000536cc2124ff4d20b8cdb9e084b86ab8 /src/trg-rss-model.h
parent1d6f77d4c4fafd0a9cafddd2797249557e601dba (diff)
plug the RSS feeds into the preferences dialog and put ifdefs so it should compile without rss-glib
Diffstat (limited to 'src/trg-rss-model.h')
-rw-r--r--src/trg-rss-model.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/trg-rss-model.h b/src/trg-rss-model.h
index 799629a..a931c37 100644
--- a/src/trg-rss-model.h
+++ b/src/trg-rss-model.h
@@ -20,6 +20,10 @@
#ifndef TRG_RSS_MODEL_H_
#define TRG_RSS_MODEL_H_
+#include "config.h"
+
+#ifdef HAVE_RSSGLIB
+
#include <glib-object.h>
#include <json-glib/json-glib.h>
@@ -43,7 +47,21 @@ G_BEGIN_DECLS
} TrgRssModel;
typedef struct {
+ gchar *feed_id;
+ gint error_code;
+} rss_get_error;
+
+typedef struct {
+ GError *error;
+ gchar *feed_id;
+} rss_parse_error;
+
+typedef struct {
GtkListStoreClass parent_class;
+ void (*get_error) (TrgRssModel * model,
+ rss_get_error *error);
+ void (*parse_error) (TrgRssModel * model,
+ rss_parse_error *error);
} TrgRssModelClass;
GType trg_rss_model_get_type(void);
@@ -62,4 +80,6 @@ enum {
RSSCOL_COLUMNS
};
+#endif
+
#endif /* TRG_RSS_MODEL_H_ */