RecentInfo

gtk.recent_info.RecentInfo contains the metadata associated with an item in the recently used files list.

Members

Functions

createAppInfo
gio.app_info.AppInfo createAppInfo(string appName)

Creates a gio.app_info.AppInfo for the specified gtk.recent_info.RecentInfo

exists
bool exists()

Checks whether the resource pointed by info still exists. At the moment this check is done only on resources pointing to local files.

getAdded
glib.date_time.DateTime getAdded()

Gets the time when the resource was added to the recently used resources list.

getAge
int getAge()

Gets the number of days elapsed since the last update of the resource pointed by info.

getApplicationInfo
bool getApplicationInfo(string appName, string appExec, uint count, glib.date_time.DateTime stamp)

Gets the data regarding the application that has registered the resource pointed by info.

getApplications
string[] getApplications()

Retrieves the list of applications that have registered this resource.

getDescription
string getDescription()

Gets the (short) description of the resource.

getDisplayName
string getDisplayName()

Gets the name of the resource.

getGicon
gio.icon.Icon getGicon()

Retrieves the icon associated to the resource MIME type.

getGroups
string[] getGroups()

Returns all groups registered for the recently used item info.

getMimeType
string getMimeType()

Gets the MIME type of the resource.

getModified
glib.date_time.DateTime getModified()

Gets the time when the meta-data for the resource was last modified.

getPrivateHint
bool getPrivateHint()

Gets the value of the “private” flag.

getShortName
string getShortName()

Computes a valid UTF-8 string that can be used as the name of the item in a menu or list.

getUri
string getUri()

Gets the URI of the resource.

getUriDisplay
string getUriDisplay()

Gets a displayable version of the resource’s URI.

getVisited
glib.date_time.DateTime getVisited()

Gets the time when the meta-data for the resource was last visited.

hasApplication
bool hasApplication(string appName)

Checks whether an application registered this resource using app_name.

hasGroup
bool hasGroup(string groupName)

Checks whether group_name appears inside the groups registered for the recently used item info.

isLocal
bool isLocal()

Checks whether the resource is local or not by looking at the scheme of its URI.

lastApplication
string lastApplication()

Gets the name of the last application that have registered the recently used resource represented by info.

match
bool match(gtk.recent_info.RecentInfo infoB)

Checks whether two gtk.recent_info.RecentInfo point to the same resource.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.