## ephy-cookie-manager ephy-cookie-manager — |

## Synopsis

    #define     EPHY_COOKIE_MANAGER_IFACE       (k)
    #define     EPHY_IS_COOKIE_MANAGER_IFACE    (k)
    #define     EPHY_TYPE_COOKIE
    enum        EphyCookieP3PState;
    enum        EphyCookieP3PPolicy;
    EphyCookie* ephy_cookie_new                 (void);
    EphyCookie* ephy_cookie_copy                (const EphyCookie *cookie);
    void        ephy_cookie_free                (EphyCookie *cookie);
    GType       ephy_cookie_manager_get_type    (void);
    GList*      ephy_cookie_manager_list_cookies
                                                (EphyCookieManager *manager);
    void        ephy_cookie_manager_remove_cookie
                                                (EphyCookieManager *manager,
                                                 const EphyCookie *cookie);
    void        ephy_cookie_manager_clear       (EphyCookieManager *manager);

## Description

## Details

### EPHY_COOKIE_MANAGER_IFACE()

    #define EPHY_COOKIE_MANAGER_IFACE(k)		(G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_COOKIE_MANAGER, EphyCookieManagerIface))

`k` : |

### EPHY_IS_COOKIE_MANAGER_IFACE()

    #define EPHY_IS_COOKIE_MANAGER_IFACE(k)		(G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_COOKIE_MANAGER))

`k` : |

### EPHY_TYPE_COOKIE

    #define EPHY_TYPE_COOKIE			(ephy_cookie_get_type ())

### enum EphyCookieP3PState

    typedef enum
    {
    	EPHY_COOKIE_P3P_STATE_UNKNOWN,
    	EPHY_COOKIE_P3P_STATE_ACCEPTED,
    	EPHY_COOKIE_P3P_STATE_DOWNGRADED,
    	EPHY_COOKIE_P3P_STATE_FLAGGED,
    	EPHY_COOKIE_P3P_STATE_REJECTED
    } EphyCookieP3PState;

### enum EphyCookieP3PPolicy

    typedef enum
    {
    	EPHY_COOKIE_P3P_POLICY_UNKNOWN,
    	EPHY_COOKIE_P3P_POLICY_NONE,
    	EPHY_COOKIE_P3P_POLICY_NO_CONSENT,
    	EPHY_COOKIE_P3P_POLICY_IMPLICIT_CONSENT,
    	EPHY_COOKIE_P3P_POLICY_EXPLICIT_CONSENT,
    	EPHY_COOKIE_P3P_POLICY_NO_II,
    } EphyCookieP3PPolicy;

### ephy_cookie_new ()

    EphyCookie* ephy_cookie_new                 (void);

Returns : | a new EphyCookie.

### ephy_cookie_copy ()

    EphyCookie* ephy_cookie_copy                (const EphyCookie *cookie);

`cookie` : | a EphyCookie
Returns : | a copy of `cookie`.

### ephy_cookie_free ()

    void        ephy_cookie_free                (EphyCookie *cookie);

Frees `cookie`.

`cookie` : | a EphyCookie

### ephy_cookie_manager_get_type ()

    GType       ephy_cookie_manager_get_type    (void);

Returns : |

### ephy_cookie_manager_list_cookies ()

    GList*      ephy_cookie_manager_list_cookies
                                                (EphyCookieManager *manager);

Lists all cookies in the cookies database.

`manager` : | the EphyCookieManager
Returns : | the cookies list

### ephy_cookie_manager_remove_cookie ()

    void        ephy_cookie_manager_remove_cookie
                                                (EphyCookieManager *manager,
                                                 const EphyCookie *cookie);

Removes `cookie` from the cookies database. You must free `cookie` yourself.

`manager` : | the EphyCookieManager
`cookie` : | a EphyCookie

### ephy_cookie_manager_clear ()

    void        ephy_cookie_manager_clear       (EphyCookieManager *manager);

Clears the cookies database.

`manager` : | the EphyCookieManager