MPID.Device

g GObject.Object GObject.Object MPID.Device MPID.Device GObject.Object->MPID.Device

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (path)

class

new_from_mpi_file (path)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

access_protocols

str

r

audio_folders

str

r

drive_type

str

r

error

MPID.Error

r

folder_depth

int

r

fs_uuid

str

r

input_formats

str

r

input_path

str

r

model

str

r

mpi_file

str

r

output_formats

str

r

parent

GObject.Object

r

playlist_formats

str

r

playlist_path

str

r

requires_eject

bool

r

serial

str

r

source

MPID.Source

r

vendor

str

r

Class Details

class MPID.Device(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

MPID.DeviceClass

An MPID.Device stores a set of information for a particular attached device, identified by either a mount point (e.g. /media/device) or a device node (e.g. /dev/sdb).

classmethod new(path)
Parameters:

path (str) – the input path (either device node path or mount point)

Returns:

new MPID.Device instance

Return type:

MPID.Device

Creates a new MPID.Device and reads device information for the specified device node path or mount point path.

classmethod new_from_mpi_file(path)
Parameters:

path (str) – path to a .mpi file describing the device

Returns:

new MPID.Device instance

Return type:

MPID.Device

Creates a new MPID.Device populated with information read from the specified .mpi file