home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 151 / IMDEV.ZIP / I / EVENT.H < prev    next >
Text File  |  1993-04-28  |  4KB  |  114 lines

  1. /*
  2. **  event.h (InterMail)
  3. **
  4. **  Copyright 1989-1993 Peter Stewart & InterZone Software, inc.
  5. **  All rights reserved
  6. **
  7. **  Definitions for record in EVENT.0##
  8. **
  9. */
  10.  
  11. /*
  12. **  Day values, non-exclusive bit values
  13. **
  14. **  I.e. If the event was active on Monday and Tuesday, the day field
  15. **       would contain 0x03. If the event is active on all days, the
  16. **       day field should only contain 0x80.
  17. */
  18.  
  19. #define MONDAY      0x01
  20. #define TUESDAY     0x02
  21. #define WEDNESDAY   0x04
  22. #define THURSDAY    0x08
  23. #define FRIDAY      0x10
  24. #define SATURDAY    0x20
  25. #define SUNDAY      0x40
  26. #define ALL         0x80
  27.  
  28.  
  29. /*
  30. **  Behavior, non-exclusive bit values
  31. **
  32. **  I.e. If an event had FREQ_OK and DO_PICKUP enabled, the behavior field
  33. **       would be 0x00000018L.
  34. **
  35. */
  36.  
  37. #define USERS_OK        0x00000001L /* Allow users to interrupt event */
  38. #define MAIL_EXIT       0x00000002L /* Exit when mail is received */
  39. #define CRASH_ONLY      0x00000004L /* Only send Crash mail */
  40. #define FREQ_OK         0x00000008L /* Honor inbound file requests */
  41. #define DO_PICKUP       0x00000010L /* Pickup mail during outbound calls */
  42. #define ALLOW_PICKUP    0x00000020L /* Allow calling nodes to pickup mail */
  43. #define SEND_ONLY       0x00000040L /* Send only, don't wait between calls */
  44. #define RECV_ONLY       0x00000080L /* Receive only, don't make any calls */
  45. #define FORCED          0x00000100L /* Event is forced and MUST be executed */
  46. #define ENDNOMAIL       0x00000200L /* End event when no more outgoing mail */
  47. #define SENDTOCM        0x00000400L /* Send to CM systems only */
  48. #define SENDTONOCM      0x00000800L /* Send to non-CM systems only */
  49. #define ONLYONCE        0x00001000L /* Only call a node once during event */
  50. #define PICKUPFREQ      0x00002000L /* Honor file requests on outbound calls */
  51. #define HOLDFREQ        0x00004000L /* Don't send file requests during event */
  52. #define HOLDFILES       0x00008000L /* Don't send file attaches during event */
  53.  
  54. /* .. gap .. */
  55.  
  56. #define DELETED         0x40000000L /* Never written to disk */
  57. #define INACTIVE        0x80000000L
  58.  
  59.  
  60. /*
  61. **  The first record in EVENT.CFG must be the EVENTBASE and have the tag
  62. **  field set to "@".
  63. */
  64.  
  65. typedef struct
  66.  {
  67.    char    tag;        /* Event tag A-Z (X==External) */
  68.    byte    day;        /* Days to execute event on, non-exclusive value */
  69.    char    mud,        /* - Subtract, + Add, * Don't use eventbase */
  70.            s_hr,       /* Starting hour, 24 hour format */
  71.            s_mi,       /* Starting minute */
  72.            l_hr,       /* Length (hours), 24 hour format */
  73.            l_mi;       /* Length (minute) */
  74.    byte    level;      /* Errorlevel on X-events, ignored on non-X events */
  75.    dword   behave;     /* Event behavior, non-exclusive value */
  76.    int     cost;       /* Maxmium cost of mail to go out, -1 don't care */
  77.    int     lastrun;    /* Packed DOS date when last executed */
  78.    byte    usealias;   /* AKA to use for event, 0==Primary  */
  79.    word    timer;      /* Delay between calls in seconds, 0==Default */
  80.    word    mincost;    /* Minimum cost for messages to go out */
  81.    char    RESERVED;   /* Don't touch this! */
  82.    char    comment[38];/* Comment (user supplied) */
  83.  }
  84.  EVENT, *EVENTPTR;
  85.  
  86. #ifdef OLDSTUFF   /* Old version of event record, IM 2.10 and earlier */
  87.  
  88. typedef struct
  89.  {
  90.    char    tag;        /* Event tag A-Z (X==External) */
  91.    byte    day;        /* Days to execute event on, non-exclusive value */
  92.    char    mud,        /* - Subtract, + Add, * Don't use eventbase */
  93.            s_hr,       /* Starting hour, 24 hour format */
  94.            s_mi,       /* Starting minute */
  95.            l_hr,       /* Length (hours), 24 hour format */
  96.            l_mi;       /* Length (minute) */
  97.    byte    level;      /* Errorlevel on X-events, ignored on non-X events */
  98.    dword   behave;     /* Event behavior, non-exclusive value */
  99.    int     cost;       /* Maxmium cost of mail to go out, -1 don't care */
  100.    int     lastrun;    /* Packed DOS date when last executed */
  101.    byte    usealias;   /* AKA to use for event, 0==Primary  */
  102.    word    timer;      /* Delay between calls in seconds, 0==Default */
  103.    word    mincost;    /* Minimum cost for messages to go out */
  104.    char    RESERVED;   /* Don't touch this! */
  105.  }
  106.  OLDEVENT, *OLDEVENTPTR;
  107.  
  108. #endif OLDSTUFF
  109.  
  110. #endif _NOTEVENT_
  111.  
  112. /* end of file "event.h" */
  113.  
  114.