Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2006 Richard Wilson <info@tinct.net>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf 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.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. /** \file
  20.  * Cookies (interface).
  21.  */
  22.  
  23. #ifndef _NETSURF_DESKTOP_COOKIES_H_
  24. #define _NETSURF_DESKTOP_COOKIES_H_
  25.  
  26. #include <stdbool.h>
  27.  
  28. #include "desktop/tree.h"
  29.  
  30. struct cookie_data;
  31.  
  32. bool cookies_initialise(struct tree *tree, const char* folder_icon_name, const char* cookie_icon_name);
  33. unsigned int cookies_get_tree_flags(void);
  34.  
  35. /**
  36.  * Perform cookie updates and addition. The update is only scheduled here.
  37.  * The actual update is performed in the callback function.
  38.  *
  39.  * \param data Data of cookie being updated.
  40.  * \return true (for urldb_iterate_entries)
  41.  */
  42. bool cookies_schedule_update(const struct cookie_data *data);
  43.  
  44. /**
  45.  * Remove a cookie from the active set.
  46.  * The cookie is to be removed from the active set and no futher
  47.  * references made to the cookie data.
  48.  *
  49.  * \param data Data of cookie being removed.
  50.  */
  51. void cookies_remove(const struct cookie_data *data);
  52.  
  53. void cookies_cleanup(void);
  54.  
  55. void cookies_delete_selected(void);
  56. void cookies_delete_all(void);
  57. void cookies_select_all(void);
  58. void cookies_clear_selection(void);
  59. void cookies_expand_all(void);
  60. void cookies_expand_domains(void);
  61. void cookies_expand_cookies(void);
  62. void cookies_collapse_all(void);
  63. void cookies_collapse_domains(void);
  64. void cookies_collapse_cookies(void);
  65.  
  66. #endif
  67.