Plank.DBusClient – plank – Vala Binding Reference

Plank.DBusClient – plank Reference Manual

# DBusClient

## Object Hierarchy:

## Description:

public class DBusClient : Object

Connects to a running instance of plank via DBus and provides remote interface to a currently runnning dock.

Namespace: Plank
Package: plank

## Content:

### Properties:

- public bool is_connected { get; }
  Whether the client is in an operatable state and connected to a running dock

### Static methods:

- public static weak DBusClient get_instance ()
  Get the singleton instance of Plank.DBusClient

### Methods:

- public bool add_item (string uri)
  Add a new item for the given uri to the dock
- public bool remove_item (string uri)
  Remove an existing item for the given uri from the dock
- public int get_items_count ()
  Returns the number of currently visible items on the dock
- public unowned string[]? get_persistent_applications ()
  Returns an array of uris of the persistent applications on the dock
- public unowned string[]? get_transient_applications ()
  Returns an array of uris of the transient applications on the dock

### Signals:

- public signal void proxy_changed ()
  If the proxy interfaces for the dock are ready to be used or were changed on runtime this signal will be emitted.

### Inherited Members:

All known members inherited from class GLib.Object

- @new
- new_valist
- newv
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- freeze_notify
- @get

- get_class
- get_data
- get_property
- get_qdata
- get_type
- notify_property
- @ref
- ref_sink
- replace_data
- replace_qdata
- remove_toggle_ref
- remove_weak_pointer
- @set

- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- steal_data
- steal_qdata
- thaw_notify
- unref
- weak_ref
- weak_unref
- notify
- ref_count