AccountsAddRequest

From TrillWiki

Jump to: navigation, search

The accountsAddRequest function will add an account in the advanced connection manager that 3.0 and later use, adding the 'blank' account and focusing user input on it.

Compatibility: 3.0 and higher

Contents

Syntax

plugin_send(MYGUID,"accountsAddRequest",account_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

AccountsAddRequest utilitizes the account_entry_t structure.

struct account_entry_t
{
    unsigned int                struct_size;

    char                        *account;
    char                        *medium;
    char                        *status;
    char                        *section;

    int                         connected;
    long                        last_connected;

    HICON                       icon;
    HWND                        window;

    /* 3.0
     */
    ttkCallback                 callback;
    void                        *data;
};



callback
The callback to receive all the account interface notifications.
medium
The medium this account is being added in.


Return Value

This function always returns 0.

Remarks

In 3.0 and later, this command should always be called after receiving a medium_accountAdd message.


Personal tools