812N/A/*
812N/A * $XConsortium: MailboxP.h,v 1.16 89/05/11 01:05:56 kit Exp $
812N/A *
812N/A * Copyright 1988 Massachusetts Institute of Technology
812N/A *
812N/A * Permission to use, copy, modify, and distribute this software and its
812N/A * documentation for any purpose and without fee is hereby granted, provided
812N/A * that the above copyright notice appear in all copies and that both that
812N/A * copyright notice and this permission notice appear in supporting
812N/A * documentation, and that the name of M.I.T. not be used in advertising or
812N/A * publicity pertaining to distribution of the software without specific,
812N/A * written prior permission. M.I.T. makes no representations about the
812N/A * suitability of this software for any purpose. It is provided "as is"
812N/A * without express or implied warranty.
812N/A *
812N/A * Author: Jim Fulton, MIT X Consortium
812N/A */
812N/A
812N/A#ifndef _XawMailboxP_h
812N/A#define _XawMailboxP_h
812N/A
812N/A#include <./Xaw3_1Mailbox.h>
812N/A
812N/A#ifdef SYSV
812N/A#define MAILBOX_DIRECTORY "/usr/mail"
812N/A#else
812N/A#define MAILBOX_DIRECTORY "/usr/spool/mail"
812N/A#endif
812N/A
812N/Atypedef struct { /* new fields for mailbox widget */
812N/A /* resources */
812N/A int update; /* seconds between updates */
812N/A Pixel foreground_pixel; /* color index of normal state fg */
812N/A String filename; /* filename to watch */
812N/A String check_command; /* command to exec for mail check */
812N/A Boolean reverseVideo; /* do reverse video? */
812N/A Boolean flipit; /* do flip of full pixmap */
812N/A int volume; /* bell volume */
812N/A Boolean once_only; /* ring bell only once on new mail */
812N/A /* local state */
812N/A GC gc; /* normal GC to use */
812N/A long last_size; /* size in bytes of mailboxname */
812N/A XtIntervalId interval_id; /* time between checks */
812N/A Boolean flag_up; /* is the flag up? */
812N/A struct _mbimage {
812N/A Pixmap bitmap, mask; /* depth 1, describing shape */
812N/A Pixmap pixmap; /* full depth pixmap */
812N/A int width, height; /* geometry of pixmaps */
812N/A } full, empty;
812N/A#ifdef SHAPE
812N/A Boolean shapeit; /* do shape extension */
812N/A struct {
812N/A Pixmap mask;
812N/A int x, y;
} shape_cache; /* last set of info */
#endif
} MailboxPart;
typedef struct _MailboxRec { /* full instance record */
CorePart core;
MailboxPart mailbox;
} MailboxRec;
typedef struct { /* new fields for mailbox class */
int dummy; /* stupid C compiler */
} MailboxClassPart;
typedef struct _MailboxClassRec { /* full class record declaration */
CoreClassPart core_class;
MailboxClassPart mailbox_class;
} MailboxClassRec;
extern MailboxClassRec mailboxClassRec; /* class pointer */
#endif /* _XawMailboxP_h */