ListRemoveEntry

From TrillWiki

Jump to: navigation, search

Removes a list entry, group, or section from the contact list.

Compatibility: 1.0 and higher

Contents

Syntax

plugin_send(MYGUID, "listRemoveEntry", struct list_entry_t *);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

ListRemoveEntry utilitizes the list_entry_t structure.

struct list_entry_t 
{
    unsigned int               struct_size;

    int                        num_left_icons;        
    struct list_bmp_t          *left_icons;

    int                        num_right_icons;        
    struct list_bmp_t          *right_icons;

    struct list_font_t         font;

    int                         section_id;
    int                         parent_id;
    int                         previous_id;
    int                         unique_id;

    int                         group;                
    int                         section;

    int                         drag_and_drop;
    int                         inline_editing;        
    int                         selectable;            
    int                         expanded;            
    int                         auto_expand;
    int                         no_group_icon;
    int                         no_double_click;
    int                         owner_drawn;
    int                         no_section_margins;
    
    int                         floating;
    int                         floating_x;
    int                         floating_y;

    char                        *tooltip;            
    char                        *text;                
    char                        *edit_string;
    char                        *real_name;

    void                        *data;                
    
    struct menu_entry_t         *menu_entry;

    ttkCallback                 callback;

    /* 2.0 
     */
    int                         inline_editing_quick;

    /* 3.0
     */
    int                         icon_mode;
    int                         icon_width;
    int                         icon_height;

    char                        *icon_name;
    char                        *panel;
};



unique_id
The ID to remove from the list. If you wish to remove a section, set this to -1.
section_id
The section ID to remove from the list. If you wish to remove something other than a section, set this to -1.


Return Value

Negative value on error, 0 on success.

Remarks

Only remove a list entry that belongs to and was created by the plugin.


See also: listAddEntry

Personal tools