/* Constants for both Reminder and ReminderCheck */

/* $Id: Constants.h,v 1.6 93/03/06 11:43:08 Matti_Rintala Exp $ */

#ifndef CONSTANTS_H
#define CONSTANTS_H

#include <exec/nodes.h>

/* Tooltype (or command line arg) which tells the database name */
#define FILETYPE "FILE"
/* Default filename for database */
#define DEFAULTFILE "S:Reminder.data"

/* Tooltype (or command line arg) which tells the minimum interval
   (in hours) between two checks */
#define INTRVLTYPE "INTERVAL"
#define DEFAULTINTRVL 0

/* Minimum and maximum years */
#define MINYEAR 1993
#define MAXYEAR 2099

/* Maximum number of days before which the reminding starts */
#define MAXBEFORE 365
/* Same for after event */
#define MAXAFTER MAXBEFORE

/* Maximum length of entered text */
#define TEXTLEN 90

/* Maximun length of one entry in Eventlist gadget */
#define ENTRYLEN 40

/* EventNode structure, holding all events in the database */
struct EventNode {
  struct Node node;
  char entry[ENTRYLEN+1];	/* Text in the Eventlist gadget */
  char text[TEXTLEN+1];		/* Text of the event */
  short wday, day, month, year;	/* Date of event */
  short after, before;		/* Reminding limits */
  BOOL autodelete;		/* autodeletion flag */
  short aday, amonth, ayear;	/* acknowledgement date */
};

/* String in entry-field above, if entry is deleted */
#define DELETEDSTR "DELETED!"

#endif
