Show
Ignore:
Timestamp:
05/25/08 06:24:29 (8 months ago)
Author:
flynd
Message:

Added signaling for adding/removing/changing groups.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_events.h

    r6181 r6199  
    308308 
    309309/* 
    310  * SIGNAL_UPDATExLIST - 
    311  *   Indicates that the user list has changed in some way.  The sub-type 
    312  *   will be one of the following.  In all cases the argument is 0. 
    313  *     LIST_ADD - A user was added to the list.  The UIN will be that of 
    314  *     the new user. 
    315  *     LIST_REMOVE - A user was removed from the list.  The UIN will be 
    316  *     that of the removed user. 
    317  *     LIST_ALL - The entire list has been changed.  The UIN will be 0. 
    318  * 
    319310 *  SIGNAL_UPDATExUSER - The user has been modified in some way.  The UIN 
    320311 *  is that of the relevant user, and the sub-type indicates what type of 
     
    339330 *  SIGNAL_ONEVENT - FIXME: MISSING DESCRIPTION 
    340331 *-------------------------------------------------------------------------*/ 
     332/** Indicates that the user list has changed in some way */ 
    341333const unsigned long SIGNAL_UPDATExLIST           = 0x00000001; 
    342334const unsigned long SIGNAL_UPDATExUSER           = 0x00000002; 
     
    412404const unsigned long USER_PLUGIN_STATUS          = 15; // Which Plugin? 
    413405 
    414 const unsigned long LIST_ADD                     = 1; 
    415 const unsigned long LIST_REMOVE                  = 2; 
    416 const unsigned long LIST_ALL                     = 3; 
     406/** 
     407 * Sub signals for SIGNAL_UPDATExLIST 
     408 * 
     409 * For contact updates, ppid and id are valid. For group updates, argument 
     410 * holds the group id. 
     411 */ 
     412enum SubSignals_UPDATExLIST 
     413{ 
     414  LIST_CONTACT_ADDED = 1,       /**< A contact was added to the list */ 
     415  LIST_CONTACT_REMOVED = 2,     /**< A contact was removed from the list */ 
     416  LIST_INVALIDATE = 3,          /**< List must be reloaded */ 
     417  LIST_GROUP_ADDED = 4,         /**< A group was added to the list */ 
     418  LIST_GROUP_REMOVED = 5,       /**< A group was removed from the list */ 
     419  LIST_GROUP_CHANGED = 6        /**< Data for a group has changed */ 
     420}; 
     421 
     422// Deprecated SIGNAL_UPDATExLIST sub signal names, do not use 
     423const unsigned long LIST_ADD                     = LIST_CONTACT_ADDED; 
     424const unsigned long LIST_REMOVE                  = LIST_CONTACT_REMOVED; 
     425const unsigned long LIST_ALL                     = LIST_INVALIDATE; 
     426 
    417427 
    418428/*! \brief Plugin notification messages