1 /* 2 * Copyright (c) 1994-96 Dimitrios P. Bouras and William K. W. Cheung 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a copy 5 * of this software and associated documentation files (the "Software"), to deal 6 * in the Software without restriction, including without limitation the rights 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 * copies of the Software, and to permit persons to whom the Software is 9 * furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 * X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 * 21 * Except as contained in this notice, the name of the X Consortium shall not be 22 * used in advertising or otherwise to promote the sale, use or other dealings 23 * in this Software without prior written authorization from the X Consortium. 24 * 25 * Derived from the MIT X11R5 xbiff, written by Jim Fulton, which is 26 * copyrighted (c) 1988 X Consortium. 27 * 28 * Mailbox XPM additions-modifications: Dimitrios P. Bouras 29 * Audio support and XPM icon animation: William K. W. Cheung 30 */ 31 32 33 #ifndef _Mailbox_XPM_h 34 #define _Mailbox_XPM_h 35 #include "version.h" 36 /* 37 * Mailbox widget; looks a lot like the clock widget, don't it... 38 */ 39 40 /* resource names used by mailbox widget that aren't defined in StringDefs.h */ 41 42 #ifndef _XtStringDefs_h_ 43 #define XtNupdate "update" 44 #endif 45 46 #define MAX_ANIM_IMAGE 8 47 48 /* command to exec */ 49 #define XtNcheckCommand "checkCommand" 50 #define XtNonceOnly "onceOnly" 51 52 /* Int: volume for bell */ 53 #define XtNvolume "volume" 54 55 /* filename resources for mail and nomail */ 56 #define Nmailtool "mailapp" 57 #define NmailXpmFile "mailXpmFile" 58 #define XtNmailNumOfXpmFile "mailNumOfXpmFile" 59 #define XtNmailAnimUpdate "mailAnimUpdate" 60 #define XtNmailAnimOnce "mailAnimOnce" 61 #define NmailSndFile "mailSndFile" 62 #define NmailSndComm "mailSndComm" 63 #define NnomailXpmFile "nomailXpmFile" 64 65 #define CMailTool "MailApp" 66 #define CMailXpmFile "MailXpmFile" 67 #define XtCMailNumOfXpmFile "MailNumOfXpmFile" 68 #define XtCMailAnimUpdate "MailAnimUpdate" 69 #define XtCMailAnimOnce "MailAnimOnce" 70 #define CMailSndFile "MailSndFile" 71 #define CMailSndComm "MailSndComm" 72 #define CNomailXpmFile "NoMailXpmFile" 73 74 #define XtCCheckCommand "CheckCommand" 75 #define XtCVolume "Volume" 76 77 78 /* structures */ 79 80 typedef struct _Mailbox_XPM_Rec *MailboxWidget; /* see MailboxP.h */ 81 typedef struct _Mailbox_XPM_ClassRec *MailboxWidgetClass; /* see MailboxP.h */ 82 83 84 extern WidgetClass mailboxWidgetClass; 85 86 #endif /* _Mailbox_XPM_h */ 87 /* DON'T ADD STUFF AFTER THIS #endif */ 88