Libinsane.Api

g GObject.Object GObject.Object Libinsane.Api Libinsane.Api GObject.Object->Libinsane.Api

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_version ()

class

new_from_string (desc)

class

new_safebet ()

cleanup ()

get_device (dev_id)

list_devices (locations)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Libinsane.Api(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Libinsane.ApiClass

classmethod get_version()
Return type:

str

classmethod new_from_string(desc)
Parameters:

desc (str) –

Raises:

GLib.Error

Returns:

the new reference to self.

Return type:

Libinsane.Api

Instantiate a new list of API based on a provided string.

param desc see lis_str2impls()

classmethod new_safebet()
Raises:

GLib.Error

Returns:

the new reference to self.

Return type:

Libinsane.Api

Instantiate the safest list of API for most cases. See lis_safebet

cleanup()
get_device(dev_id)
Parameters:

dev_id (str) –

Raises:

GLib.Error

Returns:

Libinsane.Item object

Return type:

Libinsane.Item

list_devices(locations)
Parameters:

locations (Libinsane.DeviceLocations) –

Raises:

GLib.Error

Returns:

list of available devices (LibinsaneDeviceDescriptors objects)

Return type:

[Libinsane.DeviceDescriptor]