RmDevice

RmDevice — Device (phone/fax) handling functions

Functions

Types and Values

Description

Abstraction level for device (phone/fax).

Functions

RM_DEVICE()

#define RM_DEVICE(x) (((RmDeviceCast*)(x))->device)

Cast a fax/phone device to plain device

Parameters

x

a RmDeviceCast

 

rm_device_handles_number ()

gboolean
rm_device_handles_number (RmDevice *device,
                          gchar *number);

Checks wether the devices is responsible for this number

Parameters

device

a RmDevice

 

number

check if number is handled by a device

 

Returns

TRUE if number is handled by a phone device, otherwise FALSE


rm_device_set_numbers ()

void
rm_device_set_numbers (RmDevice *device,
                       gchar **numbers,
                       const gchar *name);

Set numbers which should be handled by device

Parameters

device

a RmDevice

 

numbers

phone numbers

 

profile_name

profile name

 

rm_device_get_numbers ()

gchar **
rm_device_get_numbers (RmDevice *device);

Get phone numbers which are handled by device

Parameters

device

a RmDevice

 

rm_device_get ()

RmDevice *
rm_device_get (gchar *name);

Find device as requested by name.

Parameters

name

name of device to lookup

 

Returns

a RmDevice, or NULL on error


rm_device_get_name ()

gchar *
rm_device_get_name (RmDevice *device);

Return name of provided device .

Parameters

device

a RmDevice

 

Returns

Device name of RmDevice.


rm_device_register ()

RmDevice *
rm_device_register (gchar *name);

Create a new RmDevice with given name .

Parameters

name

name of device to register

 

Returns

new RmDevice


rm_device_unregister ()

void
rm_device_unregister (RmDevice *device);

Unregister provided device .

Parameters

device

a RmDevice

 

rm_device_get_plugins ()

GSList *
rm_device_get_plugins (void);

Retrive list of all device plugins

Returns

a GSList of device plugins

Types and Values

enum RmDeviceType

Type of device.

Members

RM_DEVICE_TYPE_PHONE

phone device

 

RM_DEVICE_TYPE_FAX

fax device

 

RmDevice

typedef struct {
} RmDevice;

The RmDevice contains only private fileds and should not be directly accessed.


RmDeviceCast

typedef struct {
} RmDeviceCast;

The RmDeviceCast contains only private fileds and should not be directly accessed.