* move marchlist into its own file
[citadel.git] / webcit / roomops.h
1
2 /*
3  * \brief This struct holds a list of rooms for \\\<G\\\>oto operations.
4  */
5 struct march {
6         struct march *next;       /* pointer to next in linked list */
7         char march_name[128];     /* name of room */
8         int march_floor;          /* floor number of room */
9         int march_order;          /* sequence in which we are to visit this room */
10 };
11
12 /* *
13  * \brief       This struct holds a list of rooms for client display.
14  *              It is a binary tree.
15  */
16 struct roomlisting {
17         struct roomlisting *lnext;      /* pointer to 'left' tree node */
18         struct roomlisting *rnext;      /* pointer to 'right' tree node */
19         char rlname[128];               /* name of room */
20         unsigned rlflags;               /* room flags */
21         int rlfloor;                    /* the floor it resides on */
22         int rlorder;                    /* room listing order */
23 };
24
25
26
27
28
29 typedef struct _floor {
30         long ID;
31         StrBuf *Name;
32         long NRooms;
33 } floor;
34
35 /**
36  * \brief  Data structure for roomlist-to-folderlist conversion 
37  */
38 struct __ofolder {
39         int floor;      /* which floor is it on */
40         char room[SIZ]; /* which roomname ??? */
41         char name[SIZ]; /* which is its own name??? */
42         int hasnewmsgs; /* are there unread messages inside */
43         int is_mailbox; /* is it a mailbox?  */
44         int selectable; /* can we select it ??? */
45         int view;       /* whats its default view? inbox/calendar.... */
46         int num_rooms;  /* If this is a floor, how many rooms does it have */
47 };
48
49
50
51 /**
52  * \brief  Data structure for roomlist-to-folderlist conversion 
53  */
54 typedef struct _folder {
55         StrBuf *name;   /* which is its own name??? */
56         int QRFlags;    /* roomflags */
57         int floorid;      /* which floor is it on */
58
59
60         int listorder; /* todo */
61
62         StrBuf *ACL;    /* access Control list... */
63
64         int view;       /* whats its default view? inbox/calendar.... */
65         int defview;
66         int lastchange; /* todo... */
67
68
69
70
71         const floor *Floor;   /* pint to the floor we're on.. */
72         StrBuf *room;   /* which roomname ??? */
73
74
75         int hasnewmsgs; /* are there unread messages inside */
76         int is_mailbox; /* is it a mailbox?  */
77         int selectable; /* can we select it ??? */
78         int num_rooms;  /* If this is a floor, how many rooms does it have */
79
80 }folder;
81