1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- 2 3 nemo-saved-search-file.h: Subclass of NemoVFSFile to implement the 4 the case of a Saved Search file. 5 6 Copyright (C) 2005 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 24 */ 25 26 #ifndef NEMO_SAVED_SEARCH_FILE_H 27 #define NEMO_SAVED_SEARCH_FILE_H 28 29 #include <libnemo-private/nemo-vfs-file.h> 30 31 #define NEMO_TYPE_SAVED_SEARCH_FILE nemo_saved_search_file_get_type() 32 #define NEMO_SAVED_SEARCH_FILE(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_SAVED_SEARCH_FILE, NemoSavedSearchFile)) 34 #define NEMO_SAVED_SEARCH_FILE_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_SAVED_SEARCH_FILE, NemoSavedSearchFileClass)) 36 #define NEMO_IS_SAVED_SEARCH_FILE(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_SAVED_SEARCH_FILE)) 38 #define NEMO_IS_SAVED_SEARCH_FILE_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_SAVED_SEARCH_FILE)) 40 #define NEMO_SAVED_SEARCH_FILE_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_SAVED_SEARCH_FILE, NemoSavedSearchFileClass)) 42 43 44 typedef struct NemoSavedSearchFileDetails NemoSavedSearchFileDetails; 45 46 typedef struct { 47 NemoFile parent_slot; 48 } NemoSavedSearchFile; 49 50 typedef struct { 51 NemoFileClass parent_slot; 52 } NemoSavedSearchFileClass; 53 54 GType nemo_saved_search_file_get_type (void); 55 56 #endif /* NEMO_SAVED_SEARCH_FILE_H */ 57