/* Cataract - Static web photo gallery generator * Copyright (C) 2008 Tomas Bzatek * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __CGG__GENERATORS_H__ #define __CGG__GENERATORS_H__ #include #include "setup.h" #include "items.h" G_BEGIN_DECLS /* * generate_image: generate needed image sizes * * returns whether item needs to be updated */ gboolean generate_image (TGallerySetup *setup, TAlbum *items, TIndexItem *item, TPathInfo *path_info, gboolean query_update); /* * write_html_page: process template file * * template_src = template file of the album/index * dst = save generated file as * items = array of items in the album/index * item = when non-NULL, page will be written as a single picture page * */ gboolean write_html_page (TGallerySetup *setup, TPathInfo *path_info, TGalleryDesignTheme *theme, const gchar *template_src, const gchar *dst, TAlbum *items, TIndexItem *item); /* * write_auth_passwd_file, write_auth_htaccess_file: setup authentication files for the current album * */ gboolean write_auth_passwd_file (TGallerySetup *setup, const gchar *dst, TAlbum *items); gboolean write_auth_htaccess_file (TGallerySetup *setup, const gchar *dst, const gchar *passwd_file_name, TAlbum *items); G_END_DECLS #endif /* __CGG__GENERATORS_H__ */