gtk.recent_info

Module for [RecentInfo] class

Types 1

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

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
RecentInfo self() nothrowReturns `this`, for use in `with` statements.
gio.app_info.AppInfo createAppInfo(string appName = null)Creates a [gio.app_info.AppInfo] for the specified [gtk.recent_info.RecentInfo]
bool exists() nothrowChecks whether the resource pointed by info still exists. At the moment this check is done only on resources pointing to local files. Returns: true if the resource exists
glib.date_time.DateTime getAdded() nothrowGets the time when the resource was added to the recently used resources list. Returns: a [glib.date_time.DateTime] for the time when the resource was added
int getAge() nothrowGets the number of days elapsed since the last update of the resource pointed by info. Returns: a positive integer containing the number of days elapsed since the time this resource was last modified
bool getApplicationInfo(string appName, out string appExec, out uint count, out glib.date_time.DateTime stamp) nothrowGets the data regarding the application that has registered the resource pointed by info.
string[] getApplications() nothrowRetrieves the list of applications that have registered this resource. Returns: a newly allocated null-terminated array of strings. Use [glib.global.strfreev] to free it.
string getDescription() nothrowGets the (short) description of the resource. Returns: the description of the resource. The returned string is owned by the recent manager, and should not be freed.
string getDisplayName() nothrowGets the name of the resource.
gio.icon.Icon getGicon() nothrowRetrieves the icon associated to the resource MIME type. Returns: a [gio.icon.Icon] containing the icon
string[] getGroups() nothrowReturns all groups registered for the recently used item info.
string getMimeType() nothrowGets the MIME type of the resource. Returns: the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.
glib.date_time.DateTime getModified() nothrowGets the time when the meta-data for the resource was last modified. Returns: a [glib.date_time.DateTime] for the time when the resource was last modified
bool getPrivateHint() nothrowGets the value of the “private” flag.
string getShortName() nothrowComputes a valid UTF-8 string that can be used as the name of the item in a menu or list.
string getUri() nothrowGets the URI of the resource. Returns: the URI of the resource. The returned string is owned by the recent manager, and should not be freed.
string getUriDisplay() nothrowGets a displayable version of the resource’s URI.
glib.date_time.DateTime getVisited() nothrowGets the time when the meta-data for the resource was last visited. Returns: a [glib.date_time.DateTime] for the time when the resource was last visited
bool hasApplication(string appName) nothrowChecks whether an application registered this resource using app_name.
bool hasGroup(string groupName) nothrowChecks whether group_name appears inside the groups registered for the recently used item info.
bool isLocal() nothrowChecks whether the resource is local or not by looking at the scheme of its URI. Returns: true if the resource is local
string lastApplication() nothrowGets the name of the last application that have registered the recently used resource represented by info. Returns: an application name. Use [glib.global.gfree] to free it.
bool match(gtk.recent_info.RecentInfo infoB) nothrowChecks whether two [gtk.recent_info.RecentInfo] point to the same resource.
Constructors
this(void * ptr, Flag!"Take" take)