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 /*******************************************************************************
27 ** static char sccsid[] = "@(#)cm_tty.h 1.35 95/07/27 Copyr 1991 Sun Microsystems, Inc.";
29 ** $XConsortium: cm_tty.h /main/5 1996/10/10 14:49:30 barstow $
31 ** RESTRICTED CONFIDENTIAL INFORMATION:
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
41 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
43 *******************************************************************************/
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. *
62 #define DTCM_CAT "dtcm"
65 * Enumerated type for use with appointment file parsing routines. For text,
70 APPOINTMENT_START, /* "** Calendar Appointment **" */
71 DATE_KEY, /* "Date:" */
72 START_KEY, /* "Time:", "Start:", "From:" */
73 STOP_KEY, /* "Until:", "Stop:", "To:" */
74 DURATION_KEY, /* "Duration:" */
75 WHAT_KEY, /* "What:" */
76 REPEAT_KEY, /* "Repeat:" */
78 NEW_APPT_KEY /* "cm_appt_def:string:begin" */
82 * Types used in the validation process for each appointment
102 * Enumerated types used to access static strings for appointment information.
139 } Time_scope_menu_op;
145 } Repeat_scope_menu_op;
172 static const int NO_TIME = -1;
173 static const int ALL_DAY = -2;
176 * External function definitions
178 extern char *boolean_str P((boolean_t));
179 extern int cm_tty_delete P((nl_catd, CSA_session_handle, int, int, CSA_entry_handle*));
180 extern void cm_tty_format_header P((Props*, Tick, char*));
181 extern int cm_tty_insert P((nl_catd, CSA_session_handle, int, char*, char*,
182 char*, char*, char*, char*,
184 extern void cm_tty_load_props P((Props**));
185 extern int cm_tty_lookup P((nl_catd, CSA_session_handle, int, char*, char*,
186 CSA_entry_handle**, Props*));
187 extern boolean_t convert_boolean_str P((char*));
188 extern CSA_sint32 convert_privacy_str P((char*));
189 extern int convert_privacy_str_to_op P((char*));
190 extern SeparatorType convert_separator_str P((char*));
191 extern Time_scope_menu_op convert_time_scope_str P((char*));
192 extern char *day_str P((Days_op));
193 extern char *default_repeat_cnt_str P((Repeat_menu_op));
194 extern char *default_repeat_scope_str P((nl_catd, Repeat_menu_op));
195 extern char *for_str P((For_menu_op));
196 extern char *get_datemsg P((OrderingType,
198 extern Parse_key_op identify_parse_key P((char*));
199 extern void load_appt_defaults P((Dtcm_appointment*, Props*));
200 extern void load_reminder_props P((Dtcm_appointment*, Props*));
201 extern char *month_str P((Months_op));
202 extern Validate_op parse_appt_from_file P((nl_catd, char*, CmDataList*,
203 Props*, boolean_t(*)(void*),
205 extern char *parse_attrs_to_string P((Dtcm_appointment*, Props*,
207 extern char *attrs_to_string P((CSA_attribute *, int));
208 extern char *create_rfc_message P((char *, char *, char**, int));
209 extern char *parse_appt_to_string P((CSA_session_handle, CSA_entry_handle, Props*, int));
210 extern char *periodstr_from_period P((CSA_sint32, int));
211 extern char *privacy_str P((int));
212 extern char *privacy_str_old P((int));
213 extern char *repeat_str P((nl_catd, Repeat_menu_op));
214 extern char *repeat_scope_str P((nl_catd, Repeat_scope_menu_op));
215 extern char *privacy_str_411 P((int));
216 extern char *separator_str P((SeparatorType));
217 extern void str_to_period P((char*, CSA_sint32*, int*));
218 extern int timescopestring_to_tick P((char*));
219 extern char *time_scope_str P((Time_scope_menu_op));
220 extern char *time_scope_str_i18n P((nl_catd, Time_scope_menu_op));
221 extern boolean_t valid_time P((Props*, char*));
222 extern Validate_op validate_appt P((nl_catd, Dtcm_appointment*,
223 char*, char*, char*, int,
225 boolean_t(*)(void*), void*,
227 extern Validate_op validate_dssw P((Dtcm_appointment*, char*,
228 char*, char*, int, char*,
229 boolean_t(*)(void*), void*));
230 extern Validate_op validate_rfp P((nl_catd, Dtcm_appointment*,
232 extern Validate_op validate_reminders P((Dtcm_appointment*));