Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / rfp.h
1 /*******************************************************************************
2 **
3 **  rfp.h
4 **
5 **  static char sccsid[] = "@(#)rfp.h 1.20 95/02/10 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: rfp.h /main/4 1996/05/23 11:17:56 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
11 **  The information in this document is subject to special
12 **  restrictions in a confidential disclosure agreement between
13 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
14 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
15 **  Sun's specific written approval.  This document and all copies
16 **  and derivative works thereof must be returned or destroyed at
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
24  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
25  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
26  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
27  * (c) Copyright 1993, 1994 Novell, Inc.                                *
28  */
29
30 #ifndef _RFP_H
31 #define _RFP_H
32
33 #include <csa.h>
34 #include "ansi_c.h"
35 #include "calendar.h"
36 #include "misc.h"
37
38 #define FOR_LEN 5
39
40 /*******************************************************************************
41 **
42 **  Structure for repeat, for scope, and privacy values
43 **
44 *******************************************************************************/
45 typedef struct {
46         Widget                  for_label;
47         Widget                  for_menu;
48         Widget                  for_scope;
49         int                     for_val;
50         Widget                  frequency_label;
51         Widget                  parent;
52         Widget                  privacy_label;
53         Widget                  privacy_menu;
54         CSA_sint32              privacy_val;
55         Calendar                *cal;
56         Widget                  repeat_form_mgr;
57         Widget                  repeat_label;
58         Widget                  repeat_menu;
59         Widget                  repeat_popup_frame;
60         Widget                  repeat_popup_menu;
61         Widget                  repeat_popup_text;
62         Widget                  repeat_apply_button;
63         Widget                  repeat_cancel_button;
64         int                     repeat_nth;
65         CSA_sint32              repeat_type;
66         char                    *recurrence_rule;
67         Widget                  rfp_form_mgr;
68 } RFP;
69
70 /* Monthly-by-weekday flags */
71 #define RFP_MBW_LAST 1
72 #define RFP_MBW_4TH  2
73
74 /*******************************************************************************
75 **
76 **  RFP (repeat, for, privacy) external function declarations
77 **
78 *******************************************************************************/
79 extern void     build_rfp               P((RFP*, Calendar*, Widget));
80 extern void     get_rfp_privacy_val     P((RFP*));
81 extern void     get_rfp_repeat_val      P((RFP*, time_t));
82 extern void     get_rfp_vals            P((RFP*, time_t));
83 extern Boolean  rfp_attrs_to_form       P((RFP*, Dtcm_appointment*));
84 extern Boolean  rfp_appt_to_form        P((RFP*, CSA_entry_handle));
85 extern Boolean  rfp_form_to_appt        P((RFP*, Dtcm_appointment*, char*));
86 extern Boolean  rfp_form_flags_to_appt  P((RFP*, Dtcm_appointment*, char*, int *));
87 extern void     set_rfp_privacy_val     P((RFP*));
88 extern void     set_rfp_repeat_val      P((RFP*));
89 extern void     set_rfp_defaults        P((RFP*));
90 extern void     set_rfp_vals            P((RFP*));
91 extern void     rfp_set_repeat_values   P((RFP*));
92 extern void     rfp_init                P((RFP*, Calendar *, Widget));
93
94
95 #endif