1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
2 
3    nemo-desktop-file.h: Subclass of NemoFile 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 Street - Suite 500,
21    Boston, MA 02110-1335, USA.
22 
23    Author: Alexander Larsson <alexl@redhat.com>
24 */
25 
26 #ifndef NEMO_DESKTOP_ICON_FILE_H
27 #define NEMO_DESKTOP_ICON_FILE_H
28 
29 #include <libnemo-private/nemo-file.h>
30 #include <libnemo-private/nemo-desktop-link.h>
31 
32 #define NEMO_TYPE_DESKTOP_ICON_FILE nemo_desktop_icon_file_get_type()
33 #define NEMO_DESKTOP_ICON_FILE(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_DESKTOP_ICON_FILE, NemoDesktopIconFile))
35 #define NEMO_DESKTOP_ICON_FILE_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_DESKTOP_ICON_FILE, NemoDesktopIconFileClass))
37 #define NEMO_IS_DESKTOP_ICON_FILE(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_DESKTOP_ICON_FILE))
39 #define NEMO_IS_DESKTOP_ICON_FILE_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_DESKTOP_ICON_FILE))
41 #define NEMO_DESKTOP_ICON_FILE_GET_CLASS(obj) \
42   (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_DESKTOP_ICON_FILE, NemoDesktopIconFileClass))
43 
44 typedef struct NemoDesktopIconFileDetails NemoDesktopIconFileDetails;
45 
46 typedef struct {
47 	NemoFile parent_slot;
48 	NemoDesktopIconFileDetails *details;
49 } NemoDesktopIconFile;
50 
51 typedef struct {
52 	NemoFileClass parent_slot;
53 } NemoDesktopIconFileClass;
54 
55 GType   nemo_desktop_icon_file_get_type (void);
56 
57 NemoDesktopIconFile *nemo_desktop_icon_file_new      (NemoDesktopLink     *link);
58 void                     nemo_desktop_icon_file_update   (NemoDesktopIconFile *icon_file);
59 void                     nemo_desktop_icon_file_remove   (NemoDesktopIconFile *icon_file);
60 NemoDesktopLink     *nemo_desktop_icon_file_get_link (NemoDesktopIconFile *icon_file);
61 
62 #endif /* NEMO_DESKTOP_ICON_FILE_H */
63