![]() |
![]() |
Public Member Functions | |
bool | equal (const RecentInfo& other) const |
bool | exists () const |
Checks whether the resource pointed by info still exists. | |
time_t | get_added () const |
Gets the timestamp (seconds from system's Epoch) when the resource was added to the recently used resources list. | |
int | get_age () const |
Gets the number of days elapsed since the last update of the resource pointed by info . | |
bool | get_application_info (const Glib::ustring& app_name, Glib::StringArrayHandle& app_exec, guint& count, time_t& time) const |
Gets the data regarding the application that has registered the resource pointed by info . | |
Glib::StringArrayHandle | get_applications () const |
Glib::ustring | get_description () const |
Gets the (short) description of the resource. | |
Glib::ustring | get_display_name () const |
Gets the name of the resource. | |
Glib::StringArrayHandle | get_groups () const |
Glib::RefPtr<const Gdk::Pixbuf> | get_icon (int size) const |
Retrieves the icon of size size associated to the resource MIME type. | |
Glib::RefPtr<Gdk::Pixbuf> | get_icon (int size) |
Retrieves the icon of size size associated to the resource MIME type. | |
Glib::ustring | get_mime_type () const |
Gets the MIME type of the resource. | |
time_t | get_modified () const |
Gets the timestamp (seconds from system's Epoch) when the resource was last modified. | |
bool | get_private_hint () const |
Gets the value of the "private" flag. | |
Glib::ustring | get_short_name () const |
Computes a valid UTF-8 string that can be used as the name of the item in a menu or list. | |
Glib::ustring | get_uri () const |
Gets the URI of the resource. | |
Glib::ustring | get_uri_display () const |
Gets a displayable version of the resource's URI. | |
time_t | get_visited () const |
Gets the timestamp (seconds from system's Epoch) when the resource was last visited. | |
const GtkRecentInfo* | gobj () const |
Provides access to the underlying C instance. | |
GtkRecentInfo* | gobj () |
Provides access to the underlying C instance. | |
GtkRecentInfo* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
bool | has_application (const Glib::ustring& app_name) const |
Checks whether an application registered this resource using app_name . | |
bool | has_group (const Glib::ustring& group) const |
Checks whether group_name appears inside the groups registered for the recently used item info . | |
bool | is_local () const |
Checks whether the resource is local or not by looking at the scheme of its URI. | |
Glib::ustring | last_application () const |
Gets the name of the last application that have registered the recently used resource represented by info . | |
operator bool () const | |
Tests whether the RecentInfo is valid. | |
void | reference () const |
void | unreference () const |
Protected Member Functions | |
void | operator delete (void*, size_t) |
RecentInfo () | |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator!= (const RecentInfo& lhs, const RecentInfo& rhs) |
bool | operator== (const RecentInfo& lhs, const RecentInfo& rhs) |
Glib::RefPtr<Gtk::RecentInfo> | wrap (GtkRecentInfo* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Gtk::RecentInfo::RecentInfo | ( | ) | [protected] |
bool Gtk::RecentInfo::equal | ( | const RecentInfo& | other | ) | const |
bool Gtk::RecentInfo::exists | ( | ) | const |
Checks whether the resource pointed by info still exists.
At the moment this check is done only on resources pointing to local files.
true
if the resource existstime_t Gtk::RecentInfo::get_added | ( | ) | const |
Gets the timestamp (seconds from system's Epoch) when the resource was added to the recently used resources list.
int Gtk::RecentInfo::get_age | ( | ) | const |
Gets the number of days elapsed since the last update of the resource pointed by info .
bool Gtk::RecentInfo::get_application_info | ( | const Glib::ustring & | app_name, | |
Glib::StringArrayHandle & | app_exec, | |||
guint & | count, | |||
time_t & | time | |||
) | const |
Gets the data regarding the application that has registered the resource pointed by info .
If the command line contains any escape characters defined inside the storage specification, they will be expanded.
app_name | The name of the application that has registered this item. | |
app_exec | Return location for the string containing the command line. | |
count | Return location for the number of times this item was registered. | |
time | Return location for the timestamp this item was last registered for this application. |
true
if an application with app_name has registered this resource inside the recently used list, or false
otherwise. You should free the returned command line using Glib::free().Glib::StringArrayHandle Gtk::RecentInfo::get_applications | ( | ) | const |
Glib::ustring Gtk::RecentInfo::get_description | ( | ) | const |
Gets the (short) description of the resource.
Glib::ustring Gtk::RecentInfo::get_display_name | ( | ) | const |
Gets the name of the resource.
If none has been defined, the basename of the resource is obtained.
Glib::StringArrayHandle Gtk::RecentInfo::get_groups | ( | ) | const |
Glib::RefPtr<const Gdk::Pixbuf> Gtk::RecentInfo::get_icon | ( | int | size | ) | const |
Retrieves the icon of size size associated to the resource MIME type.
size | The size of the icon in pixels. |
0
.Glib::RefPtr<Gdk::Pixbuf> Gtk::RecentInfo::get_icon | ( | int | size | ) |
Retrieves the icon of size size associated to the resource MIME type.
size | The size of the icon in pixels. |
0
.Glib::ustring Gtk::RecentInfo::get_mime_type | ( | ) | const |
Gets the MIME type of the resource.
time_t Gtk::RecentInfo::get_modified | ( | ) | const |
Gets the timestamp (seconds from system's Epoch) when the resource was last modified.
bool Gtk::RecentInfo::get_private_hint | ( | ) | const |
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.
true
if the private flag was found, false
otherwise.Glib::ustring Gtk::RecentInfo::get_short_name | ( | ) | const |
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".
Glib::ustring Gtk::RecentInfo::get_uri | ( | ) | const |
Gets the URI of the resource.
Glib::ustring Gtk::RecentInfo::get_uri_display | ( | ) | const |
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 gtk_recent_info_get_uri().
0
time_t Gtk::RecentInfo::get_visited | ( | ) | const |
Gets the timestamp (seconds from system's Epoch) when the resource was last visited.
const GtkRecentInfo* Gtk::RecentInfo::gobj | ( | ) | const |
Provides access to the underlying C instance.
GtkRecentInfo* Gtk::RecentInfo::gobj | ( | ) |
Provides access to the underlying C instance.
GtkRecentInfo* Gtk::RecentInfo::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool Gtk::RecentInfo::has_application | ( | const Glib::ustring & | app_name | ) | const |
Checks whether an application registered this resource using app_name .
app_name | A string containing an application name. |
true
if an application with name app_name was found, false
otherwise.bool Gtk::RecentInfo::has_group | ( | const Glib::ustring & | group | ) | const |
Checks whether group_name appears inside the groups registered for the recently used item info .
group_name | Name of a group. |
true
if the group was found.bool Gtk::RecentInfo::is_local | ( | ) | const |
Checks whether the resource is local or not by looking at the scheme of its URI.
true
if the resource is local.Glib::ustring Gtk::RecentInfo::last_application | ( | ) | const |
Gets the name of the last application that have registered the recently used resource represented by info .
Gtk::RecentInfo::operator bool | ( | ) | const |
Tests whether the RecentInfo is valid.
void Gtk::RecentInfo::operator delete | ( | void * | , | |
size_t | ||||
) | [protected] |
void Gtk::RecentInfo::reference | ( | ) | const |
void Gtk::RecentInfo::unreference | ( | ) | const |
bool operator!= | ( | const RecentInfo& | lhs, | |
const RecentInfo& | rhs | |||
) | [related] |
bool operator== | ( | const RecentInfo& | lhs, | |
const RecentInfo& | rhs | |||
) | [related] |
Glib::RefPtr<Gtk::RecentInfo> wrap | ( | GtkRecentInfo * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |