From 34eff34dd935025d733904b03b20c764637d688a Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 6 Mar 2000 00:10:24 +0000 Subject: stubs for client side access to alarm structures. this will probably * cal-client/cal-client-alarm.c: stubs for client side access to alarm structures. this will probably change, since i don't know what i'm doing. * cal-util/alarm-enums.h: enums for alarms needed by both the client and the server * remaining source files in calendar/... have been moved to calendar/gui. * gui/alarm.c: start to decouple the view from the model in the alarm editing code svn path=/trunk/; revision=2062 --- calendar/cal-client/Makefile.am | 2 + calendar/cal-client/cal-client-alarm.c | 74 ++++++++++++++++++++++++++++++++++ calendar/cal-client/cal-client-alarm.h | 23 +++++++++++ 3 files changed, 99 insertions(+) create mode 100644 calendar/cal-client/cal-client-alarm.c create mode 100644 calendar/cal-client/cal-client-alarm.h (limited to 'calendar/cal-client') diff --git a/calendar/cal-client/Makefile.am b/calendar/cal-client/Makefile.am index 00b66147b7..d9667daba2 100644 --- a/calendar/cal-client/Makefile.am +++ b/calendar/cal-client/Makefile.am @@ -33,6 +33,8 @@ libcal_clientincludedir = $(includedir)/cal-client libcal_client_la_SOURCES = \ $(CORBA_GENERATED) \ + cal-client-alarm.c \ + cal-client-alarm.h \ cal-client.c \ cal-listener.c \ cal-listener.h diff --git a/calendar/cal-client/cal-client-alarm.c b/calendar/cal-client/cal-client-alarm.c new file mode 100644 index 0000000000..b939775b3a --- /dev/null +++ b/calendar/cal-client/cal-client-alarm.c @@ -0,0 +1,74 @@ +#include "cal-client-alarm.h" + +time_t cal_client_alarm_get_trigger (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->trigger */ + return 0; +} + +enum AlarmType cal_client_alarm_get_type (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->type */ + return 0; +} + +void cal_client_alarm_set_type (AlarmHandle alarm, enum AlarmType type) +{ +# warning FIX ME + /* alarm->type = type */ +} + +enum AlarmUnit cal_client_alarm_get_units (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->units */ + return 0; +} + +void cal_client_alarm_set_units (AlarmHandle alarm, enum AlarmUnit units) +{ +# warning FIX ME + /* alarm->units = units */ +} + +int cal_client_alarm_get_count (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->count */ + return 0; +} + +void cal_client_alarm_set_count (AlarmHandle alarm, int count) +{ +# warning FIX ME + /* alarm->count = count */ +} + +int cal_client_alarm_get_enabled (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->enabled */ + return 0; +} + +void cal_client_alarm_set_enabled (AlarmHandle alarm, int enabled) +{ +# warning FIX ME + /* alarm->enabled = enabled */ +} + +char *cal_client_alarm_get_data (AlarmHandle alarm) +{ +# warning FIX ME + /* return alarm->data */ + return ""; +} + +void cal_client_alarm_set_data (AlarmHandle alarm, char *data) +{ +# warning FIX ME + /* alarm->data = strdup (data) */ +} + diff --git a/calendar/cal-client/cal-client-alarm.h b/calendar/cal-client/cal-client-alarm.h new file mode 100644 index 0000000000..83e50c6775 --- /dev/null +++ b/calendar/cal-client/cal-client-alarm.h @@ -0,0 +1,23 @@ +#ifndef CAL_CLIENT_ALARM_H_INCLUDED +#define CAL_CLIENT_ALARM_H_INCLUDED + +#include +#include "cal-util/alarm-enums.h" + +typedef int AlarmHandle; + +/* these need to be replaced with something that does corba stuff */ + +time_t cal_client_alarm_get_trigger (AlarmHandle alarm); +enum AlarmType cal_client_alarm_get_type (AlarmHandle alarm); +void cal_client_alarm_set_type (AlarmHandle alarm, enum AlarmType type); +enum AlarmUnit cal_client_alarm_get_units (AlarmHandle alarm); +void cal_client_alarm_set_units (AlarmHandle alarm, enum AlarmUnit units); +int cal_client_alarm_get_count (AlarmHandle alarm); +void cal_client_alarm_set_count (AlarmHandle alarm, int count); +int cal_client_alarm_get_enabled (AlarmHandle alarm); +void cal_client_alarm_set_enabled (AlarmHandle alarm, int enabled); +char *cal_client_alarm_get_data (AlarmHandle alarm); +void cal_client_alarm_set_data (AlarmHandle alarm, char *data); + +#endif /* CAL_CLIENT_ALARM_H_INCLUDED */ -- cgit