FileAttributeMatcher

Determines if a string matches a file attribute.

Constructors

this
this(GFileAttributeMatcher* gFileAttributeMatcher, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string attributes)

Creates a new file attribute matcher, which matches attributes against a given string. gio.FileAttributeMatchers are reference counted structures, and are created with a reference count of 1. If the number of references falls to 0, the gio.FileAttributeMatcher is automatically destroyed.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

enumerateNamespace
bool enumerateNamespace(string ns)

Checks if the matcher will match all of the keys in a given namespace. This will always return TRUE if a wildcard character is in use (e.g. if matcher was created with "standard::*" and ns is "standard", or if matcher was created using "*" and namespace is anything.)

enumerateNext
string enumerateNext()

Gets the next matched attribute from a gio.FileAttributeMatcher

getFileAttributeMatcherStruct
GFileAttributeMatcher* getFileAttributeMatcherStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

matches
bool matches(string attribute)

Checks if an attribute will be matched by an attribute matcher. If the matcher was created with the "*" matching string, this function will always return TRUE.

matchesOnly
bool matchesOnly(string attribute)

Checks if a attribute matcher only matches a given attribute. Always returns FALSE if "*" was used when creating the matcher.

ref_
FileAttributeMatcher ref_()

References a file attribute matcher.

subtract
FileAttributeMatcher subtract(FileAttributeMatcher subtract)

Subtracts all attributes of subtract from matcher and returns a matcher that supports those attributes.

toString
string toString()

Prints what the matcher is matching against. The format will be equal to the format passed to FileAttributeMatcher.new. The output however, might not be identical, as the matcher may decide to use a different order or omit needless parts.

unref
void unref()

Unreferences matcher. If the reference count falls below 1, the matcher is automatically freed.

Static functions

getType
GType getType()

Variables

gFileAttributeMatcher
GFileAttributeMatcher* gFileAttributeMatcher;

the main Gtk struct