2 #define VIRTUAL_MY_FLOOR -1
5 * \brief This struct holds a list of rooms for \\\<G\\\>oto operations.
8 struct march *next; /* pointer to next in linked list */
9 char march_name[128]; /* name of room */
10 int march_floor; /* floor number of room */
11 int march_order; /* sequence in which we are to visit this room */
15 * \brief This struct holds a list of rooms for client display.
16 * It is a binary tree.
19 struct roomlisting *lnext; /* pointer to 'left' tree node */
20 struct roomlisting *rnext; /* pointer to 'right' tree node */
21 char rlname[128]; /* name of room */
22 unsigned rlflags; /* room flags */
23 int rlfloor; /* the floor it resides on */
24 int rlorder; /* room listing order */
31 typedef struct _floor {
39 * \brief Data structure for roomlist-to-folderlist conversion
42 int floor; /* which floor is it on */
43 char room[SIZ]; /* which roomname ??? */
44 char name[SIZ]; /* which is its own name??? */
45 int hasnewmsgs; /* are there unread messages inside */
46 int is_mailbox; /* is it a mailbox? */
47 int selectable; /* can we select it ??? */
48 int view; /* whats its default view? inbox/calendar.... */
49 int num_rooms; /* If this is a floor, how many rooms does it have */
55 * \brief Data structure for roomlist-to-folderlist conversion
57 typedef struct _folder {
58 /* Data citserver tells us about the room */
59 StrBuf *name; /* the full name of the room we're talking about */
60 long QRFlags; /* roomflags */
61 int floorid; /* which floor is it on */
63 long listorder; /* todo */
64 long QRFlags2; /* Bitbucket NO2 */
68 int view; /* whats its default view? inbox/calendar.... */
70 long lastchange; /* todo... */
72 /* later evaluated data from the serverdata */
74 StrBuf **RoomNameParts;
76 const Floor *Floor; /* pint to the floor we're on.. */
78 int hasnewmsgs; /* are there unread messages inside */
79 int is_inbox; /* is it a mailbox? */
83 int selectable; /* can we select it ??? */
84 long num_rooms; /* If this is a floor, how many rooms does it have */
87 /* Only available from the GOTO context... */
93 int UsersNewMAilboxMessages; /* should we notify the user about new messages? */
96 HashList *IgnetCfgs[maxRoomNetCfg];
100 HashList *GetFloorListHash(StrBuf *Target, WCTemplputParams *TP);
101 void vDeleteFolder(void *vFolder);
102 void FlushFolder(folder *room);
103 void ParseGoto(folder *proom, StrBuf *Line);
106 * wrapper around usual sort-comparator; private rooms will allways be prefered, -1 if one of them NULL
108 int CompareRooms(const folder *room1, const folder *room2);
111 #define REST_TOPLEVEL 0
112 #define REST_IN_NAMESPACE (1<<0)
113 #define REST_IN_FLOOR (1<<1)
114 #define REST_IN_ROOM (1<<2)
115 #define REST_HAVE_SUB_ROOMS (1<<3)
116 #define REST_GOT_LOCAL_PART (1<<4)
117 #define REST_NONEXIST (1<<5)