More fixes for signal simulation in the completion prototype
[ephy-history.git] / ephyhistory.defs
blob3175fff5c0ca2228e522ae1733f83274f40df200
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object History
4   (in-module "Ephy")
5   (parent "GObject")
6   (c-name "EphyHistory")
7   (gtype-id "EPHY_TYPE_HISTORY")
10 (define-object HistoryNode
11   (in-module "Ephy")
12   (parent "GObject")
13   (c-name "EphyHistoryNode")
14   (gtype-id "EPHY_TYPE_HISTORY_NODE")
17 (define-object HistoryPageNode
18   (in-module "Ephy")
19   (parent "EphyHistoryNode")
20   (c-name "EphyHistoryPageNode")
21   (gtype-id "EPHY_TYPE_HISTORY_PAGE_NODE")
24 (define-object HistoryVisitNode
25   (in-module "Ephy")
26   (parent "GObject")
27   (c-name "EphyHistoryVisitNode")
28   (gtype-id "EPHY_TYPE_HISTORY_VISIT_NODE")
31 ;; Enumerations and flags ...
34 ;; From ephy-history.h
36 (define-function ephy_history_get_type
37   (c-name "ephy_history_get_type")
38   (return-type "GType")
41 (define-function ephy_history_new
42   (c-name "ephy_history_new")
43   (is-constructor-of "EphyHistory")
44   (return-type "EphyHistory*")
47 (define-method is_enabled
48   (of-object "EphyHistory")
49   (c-name "ephy_history_is_enabled")
50   (return-type "gboolean")
53 (define-method get_page_visit_count
54   (of-object "EphyHistory")
55   (c-name "ephy_history_get_page_visit_count")
56   (return-type "gint")
57   (parameters
58     '("const-char*" "url")
59   )
62 (define-method get_hosts
63   (of-object "EphyHistory")
64   (c-name "ephy_history_get_hosts")
65   (return-type "GPtrArray*")
68 (define-method get_pages
69   (of-object "EphyHistory")
70   (c-name "ephy_history_get_pages")
71   (return-type "GPtrArray*")
74 (define-method set_icon
75   (of-object "EphyHistory")
76   (c-name "ephy_history_set_icon")
77   (return-type "gboolean")
78   (parameters
79     '("const-char*" "url")
80     '("const-char*" "icon")
81   )
84 (define-method get_icon
85   (of-object "EphyHistory")
86   (c-name "ephy_history_get_icon")
87   (return-type "const-char*")
88   (parameters
89     '("const-char*" "url")
90   )
93 (define-method clear
94   (of-object "EphyHistory")
95   (c-name "ephy_history_clear")
96   (return-type "none")
99 (define-method add_page
100   (of-object "EphyHistory")
101   (c-name "ephy_history_add_page")
102   (return-type "gboolean")
103   (parameters
104     '("const-char*" "url")
105     '("gboolean" "redirect")
106     '("gboolean" "toplevel")
107     '("const-char*" "ref_url")
108   )
111 (define-method is_page_visited
112   (of-object "EphyHistory")
113   (c-name "ephy_history_is_page_visited")
114   (return-type "gboolean")
115   (parameters
116     '("const-char*" "url")
117   )
120 (define-method set_page_title
121   (of-object "EphyHistory")
122   (c-name "ephy_history_set_page_title")
123   (return-type "gboolean")
124   (parameters
125     '("const-char*" "url")
126     '("const-char*" "title")
127   )
130 (define-method get_page_ids
131   (of-object "EphyHistory")
132   (c-name "ephy_history_get_page_ids")
133   (return-type "GArray*")
136 (define-method get_page_by_id
137   (of-object "EphyHistory")
138   (c-name "ephy_history_get_page_by_id")
139   (return-type "EphyHistoryPageNode*")
140   (parameters
141     '("guint64" "id")
142   )
147 ;; From ephy-history-node.h
149 (define-function ephy_history_node_get_type
150   (c-name "ephy_history_node_get_type")
151   (return-type "GType")
156 ;; From ephy-history-page-node.h
158 (define-function ephy_history_page_node_get_type
159   (c-name "ephy_history_page_node_get_type")
160   (return-type "GType")
163 (define-function ephy_history_page_node_new
164   (c-name "ephy_history_page_node_new")
165   (is-constructor-of "EphyHistoryPageNode")
166   (return-type "EphyHistoryPageNode*")
167   (parameters
168     '("guint64" "id")
169     '("const-char*" "uri")
170     '("const-char*" "title")
171     '("const-char*" "favicon_uri")
172     '("guint" "visit_count")
173     '("guint64" "last_visit")
174   )
177 (define-method free
178   (of-object "EphyHistoryPageNode")
179   (c-name "ephy_history_page_node_free")
180   (return-type "none")
185 ;; From ephy-history-visit-node.h
187 (define-function ephy_history_visit_node_get_type
188   (c-name "ephy_history_visit_node_get_type")
189   (return-type "GType")