~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to libslab/bookmark-agent.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of the Main Menu.
3
 
 *
4
 
 * Copyright (c) 2007 Novell, Inc.
5
 
 *
6
 
 * The Main Menu is free software; you can redistribute it and/or modify it
7
 
 * under the terms of the GNU General Public License as published by the Free
8
 
 * Software Foundation; either version 2 of the License, or (at your option)
9
 
 * any later version.
10
 
 *
11
 
 * The Main Menu is distributed in the hope that it will be useful, but WITHOUT
12
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14
 
 * more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License along with
17
 
 * the Main Menu; if not, write to the Free Software Foundation, Inc., 51
18
 
 * Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef __BOOKMARK_AGENT_H__
22
 
#define __BOOKMARK_AGENT_H__
23
 
 
24
 
#include <time.h>
25
 
#include <glib-object.h>
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
#define BOOKMARK_AGENT_TYPE         (bookmark_agent_get_type ())
30
 
#define BOOKMARK_AGENT(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), BOOKMARK_AGENT_TYPE, BookmarkAgent))
31
 
#define BOOKMARK_AGENT_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST ((c), BOOKMARK_AGENT_TYPE, BookmarkAgentClass))
32
 
#define IS_BOOKMARK_AGENT(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), BOOKMARK_AGENT_TYPE))
33
 
#define IS_BOOKMARK_AGENT_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE ((c), BOOKMARK_AGENT_TYPE))
34
 
#define BOOKMARK_AGENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BOOKMARK_AGENT_TYPE, BookmarkAgentClass))
35
 
 
36
 
#define BOOKMARK_AGENT_STORE_STATUS_PROP "store-status"
37
 
#define BOOKMARK_AGENT_ITEMS_PROP        "items"
38
 
 
39
 
typedef struct {
40
 
        gchar  *uri;
41
 
        gchar  *title;
42
 
        gchar  *mime_type;
43
 
        time_t  mtime;
44
 
        gchar  *icon;
45
 
        gchar  *app_name;
46
 
        gchar  *app_exec;
47
 
} BookmarkItem;
48
 
 
49
 
typedef enum {
50
 
        BOOKMARK_STORE_DEFAULT_ONLY,
51
 
        BOOKMARK_STORE_DEFAULT,
52
 
        BOOKMARK_STORE_USER,
53
 
        BOOKMARK_STORE_ABSENT
54
 
} BookmarkStoreStatus;
55
 
 
56
 
typedef enum {
57
 
        BOOKMARK_STORE_USER_APPS   = 0,
58
 
        BOOKMARK_STORE_USER_DOCS   = 1,
59
 
        BOOKMARK_STORE_USER_DIRS   = 2,
60
 
        BOOKMARK_STORE_RECENT_APPS = 3,
61
 
        BOOKMARK_STORE_RECENT_DOCS = 4,
62
 
        BOOKMARK_STORE_SYSTEM      = 5,
63
 
        BOOKMARK_STORE_N_TYPES     = 6
64
 
} BookmarkStoreType;
65
 
 
66
 
typedef struct {
67
 
        GObject g_object;
68
 
} BookmarkAgent;
69
 
 
70
 
typedef struct {
71
 
        GObjectClass g_object_class;
72
 
} BookmarkAgentClass;
73
 
 
74
 
GType bookmark_agent_get_type (void);
75
 
 
76
 
BookmarkAgent *bookmark_agent_get_instance  (BookmarkStoreType type);
77
 
gboolean       bookmark_agent_has_item      (BookmarkAgent *this, const gchar *uri);
78
 
void           bookmark_agent_add_item      (BookmarkAgent *this, const BookmarkItem *item);
79
 
void           bookmark_agent_move_item     (BookmarkAgent *this, const gchar *uri, const gchar *uri_new);
80
 
void           bookmark_agent_remove_item   (BookmarkAgent *this, const gchar *uri);
81
 
void           bookmark_agent_reorder_items (BookmarkAgent *this, const gchar **uris);
82
 
 
83
 
void           bookmark_agent_update_from_bookmark_file (BookmarkAgent *this, GBookmarkFile *store);
84
 
void           bookmark_agent_purge_items (BookmarkAgent *this);
85
 
 
86
 
void           bookmark_item_free           (BookmarkItem *item);
87
 
 
88
 
G_END_DECLS
89
 
 
90
 
#endif