the actual display.
$Log$
+Revision 524.2 2004/10/01 16:23:23 ajc
+* Set up framework for "notes" view, and added a skeleton function for
+ the actual display.
+
Revision 524.1 2004/09/30 03:44:01 ajc
* fix line width break problem in chat
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
vcard.o vcard_edit.o preferences.o html2html.o listsub.o \
mime_parser.o graphics.o netconf.o siteconfig.o subst.o \
calendar.o calendar_tools.o calendar_view.o event.o \
- availability.o iconbar.o crypto.o inetconf.o \
+ availability.o iconbar.o crypto.o inetconf.o notes.o \
$(LIBOBJS)
$(CC) webserver.o context_loop.o tools.o cookie_conversion.o \
webcit.o auth.o tcp_sockets.o mainmenu.o serv_func.o who.o listsub.o \
locate_host.o siteconfig.o subst.o vcard.o vcard_edit.o floors.o \
mime_parser.o graphics.o netconf.o preferences.o html2html.o \
summary.o calendar.o calendar_tools.o calendar_view.o event.o \
- availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o \
+ availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \
$(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver
.c.o:
int is_singlecard = 0;
int is_calendar = 0;
int is_tasks = 0;
+ int is_notes = 0;
int remaining_messages;
int lo, hi;
int lowest_displayed = (-1);
strcpy(cmd, "MSGS ALL");
maxmsgs = 32767;
}
+ if (WC->wc_view == VIEW_NOTES) { /* notes */
+ is_notes = 1;
+ strcpy(cmd, "MSGS ALL");
+ maxmsgs = 32767;
+ }
nummsgs = load_msg_ptrs(cmd);
if (nummsgs == 0) {
- if ((!is_tasks) && (!is_calendar)) {
+ if ((!is_tasks) && (!is_calendar) && (!is_notes)) {
if (!strcmp(oper, "readnew")) {
wprintf("<EM>No new messages.</EM>\n");
} else if (!strcmp(oper, "readold")) {
else if (is_tasks) {
display_task(WC->msgarr[a]);
}
+ else if (is_notes) {
+ display_note(WC->msgarr[a]);
+ }
else {
read_message(WC->msgarr[a]);
}
/* If we're only looking at one message, do a prev/next thing */
if (num_displayed == 1) {
- if ((!is_tasks) && (!is_calendar) && (!is_addressbook) && (!is_singlecard)) {
+ if ((!is_tasks) && (!is_calendar) && (!is_addressbook) && (!is_notes) && (!is_singlecard)) {
wprintf("<CENTER>"
"<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#DDDDDD\"><TR><TD>"
* messages, then display the selector bar
*/
if (num_displayed > 1) {
- if ((!is_tasks) && (!is_calendar) && (!is_addressbook) && (!is_singlecard)) {
+ if ((!is_tasks) && (!is_calendar) && (!is_addressbook) && (!is_notes) && (!is_singlecard)) {
wprintf("<CENTER>"
"<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#DDDDDD\"><TR><TD>"
"Reading #%d-%d of %d messages.</TD>\n"
--- /dev/null
+/*
+ * $Id$
+ *
+ * Functions which handle "sticky notes"
+ *
+ */
+
+#include <ctype.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <limits.h>
+#include <string.h>
+#include <pwd.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <time.h>
+#include "webcit.h"
+#include "webserver.h"
+
+void display_note(long msgnum) {
+ wprintf("<TABLE border=2><TR><TD>\n");
+ wprintf("FIXME note #%ld\n", msgnum);
+ wprintf("</TD></TR></TABLE\n");
+}
"Summary",
"Address Book",
"Calendar",
- "Tasks"
+ "Tasks",
+ "Notes"
};
char floorlist[128][SIZ];
void cal_process_attachment(char *part_source, long msgnum, char *cal_partnum);
void display_calendar(long msgnum);
void display_task(long msgnum);
+void display_note(long msgnum);
void do_calendar_view(void);
void do_tasks_view(void);
void free_calendar_buffer(void);
#define VIEW_ADDRESSBOOK 2 /* Address book view */
#define VIEW_CALENDAR 3 /* Calendar view */
#define VIEW_TASKS 4 /* Tasks view */
+#define VIEW_NOTES 5 /* Notes view */