SimpleHandler


Description:

[ CCode ( has_construct_function = false , type = "TpBaseClient*" ) ]
[ Version ( deprecated = true , since = "0.11.6" ) ]
public SimpleHandler (DBusDaemon dbus, bool bypass_approval, bool requests, string name, bool uniquify, owned SimpleHandlerHandleChannelsImpl callback)

Warning: SimpleHandler is deprecated.

Convenient function to create a new SimpleHandler instance.

Note:

New code should use SimpleHandler.with_am instead.

If dbus is not the result of dup, you should call SimpleHandler.with_am instead, so that Account, Connection and Contact instances can be shared between modules.

Parameters:

dbus

a DBusDaemon object, may not be null

bypass_approval

the value of the Handler.BypassApproval D-Bus property (see set_handler_bypass_approval for details)

requests

whether this handler should implement Requests (see set_handler_request_notification for details)

name

the name of the Handler (see name for details)

uniquify

the value of the uniquify_name property

callback

the function called when HandleChannels is called

destroy

called with user_data as its argument when the SimpleHandler is destroyed

user_data

arbitrary user-supplied data passed to callback

Returns:

a new SimpleHandler