2
2
* @file google_source.h Google Reader feed list source support
4
* Copyright (C) 2007 Lars Lindner <lars.lindner@gmail.com>
4
* Copyright (C) 2007-2011 Lars Lindner <lars.lindner@gmail.com>
6
6
* This program is free software; you can redistribute it and/or modify
7
7
* it under the terms of the GNU General Public License as published by
45
45
GTimeVal lastQuickUpdate;
46
46
} *GoogleSourcePtr;
50
49
GOOGLE_SOURCE_STATE_NONE = 0,
51
50
GOOGLE_SOURCE_STATE_IN_PROGRESS,
52
51
GOOGLE_SOURCE_STATE_ACTIVE
186
183
#define GOOGLE_READER_TAG_TRACKING_KEPT_UNREAD "user/-/state/com.google/tracking-kept-unread"
187
184
#define GOOGLE_READER_TAG_STARRED "user/-/state/com.google/starred"
191
* Interval (in seconds) for doing a Quick Update.
193
#define GOOGLE_SOURCE_QUICK_UPDATE_INTERVAL 600 /* 10 minutes */
196
* Returns Google Reader source type implementation info.
186
/** Interval (in seconds) for doing a Quick Update: 10min */
187
#define GOOGLE_SOURCE_QUICK_UPDATE_INTERVAL 600
190
* @returns Google Reader source type implementation info.
198
192
nodeSourceTypePtr google_source_get_type (void);
201
195
extern struct subscriptionType googleSourceOpmlSubscriptionType;
204
* Set the flagged state on an item.
206
* @param node The node which contains the item
207
* @param item The item to whose status needs to be changed
208
* @param newStatus TRUE to mark the item as read, FALSE to mark as unread
211
google_source_item_set_flag (nodePtr node, itemPtr item, gboolean newStatus);
214
* Mark an item as read.
216
* @param node The node which contains the item
217
* @param item The item to whose status needs to be changed
218
* @param newStatus TRUE to mark the item as read, FALSE to mark as unread
221
google_source_item_mark_read (nodePtr node, itemPtr item, gboolean newStatus);
224
* Get the root node (the nodeSource) from any given subnode. A convenience
227
* @param node The node whose nodeSource is to be found
228
* @return The nodeSource
231
google_source_get_root_from_node (nodePtr node);
234
* Find a child node with the given source URL.
236
* @param gsource pointer to GoogleSource to access.
237
* @param source the source URL to search
240
google_source_get_node_from_source (GoogleSourcePtr gsource, const gchar* source);
198
* Find a child node with the given feed source URL.
200
* @param gsource GoogleSource
201
* @param source a feed source URL to search
203
* @returns a node (or NULL)
205
nodePtr google_source_get_node_from_source (GoogleSourcePtr gsource, const gchar* source);
243
208
* Tries to update the entire source quickly, by updating only those feeds
245
210
* internal function.
247
212
* @param data A pointer to a node id of the source. This pointer will
248
* be g_free'd if the update fails and the function will return
213
* be g_free'd if the update fails.
215
* @returns FALSE on update failure
252
google_source_quick_update_timeout (gpointer gsource) ;
217
gboolean google_source_quick_update_timeout (gpointer gsource);
255
220
* Migrate a google source child-node from a Liferea 1.4 style read-only
258
223
* @param node The node to migrate (not the nodeSource!)
261
google_source_migrate_node(nodePtr node);
225
void google_source_migrate_node (nodePtr node);
228
* Perform login for the given Google source.
230
* @param gsource a GoogleSource
231
* @param flags network request flags
263
233
void google_source_login (GoogleSourcePtr gsource, guint32 flags);