#ifndef __FETCH_H__
#define __FETCH_H__ 1
/* 
   elmo - ELectronic Mail Operator

   Copyright (C) 2003 rzyjontko

   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; version 2.

   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.  

*/
/*****************************************************************************
 *    INTERFACE REQUIRED HEADERS
 ****************************************************************************/
/*****************************************************************************
 *    INTERFACE DEFINITIONS / ENUMERATIONS / SIMPLE TYPEDEFS
 ****************************************************************************/
/****************************************************************************
 *    INTERFACE CLASS PROTOTYPES / EXTERNAL CLASS REFERENCES
 ****************************************************************************/
/****************************************************************************
 *    INTERFACE STRUCTURES / UTILITY CLASSES
 ****************************************************************************/
/****************************************************************************
 *    INTERFACE DATA DECLARATIONS
 ****************************************************************************/

extern int fetch_got_mail;

/****************************************************************************
 *    INTERFACE FUNCTION PROTOTYPES
 ****************************************************************************/

extern void fetch_init (void);
extern void fetch_free_resources (void);

extern void fetch_show (void);
extern void fetch_redraw (void);
extern void fetch_set_focus (void);
extern void fetch_unset_focus (void);

/** fetch all messages from the server */
extern void fetch_all (void);
extern void fetch_get_rest (void);
/*+
  Before a window is opened, elmo fetches headers of messages,
  that hasn't been fetched yet.  You are then presented a list
  of messages, that you may fetch or delete.
  +*/
/** open window with message list */
extern void fetch_open (void);
extern void fetch_open_all (void);
/** close connection */
extern void fetch_close (void);
/** move on to the next position */
extern void fetch_next (void);
/** move to the previous position */
extern void fetch_prev (void);
/** move on to the next page */
extern void fetch_next_page (void);
/** move to the previous position */
extern void fetch_prev_page (void);
/** move to the first position */
extern void fetch_first (void);
/** move to the last position */
extern void fetch_last (void);
/*+
  This command clears a "delete" flag from all messages scheduled
  for deletion.  They may fetched then.
  +*/
/** reset state of the connection */
extern void fetch_rset (void);
extern void fetch_del_all (void);
/*+
  This command schedules a message to be deleted, right after
  the connection is closed.  Such a message may not be fetched.
 +*/
/** delete selected message */
extern void fetch_del_mail (void);
/** fetch selected message */
extern void fetch_get_mail (void);
/** mark message as fetched */
extern void fetch_mark_mail (void);
extern void fetch_unmark_mail (void);
extern void fetch_mark_all (void);
extern void fetch_unmark_all (void);
extern void fetch_remove_till_limit (void);
extern void fetch_remove_till_count (void);

/****************************************************************************
 *    INTERFACE OBJECT CLASS DEFINITIONS
 ****************************************************************************/
/****************************************************************************
 *    INTERFACE TRAILING HEADERS
 ****************************************************************************/
/****************************************************************************
 *
 *    END HEADER fetch.h
 *
 ****************************************************************************/
#endif


syntax highlighted by Code2HTML, v. 0.9.1