1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Copyright (C) 2010 Shaun McCance <shaunm@gnome.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Shaun McCance <shaunm@gnome.org>
23 #ifndef __YELP_APPLICATION_H__
24 #define __YELP_APPLICATION_H__
26 #include <glib-object.h>
29 #include "yelp-bookmarks.h"
31 #define YELP_TYPE_APPLICATION (yelp_application_get_type ())
32 #define YELP_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YELP_TYPE_APPLICATION, YelpApplication))
33 #define YELP_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YELP_TYPE_APPLICATION, YelpApplicationClass))
34 #define YELP_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YELP_TYPE_APPLICATION))
35 #define YELP_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YELP_TYPE_APPLICATION))
37 typedef struct _YelpApplication YelpApplication
;
38 typedef struct _YelpApplicationClass YelpApplicationClass
;
40 struct _YelpApplication
45 struct _YelpApplicationClass
47 GObjectClass parent_class
;
50 GType
yelp_application_get_type (void);
51 YelpApplication
* yelp_application_new (void);
52 gint
yelp_application_run (YelpApplication
*app
,
55 gboolean
yelp_application_load_uri (YelpApplication
*app
,
59 void yelp_application_new_window (YelpApplication
*app
,
61 void yelp_application_new_window_uri (YelpApplication
*app
,
63 GtkActionGroup
* yelp_application_get_action_group (YelpApplication
*app
);
64 void yelp_application_add_bookmark (YelpBookmarks
*bookmarks
,
69 void yelp_application_remove_bookmark (YelpBookmarks
*bookmarks
,
71 const gchar
*page_id
);
72 gboolean
yelp_application_is_bookmarked (YelpBookmarks
*bookmarks
,
74 const gchar
*page_id
);
75 void yelp_application_update_bookmarks (YelpApplication
*app
,
80 GVariant
* yelp_application_get_bookmarks (YelpApplication
*app
,
81 const gchar
*doc_uri
);
82 void yelp_application_add_read_later (YelpApplication
*app
,
84 const gchar
*full_uri
,
86 void yelp_application_remove_read_later (YelpApplication
*app
,
88 const gchar
*full_uri
);
89 GVariant
* yelp_application_get_read_later (YelpApplication
*app
,
90 const gchar
*doc_uri
);
92 #endif /* __YELP_APPLICATION_H__ */