RmAction

RmAction — User action (execute an application for a set of phone numbers)

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Description

Actions are user defined reactions to specific call event types, e.g. stop music on incoming calls.

Functions

rm_action_init ()

void
rm_action_init (RmProfile *profile);

Initialize actions - load actions selected by profile and connect to ::connection-notify signal

Parameters

profile

a RmProfile

 

rm_action_shutdown ()

void
rm_action_shutdown (RmProfile *profile);

Shutdown actions within given profile .

Parameters

profile

a RmProfile

 

rm_action_get_list ()

GList *
rm_action_get_list (RmProfile *profile);

Retrieve action list of given profile .

Parameters

profile

a RmProfile

 

Returns

profiles action list


rm_action_new ()

RmAction *
rm_action_new (RmProfile *profile);

Creates and adds new action to profile 's action list.

Parameters

profile

a RmProfile

 

Returns

the new RmAction


rm_action_remove ()

void
rm_action_remove (RmProfile *profile,
                  RmAction *action);

Remove action of profile action list.

Parameters

profile

a RmProfile

 

action

a RmAction to remove

 

rm_action_set_name ()

void
rm_action_set_name (RmAction *action,
                    const gchar *name);

Set action name.

Parameters

action

a RmAction

 

name

new name of action

 

rm_action_get_name ()

gchar *
rm_action_get_name (RmAction *action);

Get action name.

Parameters

action

a RmAction

 

Returns

(transfer full) action name.


rm_action_set_description ()

void
rm_action_set_description (RmAction *action,
                           const gchar *description);

Set action description of action.

Parameters

action

a RmAction

 

description

new description of action

 

rm_action_get_description ()

gchar *
rm_action_get_description (RmAction *action);

Get action description of action .

Parameters

action

a RmAction

 

Returns

(transfer full) action description.


rm_action_set_exec ()

void
rm_action_set_exec (RmAction *action,
                    const gchar *exec);

Set action exec.

Parameters

action

a RmAction

 

exec

new exec of action

 

rm_action_get_exec ()

gchar *
rm_action_get_exec (RmAction *action);

Get action exec string.

Parameters

action

a RmAction

 

Returns

(transfer full) action exec.


rm_action_set_numbers ()

void
rm_action_set_numbers (RmAction *action,
                       const gchar **numbers);

Set action numbers.

Parameters

action

a RmAction

 

numbers

new numbers of action

 

rm_action_get_numbers ()

gchar **
rm_action_get_numbers (RmAction *action);

Get numbers which are connected to action.

Parameters

action

a RmAction

 

Returns

(transfer full) action numbers.


rm_action_get_flags ()

guchar
rm_action_get_flags (RmAction *action);

Get action flags.

Parameters

action

a RmAction

 

Returns

action flags.


rm_action_set_flags ()

void
rm_action_set_flags (RmAction *action,
                     guchar flags);

Set action flags.

Parameters

action

a RmAction

 

flags

action flags

 

Types and Values

RM_ACTION_INCOMING_RING

#define RM_ACTION_INCOMING_RING   0x01

Indicator for Incoming call rings.


RM_ACTION_INCOMING_BEGIN

#define RM_ACTION_INCOMING_BEGIN  0x02

Indicator for incoming call begins.


RM_ACTION_INCOMING_END

#define RM_ACTION_INCOMING_END    0x04

Indicator for incoming call ended.


RM_ACTION_INCOMING_MISSED

#define RM_ACTION_INCOMING_MISSED 0x08

Indicator for incoming call missed.


RM_ACTION_OUTGOING_DIAL

#define RM_ACTION_OUTGOING_DIAL   0x10

Indicator for outgoing call is dialing.


RM_ACTION_OUTGOING_BEGIN

#define RM_ACTION_OUTGOING_BEGIN  0x20

Indicator for outgoing call begins.


RM_ACTION_OUTGOING_END

#define RM_ACTION_OUTGOING_END    0x40

Indicator for outgoing call ended.


RM_SCHEME_PROFILE_ACTION

#define             RM_SCHEME_PROFILE_ACTION

RM scheme profile action


RmAction

typedef GSettings RmAction;

Keeps track of internal action information.