Updated Traditional Chinese translation(Hong Kong and Taiwan)
[evolution.git] / calendar / gui / e-meeting-types.h
blob49ddaf22e37bcad4eafc078f1357dc8b6aaa2649
1 /*
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with the program; if not, see <http://www.gnu.org/licenses/>
17 * Authors:
18 * JP Rosevear <jpr@novell.com>
20 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24 #ifndef _E_MEETING_TYPES_H_
25 #define _E_MEETING_TYPES_H_
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
31 #include <glib.h>
32 #include "e-meeting-types.h"
34 G_BEGIN_DECLS
38 typedef struct _EMeetingTime EMeetingTime;
39 typedef struct _EMeetingFreeBusyPeriod EMeetingFreeBusyPeriod;
41 /* These are used to specify whether an attendee is free or busy at a
42 particular time. We'll probably replace this with a global calendar type.
43 These should be ordered in increasing order of preference. Higher precedence
44 busy periods will be painted over lower precedence ones. These are also
45 used as for loop counters, so they should start at 0 and be ordered. */
46 typedef enum
48 E_MEETING_FREE_BUSY_TENTATIVE = 0,
49 E_MEETING_FREE_BUSY_OUT_OF_OFFICE = 1,
50 E_MEETING_FREE_BUSY_BUSY = 2,
51 E_MEETING_FREE_BUSY_FREE = 3,
53 E_MEETING_FREE_BUSY_LAST = 4
54 } EMeetingFreeBusyType;
56 /* This is our representation of a time. We use a GDate to store the day,
57 and guint8s for the hours and minutes. */
58 struct _EMeetingTime
60 GDate date;
61 guint8 hour;
62 guint8 minute;
65 /* This represents a busy period. */
66 struct _EMeetingFreeBusyPeriod
68 EMeetingTime start;
69 EMeetingTime end;
70 EMeetingFreeBusyType busy_type;
73 G_END_DECLS
75 #endif /* _E_MEETING_TYPES_H_ */