1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
2 
3    nemo-desktop-directory.h: Subclass of NemoDirectory to implement
4    a virtual directory consisting of the desktop directory and the desktop
5    icons
6 
7    Copyright (C) 2003 Red Hat, Inc.
8 
9    This program is free software; you can redistribute it and/or
10    modify it under the terms of the GNU General Public License as
11    published by the Free Software Foundation; either version 2 of the
12    License, or (at your option) any later version.
13 
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17    General Public License for more details.
18 
19    You should have received a copy of the GNU General Public
20    License along with this program; if not, write to the
21    Free Software Foundation, Inc., 51 Franklin Street - Suite 500,
22    Boston, MA 02110-1335, USA.
23 
24    Author: Alexander Larsson <alexl@redhat.com>
25 */
26 
27 #ifndef NEMO_DESKTOP_DIRECTORY_H
28 #define NEMO_DESKTOP_DIRECTORY_H
29 
30 #include <libnemo-private/nemo-directory.h>
31 
32 #define NEMO_TYPE_DESKTOP_DIRECTORY nemo_desktop_directory_get_type()
33 #define NEMO_DESKTOP_DIRECTORY(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_DESKTOP_DIRECTORY, NemoDesktopDirectory))
35 #define NEMO_DESKTOP_DIRECTORY_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_DESKTOP_DIRECTORY, NemoDesktopDirectoryClass))
37 #define NEMO_IS_DESKTOP_DIRECTORY(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_DESKTOP_DIRECTORY))
39 #define NEMO_IS_DESKTOP_DIRECTORY_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_DESKTOP_DIRECTORY))
41 #define NEMO_DESKTOP_DIRECTORY_GET_CLASS(obj) \
42   (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_DESKTOP_DIRECTORY, NemoDesktopDirectoryClass))
43 
44 typedef struct NemoDesktopDirectoryDetails NemoDesktopDirectoryDetails;
45 
46 typedef struct {
47 	NemoDirectory parent_slot;
48 	NemoDesktopDirectoryDetails *details;
49     gint display_number;
50 } NemoDesktopDirectory;
51 
52 typedef struct {
53 	NemoDirectoryClass parent_slot;
54 
55 } NemoDesktopDirectoryClass;
56 
57 GType   nemo_desktop_directory_get_type             (void);
58 NemoDirectory * nemo_desktop_directory_get_real_directory   (NemoDesktopDirectory *desktop_directory);
59 
60 #endif /* NEMO_DESKTOP_DIRECTORY_H */
61