Subversion Repositories Kolibri OS

Rev

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

  1. /*
  2.  * Copyright 2010 Michael Drake <tlsa@netsurf-browser.org>
  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.  * Generate HTML content for displaying directory listings (interface).
  21.  *
  22.  * These functions should in general be called via the content interface.
  23.  */
  24.  
  25. #ifndef _NETSURF_CONTENT_DIRLIST_H_
  26. #define _NETSURF_CONTENT_DIRLIST_H_
  27.  
  28. #include <stdbool.h>
  29.  
  30. #define DIRLIST_NO_NAME_COLUMN 1
  31. #define DIRLIST_NO_TYPE_COLUMN 1 << 1
  32. #define DIRLIST_NO_SIZE_COLUMN 1 << 2
  33. #define DIRLIST_NO_DATE_COLUMN 1 << 3
  34. #define DIRLIST_NO_TIME_COLUMN 1 << 4
  35.  
  36. bool dirlist_generate_top(char *buffer, int buffer_length);
  37. bool dirlist_generate_hide_columns(int flags, char *buffer, int buffer_length);
  38. bool dirlist_generate_title(const char *title, char *buffer, int buffer_length);
  39. bool dirlist_generate_parent_link(const char *parent, char *buffer,
  40.                 int buffer_length);
  41. bool dirlist_generate_headings(char *buffer, int buffer_length);
  42. bool dirlist_generate_row(bool even, bool directory, char *url, char *name,
  43.                 const char *mimetype, long long size, char *date, char *time,
  44.                 char *buffer, int buffer_length);
  45. bool dirlist_generate_bottom(char *buffer, int buffer_length);
  46.  
  47. #endif
  48.