Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtcm / dtcm / rfp.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*******************************************************************************
24 **
25 **  rfp.h
26 **
27 **  static char sccsid[] = "@(#)rfp.h 1.20 95/02/10 Copyr 1991 Sun Microsystems, Inc.";
28 **
29 **  $XConsortium: rfp.h /main/4 1996/05/23 11:17:56 rswiston $
30 **
31 **  RESTRICTED CONFIDENTIAL INFORMATION:
32 **
33 **  The information in this document is subject to special
34 **  restrictions in a confidential disclosure agreement between
35 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
36 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
37 **  Sun's specific written approval.  This document and all copies
38 **  and derivative works thereof must be returned or destroyed at
39 **  Sun's request.
40 **
41 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
42 **
43 *******************************************************************************/
44
45 /*                                                                      *
46  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
47  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
48  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
49  * (c) Copyright 1993, 1994 Novell, Inc.                                *
50  */
51
52 #ifndef _RFP_H
53 #define _RFP_H
54
55 #include <csa.h>
56 #include "ansi_c.h"
57 #include "calendar.h"
58 #include "misc.h"
59
60 #define FOR_LEN 5
61
62 /*******************************************************************************
63 **
64 **  Structure for repeat, for scope, and privacy values
65 **
66 *******************************************************************************/
67 typedef struct {
68         Widget                  for_label;
69         Widget                  for_menu;
70         Widget                  for_scope;
71         int                     for_val;
72         Widget                  frequency_label;
73         Widget                  parent;
74         Widget                  privacy_label;
75         Widget                  privacy_menu;
76         CSA_sint32              privacy_val;
77         Calendar                *cal;
78         Widget                  repeat_form_mgr;
79         Widget                  repeat_label;
80         Widget                  repeat_menu;
81         Widget                  repeat_popup_frame;
82         Widget                  repeat_popup_menu;
83         Widget                  repeat_popup_text;
84         Widget                  repeat_apply_button;
85         Widget                  repeat_cancel_button;
86         int                     repeat_nth;
87         CSA_sint32              repeat_type;
88         char                    *recurrence_rule;
89         Widget                  rfp_form_mgr;
90 } RFP;
91
92 /* Monthly-by-weekday flags */
93 #define RFP_MBW_LAST 1
94 #define RFP_MBW_4TH  2
95
96 /*******************************************************************************
97 **
98 **  RFP (repeat, for, privacy) external function declarations
99 **
100 *******************************************************************************/
101 extern void     build_rfp               P((RFP*, Calendar*, Widget));
102 extern void     get_rfp_privacy_val     P((RFP*));
103 extern void     get_rfp_repeat_val      P((RFP*, time_t));
104 extern void     get_rfp_vals            P((RFP*, time_t));
105 extern Boolean  rfp_attrs_to_form       P((RFP*, Dtcm_appointment*));
106 extern Boolean  rfp_appt_to_form        P((RFP*, CSA_entry_handle));
107 extern Boolean  rfp_form_to_appt        P((RFP*, Dtcm_appointment*, char*));
108 extern Boolean  rfp_form_flags_to_appt  P((RFP*, Dtcm_appointment*, char*, int *));
109 extern void     set_rfp_privacy_val     P((RFP*));
110 extern void     set_rfp_repeat_val      P((RFP*));
111 extern void     set_rfp_defaults        P((RFP*));
112 extern void     set_rfp_vals            P((RFP*));
113 extern void     rfp_set_repeat_values   P((RFP*));
114 extern void     rfp_init                P((RFP*, Calendar *, Widget));
115
116
117 #endif