2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: reminder.h /main/4 1995/11/09 12:48:37 rswiston $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company
26 * (c) Copyright 1993, 1994 International Business Machines Corp.
27 * (c) Copyright 1993, 1994 Novell, Inc.
28 * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
35 #include "EUSCompat.h"
40 typedef struct _RemInfo {
41 boolean_t isentry; /* entry vs appt */
42 time_t runtime; /* run time of reminder */
44 time_t lasttick; /* lasttick of a repeating event */
49 } data; /* associated entry */
51 Attr_4 *a; /* v4 reminder structure */
52 int i; /* index of attribute name */
53 } rem; /* associated reminder info */
54 struct _RemInfo *next; /* next reminder */
57 typedef struct _RemQueue {
60 int *aindex; /* array of attribute index */
61 char **names; /* array of names */
62 _DtCmsRemInfo **active; /* array of unexpired reminders */
63 _DtCmsRemInfo **oldhead; /* head of old reminders list */
66 typedef struct reminder_q {
71 struct reminder_q *next;
74 extern void _DtCmsAddReminderV4 P((Rm_que **qhead, Rm_que *p_reminder));
76 extern Rm_que *_DtCmsRemoveReminderV4 P((
81 extern Rm_que *build_reminder P((
88 extern Reminder_4 *_DtCmsGetReminderInfoV4 P((Rm_que *original));
90 extern void _DtCmsPrintReminderListV4 P((Rm_que *qhead));
92 extern void _DtCmsObsoleteReminderV4 P((
96 boolean_t delforward));
98 extern void _DtCmsAddReminders4Entry P((
99 _DtCmsRemQueue **qhead,
103 extern void _DtCmsObsoleteReminder4Entry P((
104 _DtCmsRemQueue *qhead,
110 extern CSA_return_code _DtCmsLookupReminder P((
111 _DtCmsRemQueue *remq,
114 cms_attr_name *names,
115 cms_reminder_ref **rems));
117 extern void _DtCmsFreeReminderRef P((cms_reminder_ref *rems));
119 extern void _DtCmsUpdateReminders(_DtCmsRemQueue *remq);