2 * Copyright © 2003 Marco Pesenti Gritti
3 * Copyright © 2003 Christian Persch
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
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
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: ephy-cookie-manager.h 7035 2007-05-19 16:45:55Z chpe $
22 #ifndef EPHY_COOKIE_MANAGER_H
23 #define EPHY_COOKIE_MANAGER_H
25 #include <glib-object.h>
31 #define EPHY_TYPE_COOKIE_MANAGER (ephy_cookie_manager_get_type ())
32 #define EPHY_COOKIE_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_COOKIE_MANAGER, EphyCookieManager))
33 #define EPHY_COOKIE_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_COOKIE_MANAGER, EphyCookieManagerIface))
34 #define EPHY_IS_COOKIE_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_COOKIE_MANAGER))
35 #define EPHY_IS_COOKIE_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_COOKIE_MANAGER))
36 #define EPHY_COOKIE_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_COOKIE_MANAGER, EphyCookieManagerIface))
38 #define EPHY_TYPE_COOKIE (ephy_cookie_get_type ())
40 typedef struct _EphyCookieManager EphyCookieManager
;
41 typedef struct _EphyCookieManagerIface EphyCookieManagerIface
;
53 guint is_http_only
: 1;
56 struct _EphyCookieManagerIface
58 GTypeInterface base_iface
;
61 void (* added
) (EphyCookieManager
*manager
,
63 void (* changed
) (EphyCookieManager
*manager
,
65 void (* deleted
) (EphyCookieManager
*manager
,
67 void (* rejected
) (EphyCookieManager
*manager
,
69 void (* cleared
) (EphyCookieManager
*manager
);
72 GList
* (* list
) (EphyCookieManager
*manager
);
73 void (* remove
) (EphyCookieManager
*manager
,
74 const EphyCookie
*cookie
);
75 void (* clear
) (EphyCookieManager
*manager
);
80 GType
ephy_cookie_get_type (void);
82 EphyCookie
*ephy_cookie_new (void);
84 EphyCookie
*ephy_cookie_copy (const EphyCookie
*cookie
);
86 void ephy_cookie_free (EphyCookie
*cookie
);
88 /* EphyCookieManager */
90 GType
ephy_cookie_manager_get_type (void);
92 GList
* ephy_cookie_manager_list_cookies (EphyCookieManager
*manager
);
94 void ephy_cookie_manager_remove_cookie (EphyCookieManager
*manager
,
95 const EphyCookie
*cookie
);
97 void ephy_cookie_manager_clear (EphyCookieManager
*manager
);