1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- 2 3 nemo-desktop-directory-file.h: Subclass of NemoFile to implement the 4 the case of the desktop directory 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_DIRECTORY_FILE_H 27 #define NEMO_DESKTOP_DIRECTORY_FILE_H 28 29 #include <libnemo-private/nemo-file.h> 30 31 #define NEMO_TYPE_DESKTOP_DIRECTORY_FILE nemo_desktop_directory_file_get_type() 32 #define NEMO_DESKTOP_DIRECTORY_FILE(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_DESKTOP_DIRECTORY_FILE, NemoDesktopDirectoryFile)) 34 #define NEMO_DESKTOP_DIRECTORY_FILE_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_DESKTOP_DIRECTORY_FILE, NemoDesktopDirectoryFileClass)) 36 #define NEMO_IS_DESKTOP_DIRECTORY_FILE(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_DESKTOP_DIRECTORY_FILE)) 38 #define NEMO_IS_DESKTOP_DIRECTORY_FILE_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_DESKTOP_DIRECTORY_FILE)) 40 #define NEMO_DESKTOP_DIRECTORY_FILE_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_DESKTOP_DIRECTORY_FILE, NemoDesktopDirectoryFileClass)) 42 43 typedef struct NemoDesktopDirectoryFileDetails NemoDesktopDirectoryFileDetails; 44 45 typedef struct { 46 NemoFile parent_slot; 47 NemoDesktopDirectoryFileDetails *details; 48 } NemoDesktopDirectoryFile; 49 50 typedef struct { 51 NemoFileClass parent_slot; 52 } NemoDesktopDirectoryFileClass; 53 54 GType nemo_desktop_directory_file_get_type (void); 55 56 #endif /* NEMO_DESKTOP_DIRECTORY_FILE_H */ 57