| Tracker Miner Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <libtracker-miner/tracker-miner-enums.h> enum TrackerDirectoryFlags; enum TrackerFilterType; enum TrackerFilterPolicy; enum TrackerNetworkType;
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,
TRACKER_DIRECTORY_FLAG_PRIORITY = 1 << 6,
TRACKER_DIRECTORY_FLAG_NO_STAT = 1 << 7
} TrackerDirectoryFlags;
Flags used when adding a new directory to be indexed in the TrackerIndexingTree, TrackerDataProvider and TrackerEnumerator.
| No flags. | |
| Should recurse in the directory. | |
| Should check mtimes of items in the directory. | |
| Should setup monitors in the items found in the directory. | |
| Should ignore the directory contents. | |
| Should preserve items in the directory even if the directory gets removed. | |
| Internally a priority queue is used and this flag makes sure the directory is given a priority over other directories queued. | |
For cases where the content being
crawled by the TrackerEnumerator is not local (e.g. it's on a
server somewhere), use the TRACKER_DIRECTORY_FLAG_NO_STAT flag.
The default is to use stat() and assume we're mining a local or
mounted file system.
|
typedef enum {
TRACKER_FILTER_FILE,
TRACKER_FILTER_DIRECTORY,
TRACKER_FILTER_PARENT_DIRECTORY
} TrackerFilterType;
Flags used when adding a new filter in the TrackerIndexingTree.
typedef enum {
TRACKER_FILTER_POLICY_DENY,
TRACKER_FILTER_POLICY_ACCEPT
} TrackerFilterPolicy;
Flags used when defining default filter policy in the TrackerIndexingTree.
typedef enum {
TRACKER_NETWORK_TYPE_NONE,
TRACKER_NETWORK_TYPE_UNKNOWN,
TRACKER_NETWORK_TYPE_GPRS,
TRACKER_NETWORK_TYPE_EDGE,
TRACKER_NETWORK_TYPE_3G,
TRACKER_NETWORK_TYPE_LAN
} TrackerNetworkType;
Enumerates the different types of connections that the device might use when connected to internet. Note that not all providers might provide this information.
| Network is disconnected | |
| Network status is unknown | |
| Network is connected over a GPRS connection | |
| Network is connected over an EDGE connection | |
| Network is connected over a 3G or faster (HSDPA, UMTS, ...) connection | |
| Network is connected over a local network connection. This can be ethernet, wifi, etc. |
Since 0.18