Enumerations

## Enumerations Enumerations — Common enumerations |

## Synopsis

    #include <libtracker-miner/tracker-miner-enums.h>

    enum                TrackerDirectoryFlags;
    enum                TrackerFilterPolicy;
    enum                TrackerFilterType;

## Description

Common enumeration types used in libtracker-miner.

## Details

### enum TrackerDirectoryFlags

    typedef enum {
    	TRACKER_DIRECTORY_FLAG_NONE        = 0,
    	TRACKER_DIRECTORY_FLAG_RECURSE     = 1 << 1,
    	TRACKER_DIRECTORY_FLAG_CHECK_MTIME = 1 << 2,
    	TRACKER_DIRECTORY_FLAG_MONITOR     = 1 << 3,
    	TRACKER_DIRECTORY_FLAG_IGNORE      = 1 << 4,
    	TRACKER_DIRECTORY_FLAG_PRESERVE    = 1 << 5
    } TrackerDirectoryFlags;

Flags used when adding a new directory to be indexed in the TrackerIndexingTree.

`TRACKER_DIRECTORY_FLAG_NONE` | No flags.
`TRACKER_DIRECTORY_FLAG_RECURSE` | Should recurse in the directory.
`TRACKER_DIRECTORY_FLAG_CHECK_MTIME` | Should check mtimes of items in the directory.
`TRACKER_DIRECTORY_FLAG_MONITOR` | Should setup monitors in the items found in the directory.
`TRACKER_DIRECTORY_FLAG_IGNORE` | Should ignore the directory contents.
`TRACKER_DIRECTORY_FLAG_PRESERVE` | Should preserve items in the directory even if the directory gets removed.

### enum TrackerFilterPolicy

    typedef enum {
    	TRACKER_FILTER_POLICY_DENY,
    	TRACKER_FILTER_POLICY_ACCEPT
    } TrackerFilterPolicy;

Flags used when defining default filter policy in the TrackerIndexingTree.

`TRACKER_FILTER_POLICY_DENY` | Items matching the filter will be skipped.
`TRACKER_FILTER_POLICY_ACCEPT` | Items matching the filter will be accepted.

### enum TrackerFilterType

    typedef enum {
    	TRACKER_FILTER_FILE,
    	TRACKER_FILTER_DIRECTORY,
    	TRACKER_FILTER_PARENT_DIRECTORY
    } TrackerFilterType;

Flags used when adding a new filter in the TrackerIndexingTree.

`TRACKER_FILTER_FILE` | All files matching this filter will be filtered out.
`TRACKER_FILTER_DIRECTORY` | All directories matching this filter will be filtered out.
`TRACKER_FILTER_PARENT_DIRECTORY` | All files in directories matching this filter will be filtered out.