Purple.Connection – purple Reference Manual
Connection
Object Hierarchy:
Purple.Connection
Purple.Connection
Purple.Connection
Description:
[
CCode
( free_function =
"purple_connection_destroy"
) ]
[
Compact
]
public
class
Connection
Namespace:
Purple
Package:
purple
Content:
Static methods:
public
static
bool
error_is_fatal
(
ConnectionError
reason)
Creation methods:
public
Connection
(
Account
account,
bool
regist,
string
password)
public
Connection.unregister
(
Account
account,
string
password,
AccountUnregistrationCb
cb)
Methods:
public
void
error
(
string
reason)
public
void
error_reason
(
ConnectionError
reason,
string
description)
public
unowned
Account
get_account
()
public
unowned
string
get_display_name
()
public
unowned
string
get_password
()
public
void
*
get_protocol_data
()
public
unowned
Plugin
get_prpl
()
public
ConnectionState
get_state
()
public
void
notice
(
string
text)
public
void
set_account
(
Account
account)
public
void
set_display_name
(
string
name)
public
void
set_protocol_data
(
void
* proto_data)
public
void
set_state
(
ConnectionState
state)
public
void
ssl_error
(
SslErrorType
ssl_error)
public
void
update_progress
(
string
text,
size_t
step,
size_t
count)
Fields:
public
unowned
Account
account
public
unowned
SList
buddy_chats
public
uint
disconnect_timeout
public
unowned
string
display_name
public
ConnectionFlags
flags
public
int
inpa
public
uint
keepalive
public
time_t
last_received
public
unowned
string
password
public
void
*
proto_data
public
unowned
Plugin
prpl
public
ConnectionState
state
public
bool
wants_to_die
2022 vala-language.org