| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/evolution-data-server-2.28/exchange/ |
Upload File : |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* Copyright (C) 2002-2004 Novell, Inc. */
#ifndef __E2K_FREEBUSY_H__
#define __E2K_FREEBUSY_H__
#include "e2k-context.h"
G_BEGIN_DECLS
typedef enum {
E2K_BUSYSTATUS_FREE = 0,
E2K_BUSYSTATUS_TENTATIVE = 1,
E2K_BUSYSTATUS_BUSY = 2,
E2K_BUSYSTATUS_OOF = 3,
E2K_BUSYSTATUS_MAX,
/* Alias for internal use */
E2K_BUSYSTATUS_ALL = E2K_BUSYSTATUS_FREE
} E2kBusyStatus;
typedef struct {
/*< private >*/
time_t start, end;
} E2kFreebusyEvent;
typedef struct {
/*< private >*/
E2kContext *ctx;
gchar *dn, *uri;
time_t start, end;
GArray *events[E2K_BUSYSTATUS_MAX];
} E2kFreebusy;
E2kFreebusy *e2k_freebusy_new (E2kContext *ctx,
const gchar *public_uri,
const gchar *dn);
void e2k_freebusy_reset (E2kFreebusy *fb,
gint nmonths);
void e2k_freebusy_add_interval (E2kFreebusy *fb,
E2kBusyStatus busystatus,
time_t start,
time_t end);
void e2k_freebusy_clear_interval (E2kFreebusy *fb,
time_t start,
time_t end);
E2kHTTPStatus e2k_freebusy_add_from_calendar_uri (E2kFreebusy *fb,
const gchar *uri,
time_t start_tt,
time_t end_tt);
E2kHTTPStatus e2k_freebusy_save (E2kFreebusy *fb);
void e2k_freebusy_destroy (E2kFreebusy *fb);
G_END_DECLS
#endif /* __E2K_FREEBUSY_H__ */