GPaste.Client¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2)
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The “delete-history” signal is emitted when we delete a history. |
|
The “empty-history” signal is emitted when we empty a history. |
|
The “show-history” signal is emitted when we switch from a history to another. |
|
The “switch-history” signal is emitted when we switch from a history to another. |
|
The “update” signal is emitted whenever anything changed in the history (something was added, removed, selected, replaced…). |
Fields¶
- Inherited:
Class Details¶
- class GPaste.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – Callback function to invoke when the proxy is ready.
Create a new instance of
GPaste.Client
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
function passed to the async ctor.- Raises:
- Returns:
a newly allocated
GPaste.Client
free it withGObject.Object.unref
- Return type:
Create a new instance of
GPaste.Client
- classmethod new_sync()¶
- Raises:
- Returns:
a newly allocated
GPaste.Client
free it withGObject.Object.unref
- Return type:
Create a new instance of
GPaste.Client
- about(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Display the about dialog
- about_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Display the about dialog
- about_sync()¶
- Raises:
Display the about dialog
- add(text, callback, *user_data)¶
- Parameters:
text (
str
) – the text to addcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Add an item to the #GPasteDaemon
- add_file(file, callback, *user_data)¶
- Parameters:
file (
str
) – the file to addcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Add the file contents to the #GPasteDaemon
- add_file_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Add the file contents to the #GPasteDaemon
- add_file_sync(file)¶
- Parameters:
file (
str
) – the file to add- Raises:
Add the file contents to the #GPasteDaemon
- add_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Add an item to the #GPasteDaemon
- add_password(name, password, callback, *user_data)¶
- Parameters:
name (
str
) – the name to identify the password to addpassword (
str
) – the password to addcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Add the password to the #GPasteDaemon
- add_password_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Add the password to the #GPasteDaemon
- add_password_sync(name, password)¶
- Parameters:
- Raises:
Add the password to the #GPasteDaemon
- backup_history(history, backup, callback, *user_data)¶
- Parameters:
history (
str
) – the name of the historybackup (
str
) – the name of the backupcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Backup the current history
- backup_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Backup the current history
- backup_history_sync(history, backup)¶
- Parameters:
- Raises:
Backup the current history
- delete(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to deletecallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Delete an item from the #GPasteDaemon
- delete_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Delete an item from the #GPasteDaemon
- delete_history(name, callback, *user_data)¶
- Parameters:
name (
str
) – the name of the history to deletecallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Delete a history
- delete_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Delete a history
- delete_history_sync(name)¶
- Parameters:
name (
str
) – the name of the history to delete- Raises:
Delete a history
- delete_password(name, callback, *user_data)¶
- Parameters:
name (
str
) – the name of the password to deletecallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Delete the password from the #GPasteDaemon
- delete_password_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Delete the password from the #GPasteDaemon
- delete_password_sync(name)¶
- Parameters:
name (
str
) – the name of the password to delete- Raises:
Delete the password from the #GPasteDaemon
- delete_sync(uuid)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to delete- Raises:
Delete an item from the #GPasteDaemon
- empty_history(name, callback, *user_data)¶
- Parameters:
name (
str
) – the name of the history to emptycallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Empty the history from the #GPasteDaemon
- empty_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Empty the history from the #GPasteDaemon
- empty_history_sync(name)¶
- Parameters:
name (
str
) – the name of the history to empty- Raises:
Empty the history from the #GPasteDaemon
- get_element(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get an item from the #GPasteDaemon
- get_element_at_index(index, callback, *user_data)¶
- Parameters:
index (
int
) – the index of the element we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get an item from the #GPasteDaemon
- get_element_at_index_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a new
GPaste.ClientItem
- Return type:
Get an item from the #GPasteDaemon
- get_element_at_index_sync(index)¶
- Parameters:
index (
int
) – the index of the element we want to get- Raises:
- Returns:
a new
GPaste.ClientItem
- Return type:
Get an item from the #GPasteDaemon
- get_element_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated string
- Return type:
Get an item from the #GPasteDaemon
- get_element_kind(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get the kind of an item from the #GPasteDaemon
- get_element_kind_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
The
GPaste.ItemKind
- Return type:
Get this kind of an item from the #GPasteDaemon
- get_element_kind_sync(uuid)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to get- Raises:
- Returns:
The
GPaste.ItemKind
- Return type:
Get the kind of an item from the #GPasteDaemon
- get_element_sync(uuid)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to get- Raises:
- Returns:
a newly allocated string
- Return type:
Get an item from the #GPasteDaemon
- get_elements(uuids, callback, *user_data)¶
- Parameters:
uuids ([
str
]) – the uuids of the elements we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get some items from the #GPasteDaemon
- get_elements_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get some items from the #GPasteDaemon
- get_elements_sync(uuids)¶
- Parameters:
uuids ([
str
]) – the uuids of the elements we want to get- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get some items from the #GPasteDaemon
- get_history(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get the history from the #GPasteDaemon
- get_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get the history from the #GPasteDaemon
- get_history_name(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get the name of the history from the #GPasteDaemon
- get_history_name_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated string
- Return type:
Get the name of the history from the #GPasteDaemon
- get_history_name_sync()¶
- Raises:
- Returns:
a newly allocated string
- Return type:
Get the name of the history from the #GPasteDaemon
- get_history_size(name, callback, *user_data)¶
- Parameters:
name (
str
) – the name of the historycallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get the history isize from the #GPasteDaemon
- get_history_size_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
the size of the history
- Return type:
Get the history size from the #GPasteDaemon
- get_history_size_sync(name)¶
- Parameters:
name (
str
) – the name of the history- Raises:
- Returns:
the size of the history
- Return type:
Get the history size from the #GPasteDaemon
- get_history_sync()¶
- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get the history from the #GPasteDaemon
- get_raw_element(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get an item from the #GPasteDaemon
- get_raw_element_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated string
- Return type:
Get an item from the #GPasteDaemon
- get_raw_element_sync(uuid)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to get- Raises:
- Returns:
a newly allocated string
- Return type:
Get an item from the #GPasteDaemon
- get_raw_history(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Get the history from the #GPasteDaemon
- get_raw_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get the history from the #GPasteDaemon
- get_raw_history_sync()¶
- Raises:
- Returns:
a newly allocated array of string
- Return type:
Get the history from the #GPasteDaemon
- get_version()¶
- Returns:
the version of the daemon
- Return type:
Get the version of the running gpaste daemon
- is_active()¶
- Returns:
whether the daemon is active or not
- Return type:
Check if the daemon is active
- list_histories(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
List all available hisotries
- list_histories_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
a newly allocated array of string
- Return type:
[
str
]
List all available hisotries
- list_histories_sync()¶
- Raises:
- Returns:
a newly allocated array of string
- Return type:
[
str
]
List all available hisotries
- merge(decoration, separator, uuids, callback, *user_data)¶
- Parameters:
decoration (
str
orNone
) – the decoration to apply to each entryseparator (
str
orNone
) – the separator to add between each entryuuids ([
str
]) – the uuids of the elements we want to getcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Merge some history entries
If decoration is “ and separator is , and entries are foo bar baz result will be “foo”,”bar”,”baz”
- merge_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Merge some history entries
- merge_sync(decoration, separator, uuids)¶
- Parameters:
- Raises:
Merge some history entries
If decoration is “ and separator is , and entries are foo bar baz result will be “foo”,”bar”,”baz”
- on_extension_state_changed(state, callback, *user_data)¶
- Parameters:
state (
bool
) – the new state of the extensioncallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Call this when the extension changes its state
- on_extension_state_changed_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Call this when the extension changes its state
- on_extension_state_changed_sync(state)¶
- Parameters:
state (
bool
) – the new state of the extension- Raises:
Call this when the extension changes its state
- reexecute(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Reexecute the #GPasteDaemon
- reexecute_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Reexecute the #GPasteDaemon
- reexecute_sync()¶
- Raises:
Reexecute the #GPasteDaemon
- rename_password(old_name, new_name, callback, *user_data)¶
- Parameters:
old_name (
str
) – the old name of the password to renamenew_name (
str
) – the new name to give itcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Rename the password in the #GPasteDaemon
- rename_password_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Rename the password in the #GPasteDaemon
- rename_password_sync(old_name, new_name)¶
- Parameters:
- Raises:
Rename the password in the #GPasteDaemon
- replace(uuid, contents, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to replacecontents (
str
) – the replacement contentscallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Replace the contents of an item
- replace_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Replace the contents of an item
- replace_sync(uuid, contents)¶
- Parameters:
- Raises:
Replace the contents of an item
- search(pattern, callback, *user_data)¶
- Parameters:
pattern (
str
) – the pattern to look for in historycallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Search for items matching pattern in history
- search_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
- Returns:
The indexes of the matching items
- Return type:
[
str
]
Search for items matching pattern in history
- search_sync(pattern)¶
- Parameters:
pattern (
str
) – the pattern to look for in history- Raises:
- Returns:
The uuids of the matching items
- Return type:
[
str
]
Search for items matching pattern in history
- select(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to selectcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Select an item from the #GPasteDaemon
- select_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Select an item from the #GPasteDaemon
- select_sync(uuid)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to select- Raises:
Select an item from the #GPasteDaemon
- set_password(uuid, name, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to set as passwordname (
str
) – the name to identify the passwordcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Set the item as password
- set_password_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Set the item as password
- set_password_sync(uuid, name)¶
- Parameters:
- Raises:
Set the item as password
- show_history(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Emit the ShowHistory signal
- show_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Emit the ShowHistory signal
- show_history_sync()¶
- Raises:
Emit the ShowHistory signal
- switch_history(name, callback, *user_data)¶
- Parameters:
name (
str
) – the name of the history to switch tocallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Switch to another history
- switch_history_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Switch to another history
- switch_history_sync(name)¶
- Parameters:
name (
str
) – the name of the history to switch to- Raises:
Switch to another history
- track(state, callback, *user_data)¶
- Parameters:
state (
bool
) – the new tracking state of the #GPasteDaemoncallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Change the tracking state of the #GPasteDaemon
- track_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Change the tracking state of the #GPasteDaemon
- track_sync(state)¶
- Parameters:
state (
bool
) – the new tracking state of the #GPasteDaemon- Raises:
Change the tracking state of the #GPasteDaemon
- upload(uuid, callback, *user_data)¶
- Parameters:
uuid (
str
) – the uuid of the element we want to uploadcallback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
if you don’t care about the result of the method invocation.
Upload an item to a pastebin service
- upload_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – AGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed to the async call.- Raises:
Upload an item to a pastebin service
Signal Details¶
- GPaste.Client.signals.delete_history(client, history)¶
- Signal Name:
delete-history
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signalhistory (
str
) – the name of the history we deleted
The “delete-history” signal is emitted when we delete a history.
- GPaste.Client.signals.empty_history(client, history)¶
- Signal Name:
empty-history
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signalhistory (
str
) – the name of the history we emptied
The “empty-history” signal is emitted when we empty a history.
- GPaste.Client.signals.show_history(client)¶
- Signal Name:
show-history
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signal
The “show-history” signal is emitted when we switch from a history to another.
- GPaste.Client.signals.switch_history(client, history)¶
- Signal Name:
switch-history
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signalhistory (
str
) – the name of the history we switch to
The “switch-history” signal is emitted when we switch from a history to another.
- GPaste.Client.signals.tracking(client, object)¶
- Signal Name:
tracking
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signalobject (
bool
) –
- GPaste.Client.signals.update(client, action, target, index)¶
- Signal Name:
update
- Flags:
- Parameters:
client (
GPaste.Client
) – The object which received the signalaction (
GPaste.UpdateAction
) – the kind of updatetarget (
GPaste.UpdateTarget
) – the items which need updatingindex (
int
) – the index of the item, when the target is POSITION
The “update” signal is emitted whenever anything changed in the history (something was added, removed, selected, replaced…).