1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/* -*-mode:c; c-style:k&r; c-basic-offset:4; -*- */
/* Balsa E-Mail Client
* Copyright (C) 1997-2002 Stuart Parmenter and others,
* See the file AUTHORS for a list.
*
* 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, or (at your option)
* 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., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#ifndef __FOLDER_SCANNERS_H__
#define __FOLDER_SCANNERS_H__
typedef gboolean LocalCheck(const gchar * fn, guint depth);
typedef void LocalMark(gpointer node);
typedef gpointer LocalHandler(gpointer root, const char *d_name,
const char *fn, GType type);
typedef gboolean ImapCheck(const char *fn, LibBalsaServer * server,
guint depth);
typedef void ImapMark(const char *fn, gpointer data);
typedef void ImapHandler(const char *fn, char delim, gint noselect,
gint marked, gint noscan, gpointer data);
/* read_dir used by mailbox-node append-subtree callback */
void libbalsa_scanner_local_dir(gpointer rnode, const gchar * prefix,
LocalCheck check_local_path,
LocalMark mark_local_path,
LocalHandler folder_handler,
LocalHandler mailbox_handler,
GType parent_type);
void libbalsa_scanner_imap_dir(gpointer rnode, LibBalsaServer * server,
const gchar* path, int delim,
gboolean subscribed, gboolean list_inbox,
ImapCheck check_imap_path,
ImapMark mark_imap_path,
ImapHandler handle_imap_path,
gpointer cb_data,
GError **error);
#endif /* __FOLDER_SCANNERS_H__ */
|