telepathygabble/inc/gabble_enums.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /*
       
     2  * gabble_enums.h - Header for GabbleConnection
       
     3  * Copyright (C) 2005 Collabora Ltd.
       
     4  *
       
     5  * This library is free software; you can redistribute it and/or
       
     6  * modify it under the terms of the GNU Lesser General Public
       
     7  * License as published by the Free Software Foundation; either
       
     8  * version 2.1 of the License, or (at your option) any later version.
       
     9  *
       
    10  * This library is distributed in the hope that it will be useful,
       
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13  * Lesser General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU Lesser General Public
       
    16  * License along with this library; if not, write to the Free Software
       
    17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    18  */
       
    19  
       
    20 #ifndef enum_gabble
       
    21 #define enum_gabble
       
    22 
       
    23 /* signal enum */
       
    24 #define LAST_SIGNAL_CON_MGR 2
       
    25 #define LAST_SIGNAL_CON 6
       
    26 #define LAST_SIGNAL_IM 1
       
    27 #define LAST_SIGNAL_MUC 4
       
    28 #define LAST_SIGNAL_MED_CHANNEL 7
       
    29 #define LAST_SIGNAL_MED_SESSION 3
       
    30 #define LAST_SIGNAL_MED_STREAM 13
       
    31 #define MAX_STREAM_NAME_LEN 8
       
    32 #define LAST_SIGNAL_PRE_CACHE 3
       
    33 #define LAST_SIGNAL_REGISTER 2
       
    34 #define LAST_SIGNAL_ROS_CHNL 3
       
    35 #define LAST_SIGNAL_ROOM_CHNL 3
       
    36 #define LAST_SIGNAL_ROSTER 1
       
    37 #define LAST_SIGNAL_VCARD_MGR 1
       
    38 
       
    39 //todo: what it should be 
       
    40 #define LAST_SIGNAL_SEARCH 1
       
    41 typedef struct _GabbleAllocator GabbleAllocator;
       
    42 struct _GabbleAllocator
       
    43 {
       
    44   gulong size;
       
    45   guint limit;
       
    46   guint count;
       
    47 };
       
    48 
       
    49 typedef enum
       
    50 {
       
    51   GABBLE_DEBUG_PRESENCE      = 1 << 0,
       
    52   GABBLE_DEBUG_GROUPS        = 1 << 1,
       
    53   GABBLE_DEBUG_ROSTER        = 1 << 2,
       
    54   GABBLE_DEBUG_DISCO         = 1 << 3,
       
    55   GABBLE_DEBUG_PROPERTIES    = 1 << 4,
       
    56   GABBLE_DEBUG_ROOMLIST      = 1 << 5,
       
    57   GABBLE_DEBUG_MEDIA         = 1 << 6,
       
    58   GABBLE_DEBUG_MUC           = 1 << 7,
       
    59   GABBLE_DEBUG_CONNECTION    = 1 << 8,
       
    60   GABBLE_DEBUG_IM            = 1 << 9,
       
    61   GABBLE_DEBUG_PERSIST       = 1 << 10,
       
    62   GABBLE_DEBUG_VCARD         = 1 << 11,
       
    63   GABBLE_DEBUG_SEARCH		 = 1 << 12,	
       
    64 } GabbleDebugFlags;
       
    65 
       
    66 
       
    67 typedef enum {
       
    68     PRESENCE_CAP_NONE = 0,
       
    69     PRESENCE_CAP_GOOGLE_TRANSPORT_P2P = 1 << 0,
       
    70     PRESENCE_CAP_GOOGLE_VOICE = 1 << 1,
       
    71     PRESENCE_CAP_JINGLE = 1 << 2,
       
    72     PRESENCE_CAP_JINGLE_DESCRIPTION_AUDIO = 1 << 3,
       
    73     PRESENCE_CAP_JINGLE_DESCRIPTION_VIDEO = 1 << 4,
       
    74 } GabblePresenceCapabilities;
       
    75 
       
    76 #endif