Merge pull request #476 from energy6/xbmc-restore-volume
[vuplus_xbmc] / xbmc / GUIUserMessages.h
1 //  GUI messages outside GuiLib
2 //
3 #pragma once
4
5 /*
6  *      Copyright (C) 2005-2008 Team XBMC
7  *      http://www.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, write to
21  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22  *  http://www.gnu.org/copyleft/gpl.html
23  *
24  */
25
26 #include "guilib/GUIMessage.h"
27
28 //  Source related messages
29 #define GUI_MSG_REMOVED_MEDIA           GUI_MSG_USER + 1
30 #define GUI_MSG_UPDATE_SOURCES          GUI_MSG_USER + 2
31
32 //  General playlist items changed
33 #define GUI_MSG_PLAYLIST_CHANGED        GUI_MSG_USER + 3
34
35 //  Start Slideshow in my pictures lpVoid = CStdString
36 //  Param lpVoid: CStdString* that points to the Directory
37 //  to start the slideshow in.
38 #define GUI_MSG_START_SLIDESHOW         GUI_MSG_USER + 4
39
40 #define GUI_MSG_PLAYBACK_STARTED        GUI_MSG_USER + 5
41 #define GUI_MSG_PLAYBACK_ENDED          GUI_MSG_USER + 6
42
43 //  Playback stopped by user
44 #define GUI_MSG_PLAYBACK_STOPPED        GUI_MSG_USER + 7
45
46 //  Message is send by the playlistplayer when it starts a playlist
47 //  Parameter:
48 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
49 //  dwParam2 = Item started in the playlist
50 //  lpVoid = Playlistitem started playing
51 #define GUI_MSG_PLAYLISTPLAYER_STARTED  GUI_MSG_USER + 8
52
53 //  Message is send by playlistplayer when next/previous item is started
54 //  Parameter:
55 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
56 //  dwParam2 = LOWORD Position of the current playlistitem
57 //             HIWORD Position of the previous playlistitem
58 //  lpVoid = Current Playlistitem
59 #define GUI_MSG_PLAYLISTPLAYER_CHANGED  GUI_MSG_USER + 9
60
61 //  Message is send by the playlistplayer when the last item to play ended
62 //  Parameter:
63 //  dwParam1 = Current Playlist, can be PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO
64 //  dwParam2 = Playlistitem played when stopping
65 #define GUI_MSG_PLAYLISTPLAYER_STOPPED  GUI_MSG_USER + 10
66
67 #define GUI_MSG_LOAD_SKIN               GUI_MSG_USER + 11
68
69 //  Message is send by the dialog scan music
70 //  Parameter:
71 //  StringParam = Directory last scanned
72 #define GUI_MSG_DIRECTORY_SCANNED       GUI_MSG_USER + 12
73
74 #define GUI_MSG_SCAN_FINISHED           GUI_MSG_USER + 13
75
76 //  Player has requested the next item for caching purposes (PAPlayer)
77 #define GUI_MSG_QUEUE_NEXT_ITEM         GUI_MSG_USER + 16
78
79 // Visualisation messages when loading/unloading
80 #define GUI_MSG_VISUALISATION_UNLOADING GUI_MSG_USER + 117 // sent by vis
81 #define GUI_MSG_VISUALISATION_LOADED    GUI_MSG_USER + 118 // sent by vis
82 #define GUI_MSG_GET_VISUALISATION       GUI_MSG_USER + 119 // request to vis for the visualisation object
83 #define GUI_MSG_VISUALISATION_ACTION    GUI_MSG_USER + 120 // request the vis perform an action
84 #define GUI_MSG_VISUALISATION_RELOAD    GUI_MSG_USER + 121 // request the vis to reload
85
86 #define GUI_MSG_VIDEO_MENU_STARTED      GUI_MSG_USER + 21 // sent by dvdplayer on entry to the menu
87
88 //  Message is sent by built-in function to alert the playlist window
89 //  that the user has initiated Random playback
90 //  dwParam1 = Current Playlist (PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO)
91 //  dwParam2 = 0 or 1 (Enabled or Disabled)
92 #define GUI_MSG_PLAYLISTPLAYER_RANDOM   GUI_MSG_USER + 22
93
94 //  Message is sent by built-in function to alert the playlist window
95 //  that the user has initiated Repeat playback
96 //  dwParam1 = Current Playlist (PLAYLIST_MUSIC, PLAYLIST_TEMP_MUSIC, PLAYLIST_VIDEO or PLAYLIST_TEMP_VIDEO)
97 //  dwParam2 = 0 or 1 or 2 (Off, Repeat All, Repeat One)
98 #define GUI_MSG_PLAYLISTPLAYER_REPEAT   GUI_MSG_USER + 23
99
100 // Message is sent by the background info loader when it is finished with fetching a weather location.
101 #define GUI_MSG_WEATHER_FETCHED       GUI_MSG_USER + 24
102
103 // Message is sent to the screensaver window to tell that it should check the lock
104 #define GUI_MSG_CHECK_LOCK            GUI_MSG_USER + 25
105
106 // Message is sent to media windows to force a refresh
107 #define GUI_MSG_UPDATE                GUI_MSG_USER + 26
108
109 // Message sent by filtering dialog to request a new filter be applied
110 #define GUI_MSG_FILTER_ITEMS          GUI_MSG_USER + 27
111
112 // Message sent by search dialog to request a new search be applied
113 #define GUI_MSG_SEARCH_UPDATE         GUI_MSG_USER + 28
114
115 // Message sent to tell the GUI to update a single item
116 #define GUI_MSG_UPDATE_ITEM           GUI_MSG_USER + 29
117
118 // Message sent to tell the GUI to change view mode
119 #define GUI_MSG_CHANGE_VIEW_MODE      GUI_MSG_USER + 30
120
121 // Message sent to tell the GUI to change sort method/direction
122 #define GUI_MSG_CHANGE_SORT_METHOD    GUI_MSG_USER + 31
123 #define GUI_MSG_CHANGE_SORT_DIRECTION GUI_MSG_USER + 32
124
125 // Sent from filesystem if a path is known to have changed
126 #define GUI_MSG_UPDATE_PATH           GUI_MSG_USER + 33
127
128 // Sent to tell window to initiate a search dialog
129 #define GUI_MSG_SEARCH                GUI_MSG_USER + 34
130
131 // Sent to the AddonSetting dialogs from addons if they updated a setting
132 #define GUI_MSG_SETTING_UPDATED       GUI_MSG_USER + 35