Subversion Repositories Kolibri OS

Rev

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

  1. /*
  2.  * Copyright 2004, 2005 Richard Wilson <info@tinct.net>
  3.  * Copyright 2009 Paul Blokus <paul_pl@users.sourceforge.net>
  4.  *
  5.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  6.  *
  7.  * NetSurf is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; version 2 of the License.
  10.  *
  11.  * NetSurf is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  */
  19.  
  20.  
  21.  
  22. /** \file
  23.  * Hotlist (interface).
  24.  */
  25.  
  26. #ifndef _NETSURF_DESKTOP_HOTLIST_H_
  27. #define _NETSURF_DESKTOP_HOTLIST_H_
  28.  
  29. #include <stdbool.h>
  30.  
  31. #include "desktop/tree.h"
  32.  
  33. /**
  34.  * Initialise the hotlist from a frontend.
  35.  *
  36.  * \param tree The tree object which holds the hotlist.
  37.  * \param hotlist_path The file path to initialise the hotlist entries from.
  38.  * \param folder_icon_name The name to use for folder icons.
  39.  */
  40. bool hotlist_initialise(struct tree *tree, const char *hotlist_path, const char* folder_icon_name);
  41.  
  42. unsigned int hotlist_get_tree_flags(void);
  43. void hotlist_cleanup(const char *hotlist_path);
  44.  
  45. bool hotlist_export(const char *path);
  46. void hotlist_edit_selected(void);
  47. void hotlist_delete_selected(void);
  48. void hotlist_select_all(void);
  49. void hotlist_clear_selection(void);
  50. void hotlist_expand_all(void);
  51. void hotlist_expand_directories(void);
  52. void hotlist_expand_addresses(void);
  53. void hotlist_collapse_all(void);
  54. void hotlist_collapse_directories(void);
  55. void hotlist_collapse_addresses(void);
  56. void hotlist_add_folder(bool selected);
  57. void hotlist_add_entry(bool selected);
  58. void hotlist_add_page(const char *url);
  59. void hotlist_add_page_xy(const char *url, int x, int y);
  60. void hotlist_launch_selected(bool tabs);
  61. bool hotlist_set_default_folder(bool clear);
  62. #endif
  63.