~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to app/file/gimprecentitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * Recent File Storage,
 
5
 * see http://freedesktop.org/Standards/recent-file-spec/
 
6
 *
 
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>.
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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.
 
24
 */
 
25
 
 
26
#ifndef __GIMP_RECENT_ITEM_H__
 
27
#define __GIMP_RECENT_ITEM_H__
 
28
 
 
29
 
 
30
typedef struct _GimpRecentItem GimpRecentItem;
 
31
 
 
32
 
 
33
GimpRecentItem * gimp_recent_item_new            (void);
 
34
 
 
35
GimpRecentItem * gimp_recent_item_ref            (GimpRecentItem       *item);
 
36
GimpRecentItem * gimp_recent_item_unref          (GimpRecentItem       *item);
 
37
 
 
38
GimpRecentItem * gimp_recent_item_new_from_uri   (const gchar          *uri);
 
39
 
 
40
gboolean         gimp_recent_item_set_uri        (GimpRecentItem       *item,
 
41
                                                  const gchar          *uri);
 
42
const gchar    * gimp_recent_item_get_uri        (const GimpRecentItem *item);
 
43
 
 
44
gchar          * gimp_recent_item_get_uri_utf8   (const GimpRecentItem *item);
 
45
 
 
46
void             gimp_recent_item_set_mime_type  (GimpRecentItem       *item,
 
47
                                                  const gchar          *mime);
 
48
const gchar    * gimp_recent_item_get_mime_type  (const GimpRecentItem *item);
 
49
 
 
50
void             gimp_recent_item_set_timestamp  (GimpRecentItem       *item,
 
51
                                                  time_t                timestamp);
 
52
time_t           gimp_recent_item_get_timestamp  (const GimpRecentItem *item);
 
53
 
 
54
 
 
55
 
 
56
/* groups */
 
57
const GList    * gimp_recent_item_get_groups     (const GimpRecentItem *item);
 
58
 
 
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);
 
65
 
 
66
void             gimp_recent_item_set_private    (GimpRecentItem       *item,
 
67
                                                  gboolean              priv);
 
68
gboolean         gimp_recent_item_get_private    (const GimpRecentItem *item);
 
69
 
 
70
 
 
71
#endif /* __GIMP_RECENT_ITEM_H__ */