Purple.Xfer – purple Reference Manual
Xfer
Object Hierarchy:
Purple.Xfer
Purple.Xfer
Purple.Xfer
Description:
[
CCode
( ref_function =
"purple_xfer_ref"
, ref_function_void =
true
, unref_function =
"purple_xfer_unref"
) ]
[
Compact
]
public
class
Xfer
Namespace:
Purple
Package:
purple
Content:
Static methods:
public
static
void
error
(
XferType
type,
Account
account,
string
who,
string
msg)
Creation methods:
public
Xfer
(
Account
account,
XferType
type,
string
who)
Methods:
public
void
add
()
public
void
cancel_local
()
public
void
cancel_remote
()
public
void
conversation_write
(
string
message,
bool
is_error)
public
void
end
()
public
unowned
Account
get_account
()
public
size_t
get_bytes_remaining
()
public
size_t
get_bytes_sent
()
public
time_t
get_end_time
()
public
unowned
string
get_filename
()
public
unowned
string
get_local_filename
()
public
uint
get_local_port
()
public
double
get_progress
()
public
unowned
string
get_remote_ip
()
public
uint
get_remote_port
()
public
unowned
string
get_remote_user
()
public
size_t
get_size
()
public
time_t
get_start_time
()
public
XferStatusType
get_status
()
public
void
*
get_thumbnail
(
size_t
len)
public
unowned
string
get_thumbnail_mimetype
()
public
unowned
XferUiOps
get_ui_ops
()
public
bool
is_canceled
()
public
bool
is_completed
()
public
void
prepare_thumbnail
(
string
formats)
public
void
prpl_ready
()
public
ssize_t
read
(
uchar
[] buffer)
public
ssize_t
read_file
(
uchar
[] buffer,
size_t
size)
public
void
request
()
public
void
request_accepted
(
string
filename)
public
void
request_denied
()
public
void
set_ack_fnc
(
Callback
fnc)
public
void
set_bytes_sent
(
size_t
bytes_sent)
public
void
set_cancel_recv_fnc
(
Callback
fnc)
public
void
set_cancel_send_fnc
(
Callback
fnc)
public
void
set_completed
(
bool
completed)
public
void
set_end_fnc
(
Callback
fnc)
public
void
set_filename
(
string
filename)
public
void
set_init_fnc
(
Callback
fnc)
public
void
set_local_filename
(
string
filename)
public
void
set_message
(
string
message)
public
void
set_read_fnc
(
Callback
fnc)
public
void
set_request_denied_fnc
(
Callback
fnc)
public
void
set_size
(
size_t
size)
public
void
set_start_fnc
(
Callback
fnc)
public
void
set_thumbnail
(
void
* thumbnail,
size_t
size,
string
mimetype)
public
void
set_write_fnc
(
Callback
fnc)
public
void
start
(
int
fd,
string
ip,
uint
port)
public
void
ui_ready
()
public
void
update_progress
()
public
ssize_t
write
(
uchar
[] buffer,
size_t
size)
public
bool
write_file
(
uchar
[] buffer,
size_t
size)
Fields:
public
uint
@ref
public
unowned
Account
account
public
size_t
bytes_remaining
public
size_t
bytes_sent
public
size_t
current_buffer_size
public
void
*
data
public
unowned
FileStream
dest_fp
public
time_t
end_time
public
int
fd
public
unowned
string
filename
public
unowned
string
local_filename
public
int
local_port
public
unowned
string
message
public
void
*
ops
public
unowned
string
remote_ip
public
int
remote_port
public
size_t
size
public
time_t
start_time
public
XferStatusType
status
public
XferType
type
public
void
*
ui_data
public
unowned
XferUiOps
ui_ops
public
int
watcher
public
unowned
string
who
2022 vala-language.org