2008-02-29 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / libnautilus-private / nautilus-desktop-icon-file.h
blob276411c561396bed2950ae56bbc1cd13c747016c
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-desktop-file.h: Subclass of NautilusFile to implement the
4 the case of a desktop icon file
6 Copyright (C) 2003 Red Hat, Inc.
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.
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.
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., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 Author: Alexander Larsson <alexl@redhat.com>
26 #ifndef NAUTILUS_DESKTOP_ICON_FILE_H
27 #define NAUTILUS_DESKTOP_ICON_FILE_H
29 #include <libnautilus-private/nautilus-file.h>
30 #include <libnautilus-private/nautilus-desktop-link.h>
32 #define NAUTILUS_TYPE_DESKTOP_ICON_FILE \
33 (nautilus_desktop_icon_file_get_type ())
34 #define NAUTILUS_DESKTOP_ICON_FILE(obj) \
35 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_DESKTOP_ICON_FILE, NautilusDesktopIconFile))
36 #define NAUTILUS_DESKTOP_ICON_FILE_CLASS(klass) \
37 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_DESKTOP_ICON_FILE, NautilusDesktopIconFileClass))
38 #define NAUTILUS_IS_DESKTOP_ICON_FILE(obj) \
39 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_DESKTOP_ICON_FILE))
40 #define NAUTILUS_IS_DESKTOP_ICON_FILE_CLASS(klass) \
41 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_DESKTOP_ICON_FILE))
43 typedef struct NautilusDesktopIconFileDetails NautilusDesktopIconFileDetails;
45 typedef struct {
46 NautilusFile parent_slot;
47 NautilusDesktopIconFileDetails *details;
48 } NautilusDesktopIconFile;
50 typedef struct {
51 NautilusFileClass parent_slot;
52 } NautilusDesktopIconFileClass;
54 GType nautilus_desktop_icon_file_get_type (void);
56 NautilusDesktopIconFile *nautilus_desktop_icon_file_new (NautilusDesktopLink *link);
57 void nautilus_desktop_icon_file_update (NautilusDesktopIconFile *icon_file);
58 void nautilus_desktop_icon_file_remove (NautilusDesktopIconFile *icon_file);
59 NautilusDesktopLink *nautilus_desktop_icon_file_get_link (NautilusDesktopIconFile *icon_file);
61 #endif /* NAUTILUS_DESKTOP_ICON_FILE_H */