1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
2 
3    caja-desktop-file.h: Subclass of CajaFile to implement the
4    the case of a desktop icon file
5 
6    Copyright (C) 2003 Red Hat, Inc.
7 
8    This program is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License as
10    published by the Free Software Foundation; either version 2 of the
11    License, or (at your option) any later version.
12 
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17 
18    You should have received a copy of the GNU General Public
19    License along with this program; if not, write to the
20    Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21    Boston, MA 02110-1301, USA.
22 
23    Author: Alexander Larsson <alexl@redhat.com>
24 */
25 
26 #ifndef CAJA_DESKTOP_ICON_FILE_H
27 #define CAJA_DESKTOP_ICON_FILE_H
28 
29 #include "caja-file.h"
30 #include "caja-desktop-link.h"
31 
32 #define CAJA_TYPE_DESKTOP_ICON_FILE caja_desktop_icon_file_get_type()
33 #define CAJA_DESKTOP_ICON_FILE(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_DESKTOP_ICON_FILE, CajaDesktopIconFile))
35 #define CAJA_DESKTOP_ICON_FILE_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), CAJA_TYPE_DESKTOP_ICON_FILE, CajaDesktopIconFileClass))
37 #define CAJA_IS_DESKTOP_ICON_FILE(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_DESKTOP_ICON_FILE))
39 #define CAJA_IS_DESKTOP_ICON_FILE_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE ((klass), CAJA_TYPE_DESKTOP_ICON_FILE))
41 #define CAJA_DESKTOP_ICON_FILE_GET_CLASS(obj) \
42   (G_TYPE_INSTANCE_GET_CLASS ((obj), CAJA_TYPE_DESKTOP_ICON_FILE, CajaDesktopIconFileClass))
43 
44 typedef struct _CajaDesktopIconFilePrivate CajaDesktopIconFilePrivate;
45 
46 typedef struct
47 {
48     CajaFile parent_slot;
49     CajaDesktopIconFilePrivate *details;
50 } CajaDesktopIconFile;
51 
52 typedef struct
53 {
54     CajaFileClass parent_slot;
55 } CajaDesktopIconFileClass;
56 
57 GType   caja_desktop_icon_file_get_type (void);
58 
59 CajaDesktopIconFile *caja_desktop_icon_file_new      (CajaDesktopLink     *link);
60 void                     caja_desktop_icon_file_update   (CajaDesktopIconFile *icon_file);
61 void                     caja_desktop_icon_file_remove   (CajaDesktopIconFile *icon_file);
62 CajaDesktopLink     *caja_desktop_icon_file_get_link (CajaDesktopIconFile *icon_file);
63 
64 #endif /* CAJA_DESKTOP_ICON_FILE_H */
65