Package ch.bailu.gtk.gtk
Klasse RecentInfo
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.RecentInfo
- Alle implementierten Schnittstellen:
PointerInterface
Contains the metadata associated with an item in the
recently used files list.
recently used files list.
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateAppInfo(Str app_name) Creates a `GAppInfo` for the specified `GtkRecentInfo`
In case of error, @error will be set either with a
%GTK_RECENT_MANAGER_ERROR or a %G_IO_ERRORcreateAppInfo(String app_name) Creates a `GAppInfo` for the specified `GtkRecentInfo`
In case of error, @error will be set either with a
%GTK_RECENT_MANAGER_ERROR or a %G_IO_ERRORbooleanexists()Checks whether the resource pointed by @info still exists.getAdded()Gets the time when the resource
was added to the recently used resources list.intgetAge()Gets the number of days elapsed since the last update
of the resource pointed by @info.getApplications(Int64 length) Retrieves the list of applications that have registered this resource.static ClassHandlerGets the (short) description of the resource.Gets the name of the resource.getGicon()Retrieves the icon associated to the resource MIME type.Returns all groups registered for the recently used item @info.static intGets the MIME type of the resource.Gets the time when the meta-data
for the resource was last modified.static longstatic TypeSystem.TypeSizebooleanGets the value of the “private” flag.Computes a valid UTF-8 string that can be used as the
name of the item in a menu or list.static longstatic TypeSystem.TypeSizegetUri()Gets the URI of the resource.Gets a displayable version of the resource’s URI.Gets the time when the meta-data
for the resource was last visited.booleanhasApplication(Str app_name) Checks whether an application registered this resource using @app_name.booleanhasApplication(String app_name) Checks whether an application registered this resource using @app_name.booleanChecks whether @group_name appears inside the groups
registered for the recently used item @info.booleanChecks whether @group_name appears inside the groups
registered for the recently used item @info.booleanisLocal()Checks whether the resource is local or not by looking at the
scheme of its URI.Gets the name of the last application that have registered the
recently used resource represented by @info.booleanmatch(RecentInfo info_b) Checks whether two `GtkRecentInfo` point to the same resource.ref()Increases the reference count of @recent_info by one.voidunref()Decreases the reference count of @info by one.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
RecentInfo
-
-
Methodendetails
-
getClassHandler
-
createAppInfo
Creates a `GAppInfo` for the specified `GtkRecentInfo`
In case of error, @error will be set either with a
%GTK_RECENT_MANAGER_ERROR or a %G_IO_ERROR- Parameter:
app_name- the name of the application that should be mapped to a `GAppInfo`; if %NULL is used then the default application for the MIME type is used- Gibt zurück:
- the newly created `GAppInfo`
- Löst aus:
AllocationError
-
createAppInfo
Creates a `GAppInfo` for the specified `GtkRecentInfo`
In case of error, @error will be set either with a
%GTK_RECENT_MANAGER_ERROR or a %G_IO_ERROR- Parameter:
app_name- the name of the application that should be mapped to a `GAppInfo`; if %NULL is used then the default application for the MIME type is used- Gibt zurück:
- the newly created `GAppInfo`
- Löst aus:
AllocationError
-
exists
public boolean exists()Checks whether the resource pointed by @info still exists.
At the moment this check is done only on resources pointing
to local files.- Gibt zurück:
- %TRUE if the resource exists
-
getAdded
Gets the time when the resource
was added to the recently used resources list.- Gibt zurück:
- a `GDateTime` for the time when the resource was added
-
getAge
public int getAge()Gets the number of days elapsed since the last update
of the resource pointed by @info.- Gibt zurück:
- a positive integer containing the number of days elapsed since the time this resource was last modified
-
getApplications
Retrieves the list of applications that have registered this resource.- Parameter:
length- return location for the length of the returned list- Gibt zurück:
- a newly allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
-
getDescription
Gets the (short) description of the resource.- Gibt zurück:
- the description of the resource. The returned string is owned by the recent manager, and should not be freed.
-
getDisplayName
Gets the name of the resource.
If none has been defined, the basename
of the resource is obtained.- Gibt zurück:
- the display name of the resource. The returned string is owned by the recent manager, and should not be freed.
-
getGicon
Retrieves the icon associated to the resource MIME type.- Gibt zurück:
- a `GIcon` containing the icon
-
getGroups
Returns all groups registered for the recently used item @info.
The array of returned group names will be %NULL terminated, so
length might optionally be %NULL.- Parameter:
length- return location for the number of groups returned- Gibt zurück:
- a newly allocated %NULL terminated array of strings. Use g_strfreev() to free it.
-
getMimeType
Gets the MIME type of the resource.- Gibt zurück:
- the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.
-
getModified
Gets the time when the meta-data
for the resource was last modified.- Gibt zurück:
- a `GDateTime` for the time when the resource was last modified
-
getPrivateHint
public boolean getPrivateHint()Gets the value of the “private” flag.
Resources in the recently used list that have this flag
set to %TRUE should only be displayed by the applications
that have registered them.- Gibt zurück:
- %TRUE if the private flag was found, %FALSE otherwise
-
getShortName
Computes a valid UTF-8 string that can be used as the
name of the item in a menu or list.
For example, calling this function on an item that refers
to “file:///foo/bar.txt” will yield “bar.txt”.- Gibt zurück:
- A newly-allocated string in UTF-8 encoding free it with g_free()
-
getUri
Gets the URI of the resource.- Gibt zurück:
- the URI of the resource. The returned string is owned by the recent manager, and should not be freed.
-
getUriDisplay
Gets a displayable version of the resource’s URI.
If the resource is local, it returns a local path; if the
resource is not local, it returns the UTF-8 encoded content
of [method@Gtk.RecentInfo.get_uri].- Gibt zurück:
- a newly allocated UTF-8 string containing the resource’s URI or %NULL. Use g_free() when done using it.
-
getVisited
Gets the time when the meta-data
for the resource was last visited.- Gibt zurück:
- a `GDateTime` for the time when the resource was last visited
-
hasApplication
Checks whether an application registered this resource using @app_name.- Parameter:
app_name- a string containing an application name- Gibt zurück:
- %TRUE if an application with name @app_name was found, %FALSE otherwise
-
hasApplication
Checks whether an application registered this resource using @app_name.- Parameter:
app_name- a string containing an application name- Gibt zurück:
- %TRUE if an application with name @app_name was found, %FALSE otherwise
-
hasGroup
Checks whether @group_name appears inside the groups
registered for the recently used item @info.- Parameter:
group_name- name of a group- Gibt zurück:
- %TRUE if the group was found
-
hasGroup
Checks whether @group_name appears inside the groups
registered for the recently used item @info.- Parameter:
group_name- name of a group- Gibt zurück:
- %TRUE if the group was found
-
isLocal
public boolean isLocal()Checks whether the resource is local or not by looking at the
scheme of its URI.- Gibt zurück:
- %TRUE if the resource is local
-
lastApplication
Gets the name of the last application that have registered the
recently used resource represented by @info.- Gibt zurück:
- an application name. Use g_free() to free it.
-
match
Checks whether two `GtkRecentInfo` point to the same resource.- Parameter:
info_b- a `GtkRecentInfo`- Gibt zurück:
- %TRUE if both `GtkRecentInfo` point to the same resource, %FALSE otherwise
-
ref
Increases the reference count of @recent_info by one.- Gibt zurück:
- the recent info object with its reference count increased by one
-
unref
public void unref()Decreases the reference count of @info by one.
If the reference count reaches zero, @info is
deallocated, and the memory freed. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-