Merge pull request #4676 from jmarshallnz/dont_set_scraper_on_tvshow_on_nfo
[vuplus_xbmc] / xbmc / GUIUserMessages.h
1 //  GUI messages outside GuiLib
2 //
3 #pragma once
4
5 /*
6  *      Copyright (C) 2005-2013 Team XBMC
7  *      http://xbmc.org
8  *
9  *  This Program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2, or (at your option)
12  *  any later version.
13  *
14  *  This Program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with XBMC; see the file COPYING.  If not, see
21  *  <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 #include "guilib/GUIMessage.h"
26
27 //  Source related messages
28 #define GUI_MSG_REMOVED_MEDIA           GUI_MSG_USER + 1
29 #define GUI_MSG_UPDATE_SOURCES          GUI_MSG_USER + 2
30
31 //  General playlist items changed
32 #define GUI_MSG_PLAYLIST_CHANGED        GUI_MSG_USER + 3
33
34 //  Start Slideshow in my pictures lpVoid = CStdString
35 //  Param lpVoid: CStdString* that points to the Directory
36 //  to start the slideshow in.
37 #define GUI_MSG_START_SLIDESHOW         GUI_MSG_USER + 4
38
39 #define GUI_MSG_PLAYBACK_STARTED        GUI_MSG_USER + 5
40 #define GUI_MSG_PLAYBACK_ENDED          GUI_MSG_USER + 6
41
42 //  Playback stopped by user
43 #define GUI_MSG_PLAYBACK_STOPPED        GUI_MSG_USER + 7
44
45 //  Message is send by the playlistplayer when it starts a playlist
46 //  Parameter:
47 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
48 //  dwParam2 = Item started in the playlist
49 //  lpVoid = Playlistitem started playing
50 #define GUI_MSG_PLAYLISTPLAYER_STARTED  GUI_MSG_USER + 8
51
52 //  Message is send by playlistplayer when next/previous item is started
53 //  Parameter:
54 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
55 //  dwParam2 = LOWORD Position of the current playlistitem
56 //             HIWORD Position of the previous playlistitem
57 //  lpVoid = Current Playlistitem
58 #define GUI_MSG_PLAYLISTPLAYER_CHANGED  GUI_MSG_USER + 9
59
60 //  Message is send by the playlistplayer when the last item to play ended
61 //  Parameter:
62 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
63 //  dwParam2 = Playlistitem played when stopping
64 #define GUI_MSG_PLAYLISTPLAYER_STOPPED  GUI_MSG_USER + 10
65
66 #define GUI_MSG_LOAD_SKIN               GUI_MSG_USER + 11
67
68 //  Message is send by the dialog scan music
69 //  Parameter:
70 //  StringParam = Directory last scanned
71 #define GUI_MSG_DIRECTORY_SCANNED       GUI_MSG_USER + 12
72
73 #define GUI_MSG_SCAN_FINISHED           GUI_MSG_USER + 13
74
75 //  Player has requested the next item for caching purposes (PAPlayer)
76 #define GUI_MSG_QUEUE_NEXT_ITEM         GUI_MSG_USER + 16
77
78 // Visualisation messages when loading/unloading
79 #define GUI_MSG_VISUALISATION_UNLOADING GUI_MSG_USER + 117 // sent by vis
80 #define GUI_MSG_VISUALISATION_LOADED    GUI_MSG_USER + 118 // sent by vis
81 #define GUI_MSG_GET_VISUALISATION       GUI_MSG_USER + 119 // request to vis for the visualisation object
82 #define GUI_MSG_VISUALISATION_ACTION    GUI_MSG_USER + 120 // request the vis perform an action
83 #define GUI_MSG_VISUALISATION_RELOAD    GUI_MSG_USER + 121 // request the vis to reload
84
85 #define GUI_MSG_VIDEO_MENU_STARTED      GUI_MSG_USER + 21 // sent by dvdplayer on entry to the menu
86
87 //  Message is sent by built-in function to alert the playlist window
88 //  that the user has initiated Random playback
89 //  dwParam1 = Current Playlist (PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO)
90 //  dwParam2 = 0 or 1 (Enabled or Disabled)
91 #define GUI_MSG_PLAYLISTPLAYER_RANDOM   GUI_MSG_USER + 22
92
93 //  Message is sent by built-in function to alert the playlist window
94 //  that the user has initiated Repeat playback
95 //  dwParam1 = Current Playlist (PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO)
96 //  dwParam2 = 0 or 1 or 2 (Off, Repeat All, Repeat One)
97 #define GUI_MSG_PLAYLISTPLAYER_REPEAT   GUI_MSG_USER + 23
98
99 // Message is sent by the background info loader when it is finished with fetching a weather location.
100 #define GUI_MSG_WEATHER_FETCHED       GUI_MSG_USER + 24
101
102 // Message is sent to the screensaver window to tell that it should check the lock
103 #define GUI_MSG_CHECK_LOCK            GUI_MSG_USER + 25
104
105 // Message is sent to media windows to force a refresh
106 #define GUI_MSG_UPDATE                GUI_MSG_USER + 26
107
108 // Message sent by filtering dialog to request a new filter be applied
109 #define GUI_MSG_FILTER_ITEMS          GUI_MSG_USER + 27
110
111 // Message sent by search dialog to request a new search be applied
112 #define GUI_MSG_SEARCH_UPDATE         GUI_MSG_USER + 28
113
114 // Message sent to tell the GUI to update a single item
115 #define GUI_MSG_UPDATE_ITEM           GUI_MSG_USER + 29
116
117 // Message sent to tell the GUI to change view mode
118 #define GUI_MSG_CHANGE_VIEW_MODE      GUI_MSG_USER + 30
119
120 // Message sent to tell the GUI to change sort method/direction
121 #define GUI_MSG_CHANGE_SORT_METHOD    GUI_MSG_USER + 31
122 #define GUI_MSG_CHANGE_SORT_DIRECTION GUI_MSG_USER + 32
123
124 // Sent from filesystem if a path is known to have changed
125 #define GUI_MSG_UPDATE_PATH           GUI_MSG_USER + 33
126
127 // Sent to tell window to initiate a search dialog
128 #define GUI_MSG_SEARCH                GUI_MSG_USER + 34
129
130 // Sent to the AddonSetting dialogs from addons if they updated a setting
131 #define GUI_MSG_SETTING_UPDATED       GUI_MSG_USER + 35
132
133 // Message sent to CGUIWindowSlideshow to show picture
134 #define GUI_MSG_SHOW_PICTURE          GUI_MSG_USER + 36
135
136 // Sent to text field to support 'input method'
137 #define GUI_MSG_INPUT_TEXT            GUI_MSG_USER + 37
138 #define GUI_MSG_INPUT_TEXT_EDIT       GUI_MSG_USER + 38