| 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/camel/ |
Upload File : |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* camel-execpetion.h : exception utils */
/*
*
* Author :
* Bertrand Guiheneuf <bertrand@helixcode.com>
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef CAMEL_EXCEPTION_H
#define CAMEL_EXCEPTION_H 1
#include <camel/camel-types.h>
G_BEGIN_DECLS
typedef enum {
#include "camel-exception-list.def"
} ExceptionId;
struct _CamelException {
/* do not access the fields directly */
ExceptionId id;
gchar *desc;
};
#define CAMEL_EXCEPTION_INITIALISER { 0, NULL }
/* creation and destruction functions */
CamelException * camel_exception_new (void);
void camel_exception_free (CamelException *ex);
void camel_exception_init (CamelException *ex);
/* exception content manipulation */
void camel_exception_clear (CamelException *ex);
void camel_exception_set (CamelException *ex,
ExceptionId id,
const gchar *desc);
void camel_exception_setv (CamelException *ex,
ExceptionId id,
const gchar *format,
...);
/* exception content transfer */
void camel_exception_xfer (CamelException *ex_dst,
CamelException *ex_src);
/* exception content retrieval */
ExceptionId camel_exception_get_id (CamelException *ex);
const gchar * camel_exception_get_description (CamelException *ex);
#define camel_exception_is_set(ex) (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE)
G_END_DECLS
#endif /* CAMEL_EXCEPTION_H */