~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): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

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.