New tabbed dialog API. This will be used in something later...
[citadel.git] / webcit / webcit.h
index d7a3f403abe3d1a87b3123950b5f3b4924dbb86d..a87133da3ed1e65036c488e680c9864c4b6be5e7 100644 (file)
@@ -339,14 +339,11 @@ struct wcsession {
        int killthis;                   /* Nonzero == purge this session */
        struct march *march;            /* march mode room list */
        char reply_to[512];             /* reply-to address */
-
        long msgarr[10000];             /* for read operations */
        int num_summ;
        struct message_summary *summ;
-
        int is_wap;                     /* Client is a WAP gateway */
        struct urlcontent *urlstrings;
-       int HaveInstantMessages;        /* Nonzero if incoming msgs exist */
        struct wcsubst *vars;
        char this_page[512];            /* address of current page */
        char http_host[512];            /* HTTP Host: header */
@@ -364,21 +361,18 @@ struct wcsession {
        int ctdl_pid;                   /* Session ID on the Citadel server */
        char httpauth_user[256];        /* only for GroupDAV sessions */
        char httpauth_pass[256];        /* only for GroupDAV sessions */
-
        size_t burst_len;
        char *burst;
        int gzip_ok;                    /* Nonzero if Accept-encoding: gzip */
        int is_mailbox;                 /* the current room is a private mailbox */
-
        struct folder *cache_fold;      /* cache the iconbar room list */
        int cache_max_folders;
        int cache_num_floors;
        time_t cache_timestamp;
-
        int current_iconbar;            /* What's currently in the iconbar? */
        char floordiv_expanded[32];     /* which floordiv currently expanded */
-
        int selected_language;          /* Language selected by user */
+       time_t last_pager_check;        /* last time we polled for instant msgs */
 };
 
 /* values for WC->current_iconbar */
@@ -470,6 +464,7 @@ int haschar(char *, char);
 void readloop(char *oper);
 void embed_message(char *msgnum_as_string);
 void print_message(char *msgnum_as_string);
+void display_headers(char *msgnum_as_string);
 void text_to_server(char *ptr, int convert_to_html);
 void display_enter(void);
 void post_message(void);
@@ -659,8 +654,12 @@ void set_selected_language(char *);
 void go_selected_language(void);
 void stop_selected_language(void);
 void httplang_to_locale(char *LocaleString);
+void tabbed_dialog(int num_tabs, char *tabnames[]);
+void begin_tab(int tabnum, int num_tabs);
+void end_tab(int tabnum, int num_tabs);
 
 void embed_room_banner(char *, int);
+
 /* navbar types that can be passed to embed_room_banner */
 enum {
        navbar_none,