RecentInfo

GtkRecentInfo contains the metadata associated with an item in the recently used files list.

Constructors

this
this(GtkRecentInfo* gtkRecentInfo, bool ownedRef)

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

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

createAppInfo
AppInfoIF createAppInfo(string appName)

Creates a GAppInfo for the specified GtkRecentInfo

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
DateTime getAdded()

Gets the 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, 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
IconIF 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
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.

getRecentInfoStruct
GtkRecentInfo* getRecentInfoStruct(bool transferOwnership)

Get the main Gtk struct

getShortName
string getShortName()

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

getStruct
void* getStruct()

the main Gtk struct as a void*

getUri
string getUri()

Gets the URI of the resource.

getUriDisplay
string getUriDisplay()

Gets a displayable version of the resource’s URI.

getVisited
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(RecentInfo infoB)

Checks whether two GtkRecentInfo point to the same resource.

ref_
RecentInfo ref_()

Increases the reference count of @recent_info by one.

unref
void unref()

Decreases the reference count of @info by one.

Static functions

getType
GType getType()

Variables

gtkRecentInfo
GtkRecentInfo* gtkRecentInfo;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta