Interface

CuiCall

Description [src]

interface Cui.Call : GObject.Object

An interface for phone calls.

Objects implementing the CuiCall interface can be handled in a CuiCallDisplay. CuiCallDisplay will invoke this interface’s implementation to accept, hang-up calls. etc.

Prerequisite

In order to implement Call, your type must inherit fromGObject.

Functions

cui_call_format_duration

Formats the call duration as mm:ss or hh:mm:ss depending on the duration.

Instance methods

cui_call_accept

Accept the call.

cui_call_get_active_time
No description available.

cui_call_get_avatar_icon

Get the avatar icon.

cui_call_get_can_dtmf
No description available.

cui_call_get_display_name
No description available.

cui_call_get_encrypted
No description available.

cui_call_get_id
No description available.

cui_call_get_state
No description available.

cui_call_hang_up

Hang up the call.

cui_call_send_dtmf

Send DTMF to the call.

Properties

Cui.Call:active-time

The time in seconds that this call has been active. This corresponds to the time displayed in the call display and it is the responsibility of the implementing class to update this property about once a second.

Cui.Call:avatar-icon

The call’s avatar icon.

Cui.Call:can-dtmf

Whether the call can have DTMF.

Cui.Call:display-name

The display name. E.g. the name of the caller instead of the plain phone number.

Cui.Call:encrypted

Whether the call is encrypted.

Cui.Call:id

The call’s id, e.g. a phone number.

Cui.Call:state

The call’s state.

Interface structure

struct CuiCallInterface {
  GTypeInterface parent_iface;
  GdkPaintable* (* get_avatar_icon) (
    CuiCall* self
  );
  const char* (* get_display_name) (
    CuiCall* self
  );
  const char* (* get_id) (
    CuiCall* self
  );
  CuiCallState (* get_state) (
    CuiCall* self
  );
  gboolean (* get_encrypted) (
    CuiCall* self
  );
  gboolean (* get_can_dtmf) (
    CuiCall* self
  );
  gdouble (* get_active_time) (
    CuiCall* self
  );
  void (* accept) (
    CuiCall* self
  );
  void (* hang_up) (
    CuiCall* self
  );
  void (* send_dtmf) (
    CuiCall* self,
    const gchar* dtmf
  );
  
}
No description available.
Interface members
parent_iface
GTypeInterface
 

The parent interface.

get_avatar_icon
GdkPaintable* (* get_avatar_icon) (
    CuiCall* self
  )
 No description available.
get_display_name
const char* (* get_display_name) (
    CuiCall* self
  )
 No description available.
get_id
const char* (* get_id) (
    CuiCall* self
  )
 No description available.
get_state
CuiCallState (* get_state) (
    CuiCall* self
  )
 No description available.
get_encrypted
gboolean (* get_encrypted) (
    CuiCall* self
  )
 No description available.
get_can_dtmf
gboolean (* get_can_dtmf) (
    CuiCall* self
  )
 No description available.
get_active_time
gdouble (* get_active_time) (
    CuiCall* self
  )
 No description available.
accept
void (* accept) (
    CuiCall* self
  )
 No description available.
hang_up
void (* hang_up) (
    CuiCall* self
  )
 No description available.
send_dtmf
void (* send_dtmf) (
    CuiCall* self,
    const gchar* dtmf
  )
 No description available.

Virtual methods

Cui.Call.accept

Accept the call.

Cui.Call.get_active_time
No description available.

Cui.Call.get_avatar_icon

Get the avatar icon.

Cui.Call.get_can_dtmf
No description available.

Cui.Call.get_display_name
No description available.

Cui.Call.get_encrypted
No description available.

Cui.Call.get_id
No description available.

Cui.Call.get_state
No description available.

Cui.Call.hang_up

Hang up the call.

Cui.Call.send_dtmf

Send DTMF to the call.