1 /* 2 nautilus-search-directory.h: Subclass of NautilusDirectory to implement 3 a virtual directory consisting of the search directory and the search 4 icons 5 6 Copyright (C) 2005 Novell, 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, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #pragma once 23 24 #include "nautilus-directory.h" 25 26 #include "nautilus-types.h" 27 28 #define NAUTILUS_SEARCH_DIRECTORY_PROVIDER_NAME "search-directory-provider" 29 #define NAUTILUS_TYPE_SEARCH_DIRECTORY (nautilus_search_directory_get_type ()) 30 31 G_DECLARE_FINAL_TYPE (NautilusSearchDirectory, nautilus_search_directory, 32 NAUTILUS, SEARCH_DIRECTORY, NautilusDirectory) 33 34 char *nautilus_search_directory_generate_new_uri (void); 35 36 NautilusQuery *nautilus_search_directory_get_query (NautilusSearchDirectory *self); 37 void nautilus_search_directory_set_query (NautilusSearchDirectory *self, 38 NautilusQuery *query); 39 40 NautilusDirectory * 41 nautilus_search_directory_get_base_model (NautilusSearchDirectory *self); 42 void nautilus_search_directory_set_base_model (NautilusSearchDirectory *self, 43 NautilusDirectory *base_model); 44