home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Eudora 1.3.1 / source / Include / message.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  2.4 KB  |  47 lines  |  [TEXT/MPS ]

  1. /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */
  2. /**********************************************************************
  3.  * structure to describe message
  4.  **********************************************************************/
  5. typedef struct
  6. {
  7.     TOCType **tocH;         /* the table of contents to which this message belongs */
  8.     int sumNum;                 /* the summary number of this message's summary */
  9.     TEHandle txes[HEAD_LIMIT];    /* handles for the various message fields */
  10.     Boolean txRo[HEAD_LIMIT];     /* whether or not given field is ro */
  11.     MyWindowPtr win;        /* window I'm displayed in */
  12.     Boolean dirty;            /* whether or not message is dirty */
  13.     long weeded;                    /* number of header bytes "weeded" out */
  14.     ControlHandle sendButton;         /* the send button */
  15.     STEHandle stes[2];    /* STE's for incoming windows */
  16.     Handle next;                /* next message in the list */
  17. } MessType, *MessPtr, **MessHandle;
  18.  
  19. /**********************************************************************
  20.  * prototypes
  21.  **********************************************************************/
  22. int ReadMessage(TOCType **tocH,int sumNum,UPtr buffer);
  23. int MoveMessage(TOCType **tocH,int sumNum,long dirId,UPtr toWhich,Boolean copy);
  24. int MoveSelectedMessages(TOCType **tocH,long dirId,UPtr toWhich,Boolean copy);
  25. void DeleteMessage(TOCType **tocH, int sumNum);
  26. int MessageError(void);
  27. void DoIterativeThingy(TOCType **tocH,int item,long modifiers,short toWhom);
  28. MyWindowPtr DoReplyMessage(MyWindowPtr win,long modifiers,short toWhom,Boolean vis);
  29. short DoRedistributeMessage(MyWindowPtr win,short toWhom);
  30. short DoForwardMessage(MyWindowPtr win,short toWhom);
  31. short DoSalvageMessage(MyWindowPtr win);
  32. void SetMessText(MessType **messH,short whichTXE,UPtr string,short size);
  33. void AppendMessText(MessType **messH,short whichTXE,UPtr string,short size);
  34. void PrependMessText(MessType **messH,short whichTXE,UPtr string,short size);
  35. short BoxNextSelected(TOCHandle tocH,short afterNum);
  36. void QuoteLines(MessType **messH,short whichTXE,int from,int to,short pfid);
  37. void MakeMessTitle(UPtr title,TOCType **tocH,int sumNum);
  38. MyWindowPtr GetAMessage(TOCType **tocH,int sumNum,MyWindowPtr win, Boolean showIt);
  39. MyWindowPtr ReopenMessage(MyWindowPtr win);
  40. #define MAX_HEADER 64
  41. #define Win2MessH(win) ((MessHandle)win->qWindow.refCon)
  42. #define SumOf(mH) (&(*(*mH)->tocH)->sums[(*mH)->sumNum])
  43. #define BodyOf(mH) ((*mH)->txes[BODY])
  44. #define Win2Body(win) BodyOf(Win2MessH(win))
  45.  
  46.  
  47.