Back to index

unity  6.0.0
UBusMessages.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Gordon Allott <gord.allott@canonical.com>
00017  */
00018 #ifndef UBUS_MESSAGES_H
00019 #define UBUS_MESSAGES_H
00020 
00021 
00022 // Add ubus messages here so we can easily export them around the place
00023 // keep ordered
00024 
00025 // Signal fired when an autopilot test is finished
00026 #define UBUS_AUTOPILOT_TEST_FINISHED "AUTOPILOT_TEST_FINISHED"
00027 
00028 #define UBUS_DASH_EXTERNAL_ACTIVATION "DASH_EXTERNAL_ACTIVATION"
00029 #define UBUS_PLACE_VIEW_CLOSE_REQUEST "PLACE_VIEW_CLOSE_REQUEST"
00030 
00031 // Request a PlaceEntry to be shown.
00032 // Payload should be: (sus) = (id, section, search_string).
00033 // id = entry->GetId(), search_string can be ""
00034 #define UBUS_PLACE_ENTRY_ACTIVATE_REQUEST "PLACE_ENTRY_ACTIVATE_REQUEST"
00035 #define UBUS_DASH_ABOUT_TO_SHOW "DASH_ABOUT_TO_SHOW"
00036 
00037 // Signal sent when an overlay interface is shown, includes a gvariant
00038 // gvariant format is (sb), (interface-name, can_maximize?)
00039 #define UBUS_OVERLAY_FORMAT_STRING "(sbi)"
00040 #define UBUS_OVERLAY_HIDDEN "OVERLAY_HIDDEN"
00041 #define UBUS_OVERLAY_SHOWN "OVERLAY_SHOWN"
00042 
00043 #define UBUS_PLACE_VIEW_QUEUE_DRAW "PLACE_VIEW_QUEUE_DRAW"
00044 
00045 // Signal send by Launcher/Quicklist when it wants to exit key-nav and wants to
00046 // get rid of keyboard-input-focus
00047 #define UBUS_LAUNCHER_START_KEY_NAV  "LAUNCHER_START_KEY_NAV"
00048 #define UBUS_LAUNCHER_END_KEY_NAV    "LAUNCHER_END_KEY_NAV"
00049 #define UBUS_LAUNCHER_START_KEY_SWTICHER "LAUNCHER_START_KEY_SWITCHER"
00050 #define UBUS_LAUNCHER_END_KEY_SWTICHER   "LAUNCHER_END_KEY_SWITCHER"
00051 #define UBUS_LAUNCHER_SELECTION_CHANGED  "LAUNCHER_ICON_SELECTION_CHANGED"
00052 #define UBUS_LAUNCHER_ICON_URGENT_CHANGED "LAUNCHER_ICON_URGENT_CHANGED"
00053 #define UBUS_QUICKLIST_START_KEY_NAV "QUICKLIST_START_KEY_NAV"
00054 #define UBUS_QUICKLIST_END_KEY_NAV   "QUICKLIST_END_KEY_NAV"
00055 
00056 // Signals that fired on various launcher dnd tasks
00057 #define UBUS_LAUNCHER_START_DND      "LAUNCHER_START_DRAG"
00058 #define UBUS_LAUNCHER_END_DND        "LAUNCHER_END_DRAG"
00059 #define UBUS_LAUNCHER_ICON_START_DND "LAUNCHER_ICON_START_DND"
00060 #define UBUS_LAUNCHER_ICON_END_DND   "LAUNCHER_ICON_END_DND"
00061 
00062 // Signal to send on icon action and that you want to request hiding the launcher
00063 #define UBUS_LAUNCHER_ACTION_DONE "LAUNCHER_ACTION_DONE"
00064 
00065 // Signal to force the launcher into locked mode, (b)
00066 #define UBUS_LAUNCHER_LOCK_HIDE "LAUNCHER_LOCK_HIDE"
00067 
00068 // Signal to emit changes to the launcher hide mode behaviour (b), true = locked out, false = unlocked
00069 #define UBUS_LAUNCHER_HIDE_MODE_CHANGE "LAUNCHER_HIDE_MODE_CHANGE"
00070 
00071 // Signal sent when a quicklist is shown.
00072 #define UBUS_QUICKLIST_SHOWN "QUICKLIST_SHOWN"
00073 
00074 // Signal sent when a tooltip is shown.
00075 #define UBUS_TOOLTIP_SHOWN "TOOLTIP_SHOWN"
00076 
00077 // Signal sent when the background changes, contains average colour in float RGB format
00078 #define UBUS_BACKGROUND_COLOR_CHANGED "BACKGROUND_COLOR_CHANGED"
00079 #define UBUS_BACKGROUND_REQUEST_COLOUR_EMIT "REQUEST_BACKGROUND_COLOUR_EMIT"
00080 
00081 #define UBUS_DASH_SIZE_CHANGED "DASH_SIZE_CHANGED"
00082 // FIXME - fix the nux focus api so we don't need this
00083 #define UBUS_RESULT_VIEW_KEYNAV_CHANGED "RESULT_VIEW_KEYNAV_CHANGED"
00084 
00085 // Sends a string datatype containing the new icon name
00086 #define UBUS_HUD_ICON_CHANGED "HUD_ICON_CHANGED"
00087 #define UBUS_HUD_CLOSE_REQUEST "HUD_CLOSE_REQUEST"
00088 
00089 // Signals sent when the switcher is shown, hidden or changes selection
00090 #define UBUS_SWITCHER_SHOWN             "SWITCHER_SHOWN"
00091 #define UBUS_SWITCHER_START             "SWITCHER_SHOWN_START"
00092 #define UBUS_SWITCHER_END               "SWITCHER_SHOWN_END"
00093 #define UBUS_SWITCHER_SELECTION_CHANGED "SWITCHER_SELECTION_CHANGED"
00094 
00095 #endif // UBUS_MESSAGES_H