1 /** 2 * This file is a part of the Cairo-Dock project 3 * 4 * Copyright : (C) see the 'copyright' file. 5 * E-mail : see the 'copyright' file. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 3 10 * of the License, or (at your option) any later version. 11 * 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 15 * GNU General Public License for more details. 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __APPLET_MAIN_QUERY__ 21 #define __APPLET_MAIN_QUERY__ 22 23 #include <cairo-dock.h> 24 #include "applet-struct.h" 25 26 typedef enum { 27 CD_MAIN_TYPE_ICON, 28 CD_MAIN_TYPE_CONTAINER, 29 CD_MAIN_TYPE_MODULE, 30 CD_MAIN_TYPE_MODULE_INSTANCE, 31 CD_MAIN_TYPE_UNKNOWN 32 } CDMainType; 33 34 #define CD_TYPE_ICON "Icon" 35 #define CD_TYPE_LAUNCHER "Launcher" 36 #define CD_TYPE_APPLICATION "Application" 37 #define CD_TYPE_APPLET "Applet" 38 #define CD_TYPE_SEPARATOR "Separator" 39 #define CD_TYPE_STACK_ICON "Stack-icon" 40 #define CD_TYPE_CLASS_ICON "Class-icon" 41 #define CD_TYPE_ICON_OTHER "Other" 42 #define CD_TYPE_CONTAINER "Container" 43 #define CD_TYPE_DOCK "Dock" 44 #define CD_TYPE_DESKLET "Desklet" 45 #define CD_TYPE_MODULE "Module" 46 #define CD_TYPE_MANAGER "Manager" 47 #define CD_TYPE_MODULE_INSTANCE "Module-Instance" 48 49 50 CDMainType cd_dbus_get_main_type (const gchar *cType, int n); 51 52 53 GList *cd_dbus_find_matching_objects (gchar *cQuery); 54 55 56 GList *cd_dbus_find_matching_icons (gchar *cQuery); 57 58 59 #endif 60