1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-desktop-link.h: Class that handles the links on the desktop
5 Copyright (C) 2003 Red Hat, Inc.
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public
18 License along with this program; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Alexander Larsson <alexl@redhat.com>
25 #ifndef NAUTILUS_DESKTOP_LINK_H
26 #define NAUTILUS_DESKTOP_LINK_H
28 #include <libnautilus-private/nautilus-file.h>
31 #define NAUTILUS_TYPE_DESKTOP_LINK \
32 (nautilus_desktop_link_get_type ())
33 #define NAUTILUS_DESKTOP_LINK(obj) \
34 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_DESKTOP_LINK, NautilusDesktopLink))
35 #define NAUTILUS_DESKTOP_LINK_CLASS(klass) \
36 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_DESKTOP_LINK, NautilusDesktopLink))
37 #define NAUTILUS_IS_DESKTOP_LINK(obj) \
38 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_DESKTOP_LINK))
39 #define NAUTILUS_IS_DESKTOP_LINK_CLASS(klass) \
40 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_DESKTOP_LINK))
42 typedef struct NautilusDesktopLinkDetails NautilusDesktopLinkDetails
;
46 NautilusDesktopLinkDetails
*details
;
47 } NautilusDesktopLink
;
50 GObjectClass parent_slot
;
51 } NautilusDesktopLinkClass
;
54 NAUTILUS_DESKTOP_LINK_HOME
,
55 NAUTILUS_DESKTOP_LINK_COMPUTER
,
56 NAUTILUS_DESKTOP_LINK_TRASH
,
57 NAUTILUS_DESKTOP_LINK_MOUNT
,
58 NAUTILUS_DESKTOP_LINK_NETWORK
59 } NautilusDesktopLinkType
;
61 GType
nautilus_desktop_link_get_type (void);
63 NautilusDesktopLink
* nautilus_desktop_link_new (NautilusDesktopLinkType type
);
64 NautilusDesktopLink
* nautilus_desktop_link_new_from_mount (GMount
*mount
);
65 NautilusDesktopLinkType
nautilus_desktop_link_get_link_type (NautilusDesktopLink
*link
);
66 char * nautilus_desktop_link_get_file_name (NautilusDesktopLink
*link
);
67 char * nautilus_desktop_link_get_display_name (NautilusDesktopLink
*link
);
68 GIcon
* nautilus_desktop_link_get_icon (NautilusDesktopLink
*link
);
69 GFile
* nautilus_desktop_link_get_activation_location (NautilusDesktopLink
*link
);
70 gboolean
nautilus_desktop_link_get_date (NautilusDesktopLink
*link
,
71 NautilusDateType date_type
,
73 GMount
* nautilus_desktop_link_get_mount (NautilusDesktopLink
*link
);
74 gboolean
nautilus_desktop_link_can_rename (NautilusDesktopLink
*link
);
75 gboolean
nautilus_desktop_link_rename (NautilusDesktopLink
*link
,
79 #endif /* NAUTILUS_DESKTOP_LINK_H */