Enums

Details

class TrackerMiner.DecoratorError(value)

Bases: GLib.Enum

Possible errors returned when calling TrackerMiner.Decorator.next_finish().

EMPTY = 0

There is no item to be processed next. It is entirely possible to have a ::items_available signal emitted and then have this error when calling TrackerMiner.Decorator.next_finish() because the signal may apply to a class which we’re not interested in. For example, a new nmo:Email might have been added to Tracker, but we might only be interested in nfo:Document. This case would give this error.

PAUSED = 1

No work was done or will be done because the miner is currently paused.

class TrackerMiner.FilterPolicy(value)

Bases: GLib.Enum

Flags used when defining default filter policy in the TrackerMiner.IndexingTree.

DENY = 0

Items matching the filter will be skipped.

ACCEPT = 1

Items matching the filter will be accepted.

class TrackerMiner.FilterType(value)

Bases: GLib.Enum

Flags used when adding a new filter in the TrackerMiner.IndexingTree.

FILE = 0

All files matching this filter will be filtered out.

DIRECTORY = 1

All directories matching this filter will be filtered out.

PARENT_DIRECTORY = 2

All files in directories matching this filter will be filtered out.

class TrackerMiner.MinerError(value)

Bases: GLib.Enum

Possible errors returned when calling TrackerMiner.Miner APIs or subclassed miners where the error is generic to all miners.

NAME_MISSING = 0

No name was given when creating the miner. The name is crucial for D-Bus presence and a host of other things.

NAME_UNAVAILABLE = 1

The name trying to be used for the miner was not available, possibly because the miner is already running with the same name in another process.

PAUSED = 2

Given by miners when an API is used at the time the miner itself is paused and such actions should be avoided.

PAUSED_ALREADY = 3

The pause request has already been given by the same application with the same reason. Duplicate pause calls with the same reason by the same application can not be carried out.

When pausing a miner, a cookie (or gint based ID) is given. That cookie must be used to resume a previous pause request. If the cookie is unrecognised, this error is given.

class TrackerMiner.MinerFSError(value)

Bases: GLib.Enum

Possible errors returned when calling creating new objects based on the TrackerMiner.MinerFS type and other APIs available with this class.

New in version 1.2.

MINER_FS_ERROR_INIT = 0

There was an error during initialization of the object. The specific details are in the message.

class TrackerMiner.MinerFSEventType(value)

Bases: GLib.Enum

CREATED = 0
UPDATED = 1
DELETED = 2
MOVED = 3
class TrackerMiner.NetworkType(value)

Bases: GLib.Enum

Enumerates the different types of connections that the device might use when connected to internet. Note that not all providers might provide this information.

New in version 0.18.

NONE = 0

Network is disconnected

UNKNOWN = 1

Network status is unknown

GPRS = 2

Network is connected over a GPRS connection

EDGE = 3

Network is connected over an EDGE connection

3G = 4
_3G = 4

Network is connected over a 3G or faster (HSDPA, UMTS, …) connection

LAN = 5

Network is connected over a local network connection. This can be ethernet, wifi, etc.