1 /*******************************************************************************
5 ** static char sccsid[] = "@(#)cm_tty.h 1.35 95/07/27 Copyr 1991 Sun Microsystems, Inc.";
7 ** $XConsortium: cm_tty.h /main/5 1996/10/10 14:49:30 barstow $
9 ** RESTRICTED CONFIDENTIAL INFORMATION:
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
19 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 *******************************************************************************/
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. *
40 #define DTCM_CAT "dtcm"
43 * Enumerated type for use with appointment file parsing routines. For text,
48 APPOINTMENT_START, /* "** Calendar Appointment **" */
49 DATE_KEY, /* "Date:" */
50 START_KEY, /* "Time:", "Start:", "From:" */
51 STOP_KEY, /* "Until:", "Stop:", "To:" */
52 DURATION_KEY, /* "Duration:" */
53 WHAT_KEY, /* "What:" */
54 REPEAT_KEY, /* "Repeat:" */
56 NEW_APPT_KEY /* "cm_appt_def:string:begin" */
60 * Types used in the validation process for each appointment
80 * Enumerated types used to access static strings for appointment information.
117 } Time_scope_menu_op;
123 } Repeat_scope_menu_op;
150 static const int NO_TIME = -1;
151 static const int ALL_DAY = -2;
154 * External function definitions
156 extern char *boolean_str P((boolean_t));
157 extern int cm_tty_delete P((nl_catd, CSA_session_handle, int, int, CSA_entry_handle*));
158 extern void cm_tty_format_header P((Props*, Tick, char*));
159 extern int cm_tty_insert P((nl_catd, CSA_session_handle, int, char*, char*,
160 char*, char*, char*, char*,
162 extern void cm_tty_load_props P((Props**));
163 extern int cm_tty_lookup P((nl_catd, CSA_session_handle, int, char*, char*,
164 CSA_entry_handle**, Props*));
165 extern boolean_t convert_boolean_str P((char*));
166 extern CSA_sint32 convert_privacy_str P((char*));
167 extern int convert_privacy_str_to_op P((char*));
168 extern SeparatorType convert_separator_str P((char*));
169 extern Time_scope_menu_op convert_time_scope_str P((char*));
170 extern char *day_str P((Days_op));
171 extern char *default_repeat_cnt_str P((Repeat_menu_op));
172 extern char *default_repeat_scope_str P((nl_catd, Repeat_menu_op));
173 extern char *for_str P((For_menu_op));
174 extern char *get_datemsg P((OrderingType,
176 extern Parse_key_op identify_parse_key P((char*));
177 extern void load_appt_defaults P((Dtcm_appointment*, Props*));
178 extern void load_reminder_props P((Dtcm_appointment*, Props*));
179 extern char *month_str P((Months_op));
180 extern Validate_op parse_appt_from_file P((nl_catd, char*, CmDataList*,
181 Props*, boolean_t(*)(void*),
183 extern char *parse_attrs_to_string P((Dtcm_appointment*, Props*,
185 extern char *attrs_to_string P((CSA_attribute *, int));
186 extern char *create_rfc_message P((char *, char *, char**, int));
187 extern char *parse_appt_to_string P((CSA_session_handle, CSA_entry_handle, Props*, int));
188 extern char *periodstr_from_period P((CSA_sint32, int));
189 extern char *privacy_str P((int));
190 extern char *privacy_str_old P((int));
191 extern char *repeat_str P((nl_catd, Repeat_menu_op));
192 extern char *repeat_scope_str P((nl_catd, Repeat_scope_menu_op));
193 extern char *privacy_str_411 P((int));
194 extern char *separator_str P((SeparatorType));
195 extern void str_to_period P((char*, CSA_sint32*, int*));
196 extern int timescopestring_to_tick P((char*));
197 extern char *time_scope_str P((Time_scope_menu_op));
198 extern char *time_scope_str_i18n P((nl_catd, Time_scope_menu_op));
199 extern boolean_t valid_time P((Props*, char*));
200 extern Validate_op validate_appt P((nl_catd, Dtcm_appointment*,
201 char*, char*, char*, int,
203 boolean_t(*)(void*), void*,
205 extern Validate_op validate_dssw P((Dtcm_appointment*, char*,
206 char*, char*, int, char*,
207 boolean_t(*)(void*), void*));
208 extern Validate_op validate_rfp P((nl_catd, Dtcm_appointment*,
210 extern Validate_op validate_reminders P((Dtcm_appointment*));