1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
5
* see http://freedesktop.org/Standards/recent-file-spec/
7
* This code is taken from libegg and has been adapted to the GIMP needs.
8
* The original author is James Willcox <jwillcox@cs.indiana.edu>,
9
* responsible for bugs in this version is Sven Neumann <sven@gimp.org>.
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
#ifndef __GIMP_RECENT_ITEM_H__
27
#define __GIMP_RECENT_ITEM_H__
30
typedef struct _GimpRecentItem GimpRecentItem;
33
GimpRecentItem * gimp_recent_item_new (void);
35
GimpRecentItem * gimp_recent_item_ref (GimpRecentItem *item);
36
GimpRecentItem * gimp_recent_item_unref (GimpRecentItem *item);
38
GimpRecentItem * gimp_recent_item_new_from_uri (const gchar *uri);
40
gboolean gimp_recent_item_set_uri (GimpRecentItem *item,
42
const gchar * gimp_recent_item_get_uri (const GimpRecentItem *item);
44
gchar * gimp_recent_item_get_uri_utf8 (const GimpRecentItem *item);
46
void gimp_recent_item_set_mime_type (GimpRecentItem *item,
48
const gchar * gimp_recent_item_get_mime_type (const GimpRecentItem *item);
50
void gimp_recent_item_set_timestamp (GimpRecentItem *item,
52
time_t gimp_recent_item_get_timestamp (const GimpRecentItem *item);
57
const GList * gimp_recent_item_get_groups (const GimpRecentItem *item);
59
gboolean gimp_recent_item_in_group (const GimpRecentItem *item,
60
const gchar *group_name);
61
void gimp_recent_item_add_group (GimpRecentItem *item,
62
const gchar *group_name);
63
void gimp_recent_item_remove_group (GimpRecentItem *item,
64
const gchar *group_name);
66
void gimp_recent_item_set_private (GimpRecentItem *item,
68
gboolean gimp_recent_item_get_private (const GimpRecentItem *item);
71
#endif /* __GIMP_RECENT_ITEM_H__ */