telepathygabble/inc/telepathy-errors.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /*
       
     2  * telepathy-errors.h - Header for Telepathy error types
       
     3  * Copyright (C) 2005 Collabora Ltd.
       
     4  * 
       
     5  *
       
     6  * This library is free software; you can redistribute it and/or
       
     7  * modify it under the terms of the GNU Lesser General Public
       
     8  * License as published by the Free Software Foundation; either
       
     9  * version 2.1 of the License, or (at your option) any later version.
       
    10  *
       
    11  * This library is distributed in the hope that it will be useful,
       
    12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    14  * Lesser General Public License for more details.
       
    15  *
       
    16  * You should have received a copy of the GNU Lesser General Public
       
    17  * License along with this library; if not, write to the Free Software
       
    18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    19  */
       
    20 
       
    21 #ifndef __TELEPATHY_ERRORS_H__
       
    22 #define __TELEPATHY_ERRORS_H__
       
    23 
       
    24 #include <glib-object.h>
       
    25 
       
    26 G_BEGIN_DECLS
       
    27 
       
    28 typedef enum
       
    29 {
       
    30   ChannelBanned,     /** You are banned from the channel.
       
    31                       */
       
    32   ChannelFull,       /** The channel is full.
       
    33                       */
       
    34   ChannelInviteOnly, /** The requested channel is invite only.
       
    35                       */
       
    36   Disconnected,      /** The connection is not currently connected and cannot
       
    37                       *  be used.
       
    38                       */
       
    39   InvalidArgument,   /** Raised when one of the provided arguments is invalid.
       
    40                       */
       
    41   InvalidHandle,     /** The contact name specified is unknown on this channel
       
    42                       *  or connection.
       
    43                       */
       
    44   NetworkError,      /** Raised when there is an error reading from or writing
       
    45                       *  to the network.
       
    46                       */
       
    47   NotAvailable,      /** Raised when the requested functionality is temporarily
       
    48                       *  unavailable.
       
    49                       */
       
    50   NotImplemented,    /** Raised when the requested method, channel, etc is not
       
    51                       *  available on this connection.
       
    52                       */
       
    53   PermissionDenied,  /** The user is not permitted to perform the requested
       
    54                       *  operation.
       
    55                       */
       
    56   MemoryFull         /** Not able to allocate more memory
       
    57                       */
       
    58 } TelepathyErrors;
       
    59 
       
    60 #ifdef SYMBIAN
       
    61 IMPORT_C
       
    62 #endif
       
    63 GQuark telepathy_errors_quark (void);
       
    64 #define TELEPATHY_ERRORS telepathy_errors_quark ()
       
    65 
       
    66 G_END_DECLS
       
    67 
       
    68 #endif /* #ifndef __TELEPATHY_ERRORS_H__*/