~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/fl_sources/node_source.h

  • Committer: Package Import Robot
  • Author(s): Moray Allan, Bojo42, Rodrigo Gallardo, Moray Allan
  • Date: 2012-03-27 21:44:42 UTC
  • mfrom: (1.5.1)
  • mto: (3.3.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: package-import@ubuntu.com-20120327214442-g0xfh714cdmsbnts
Tags: 1.8.3-0.1
[ Bojo42 ]
* Non-maintainer upload.
* New upstream release (Closes: #502307, #623619, #631778, #651913) 
* debian/patches:
  - drop libnotify0.7 as in upstream
  - debian-example-feeds: update, move planets from "News" to "Open Source"
  - www-browser: update due to new file location
  - libtool-dont-rearange-as-needed: rebase
* debian/control:
  - update Standards-Version
  - remove obsolete Build-Depends:
    - quilt not needed for "3.0 (quilt)" source format
    - libnm-glib-dev & libdbus-glib-1-dev: upstream switched to GDBus
    - liblua5.1-0-dev: LUA scripting support got dropped
  - new Build-Depends on libunique-dev, libjson-glib-dev & dh_autoreconf
  - update version dependencies
* debian/rules: run dh_autoreconf & update translations
* debian/liferea.install: nothing to ship from /usr/lib/liferea

[ Rodrigo Gallardo ]
* Lintian love:
  - debian/control: switch from Conflicts to Breaks
  - debian/rules: redo build targets

[ Moray Allan ]
* debian/copyright: update to include additional copyright owners.
* debian/patches/www-browser: also set default external browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * @file node_source.h  generic node source interface
3
3
 * 
4
 
 * Copyright (C) 2005-2009 Lars Lindner <lars.lindner@gmail.com>
 
4
 * Copyright (C) 2005-2010 Lars Lindner <lars.lindner@gmail.com>
5
5
 *
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
48
48
   A source type implementation can omit all callbacks marked as 
49
49
   optional. */
50
50
 
51
 
#define NODE_SOURCE_TYPE_API_VERSION 6
52
 
 
53
51
enum {
54
52
        NODE_SOURCE_CAPABILITY_IS_ROOT                  = (1<<0),       /**< flag only for default feed list source */
55
53
        NODE_SOURCE_CAPABILITY_MULTI_INSTANCES          = (1<<1),       /**< allows multiple source instances */
56
54
        NODE_SOURCE_CAPABILITY_DYNAMIC_CREATION         = (1<<2),       /**< feed list source is user created */
57
55
        NODE_SOURCE_CAPABILITY_WRITABLE_FEEDLIST        = (1<<3),       /**< the feed list tree of the source can be changed */
58
 
        NODE_SOURCE_CAPABILITY_HIERARCHIC_FEEDLIST      = (1<<4)        /**< the feed list tree of the source can have hierarchic folders */
 
56
        NODE_SOURCE_CAPABILITY_HIERARCHIC_FEEDLIST      = (1<<4),       /**< the feed list tree of the source can have hierarchic folders */
 
57
        NODE_SOURCE_CAPABILITY_ITEM_STATE_SYNC          = (1<<5)        /**< the item state can and should be sync'ed with remote */
59
58
};
60
59
 
61
60
/** feed list node source type */
62
61
typedef struct nodeSourceType {
63
 
        unsigned int    api_version;
64
 
        
65
62
        const gchar     *id;            /**< a unique feed list source type identifier */
66
63
        const gchar     *name;          /**< a descriptive source name (for preferences and menus) */
67
64
        const gchar     *description;   /**< more detailed source type description (up to some sentences) */
188
185
 
189
186
#define NODE_SOURCE_TYPE_DUMMY_ID "fl_dummy"
190
187
 
 
188
/**
 
189
 * Get the root node of a feed list source for any given child node.
 
190
 *
 
191
 * @param node  any child node
 
192
 *
 
193
 * @returns node source root node
 
194
 */
 
195
nodePtr node_source_root_from_node (nodePtr node);
 
196
 
191
197
/** 
192
198
 * Scans the source type list for the root source provider.
193
199
 * If found creates a new root source and starts it's import.