home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Idea: Eventing architecture
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="samuel337" data-source="post: 28800" data-attributes="member: 10347"><p>You might want to start monitoring the event that's fired when a property in the property manager is changed. It will give you all this information and more - you just need to filter and respond to the appropriate ones.</p><p></p><p>Also, monitor the event that fires when ThreadMessages are fired - this will also give you a lot of information. Here's a list of all the messages that can be fired:</p><p></p><p>[code]</p><p> GUI_MSG_WINDOW_INIT,</p><p> GUI_MSG_WINDOW_DEINIT,</p><p> GUI_MSG_SETFOCUS,</p><p> GUI_MSG_LOSTFOCUS,</p><p> GUI_MSG_CLICKED,</p><p> GUI_MSG_VISIBLE,</p><p> GUI_MSG_HIDDEN,</p><p> GUI_MSG_ENABLED,</p><p> GUI_MSG_DISABLED,</p><p> GUI_MSG_SELECTED,</p><p> GUI_MSG_DESELECTED,</p><p> GUI_MSG_LABEL_ADD,</p><p> GUI_MSG_LABEL_SET,</p><p> GUI_MSG_LABEL_RESET,</p><p> GUI_MSG_ITEM_SELECTED,</p><p> GUI_MSG_ITEM_SELECT,</p><p> GUI_MSG_ITEM_FOCUS,</p><p> GUI_MSG_LABEL2_SET,</p><p> GUI_MSG_SHOWRANGE,</p><p> GUI_MSG_GET_ITEM,</p><p> GUI_MSG_START_SLIDESHOW,</p><p> GUI_MSG_ITEMS,</p><p> GUI_MSG_GET_SELECTED_ITEM,</p><p> GUI_MSG_PLAYBACK_STOPPED,</p><p> GUI_MSG_PLAYLIST_CHANGED,</p><p> GUI_MSG_PLAYBACK_ENDED,</p><p> GUI_MSG_PLAYBACK_STARTED,</p><p> GUI_MSG_PERCENTAGE_CHANGED,</p><p> GUI_MSG_PLAY_FILE,</p><p> GUI_MSG_STOP_FILE,</p><p> GUI_MSG_SEEK_FILE_PERCENTAGE,</p><p> GUI_MSG_RECORDER_ALLOC_CARD,</p><p> GUI_MSG_RECORDER_FREE_CARD,</p><p> GUI_MSG_RECORDER_STOP_TIMESHIFT,</p><p> GUI_MSG_TUNE_EXTERNAL_CHANNEL,</p><p> GUI_MSG_GET_STRING,</p><p> GUI_MSG_GET_PASSWORD,</p><p> GUI_MSG_SWITCH_FULL_WINDOWED,</p><p> GUI_MSG_PLAY_AUDIO_CD,</p><p> GUI_MSG_CD_REMOVED,</p><p> GUI_MSG_CD_INSERTED,</p><p> GUI_MSG_PLAYING_10SEC,//file is playing 10 sec</p><p> GUI_MSG_PLAY_RADIO_STATION,</p><p> GUI_MSG_SHOW_WARNING,</p><p> GUI_MSG_RESUME_TV,</p><p> GUI_MSG_SEEK_FILE_END,</p><p> GUI_MSG_REFRESH,</p><p> GUI_MSG_ASKYESNO,</p><p> GUI_MSG_NEW_LINE_ENTERED,</p><p> GUI_MSG_FILE_DOWNLOADED,</p><p> GUI_MSG_FILE_DOWNLOADING,</p><p> GUI_MSG_USER,</p><p> GUI_MSG_MSN_MESSAGE,</p><p> GUI_MSG_MSN_STATUS_MESSAGE,</p><p> GUI_MSG_MSN_CLOSECONVERSATION,</p><p> GUI_MSG_ITEM_FOCUS_CHANGED,</p><p> GUI_MSG_PLAY_ITEM,</p><p> GUI_MSG_RECORDER_VIEW_CHANNEL,</p><p> GUI_MSG_RECORDER_STOP_VIEWING,</p><p> GUI_MSG_GOTO_WINDOW,</p><p> GUI_MSG_RECORDER_TUNE_RADIO,</p><p> GUI_MSG_RECORDER_STOP_RADIO,</p><p> GUI_MSG_VOLUME_INSERTED,</p><p> GUI_MSG_VOLUME_REMOVED,</p><p> GUI_MSG_AUTOPLAY_VOLUME,</p><p> GUI_MSG_SHOW_DIRECTORY,</p><p> GUI_MSG_SHOW_MESSAGE,</p><p> GUI_MSG_HIDE_MESSAGE,</p><p> GUI_MSG_NOTIFY,</p><p> GUI_MSG_RECORDER_STOP_TV,</p><p> GUI_MSG_CLICKED_UP,</p><p> GUI_MSG_CLICKED_DOWN,</p><p> GUI_MSG_RECORDER_ABOUT_TO_START_RECORDING,</p><p> GUI_MSG_NOTIFY_TV_PROGRAM,</p><p> GUI_MSG_RESTART_REMOTE_CONTROLS,</p><p> GetList,</p><p> GUI_MSG_SEEK_POSITION,</p><p> GUI_MSG_PLAYER_POSITION_CHANGED,</p><p> GUI_MSG_RECORD</p><p>[/code]</p><p></p><p>Also, the player component also fires events when an item starts playing (song, video, tv etc.), when it stops, when the next item is played in the playlist etc.</p><p></p><p>So I think more the point is that some one needs to go in and make sure all these messages are fired at the appropriate moment, rather than creating a new event manager.</p><p></p><p><strong>EDIT: Hang on - what do you mean by 'application events (not .NET framework events)'?</strong></p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 28800, member: 10347"] You might want to start monitoring the event that's fired when a property in the property manager is changed. It will give you all this information and more - you just need to filter and respond to the appropriate ones. Also, monitor the event that fires when ThreadMessages are fired - this will also give you a lot of information. Here's a list of all the messages that can be fired: [code] GUI_MSG_WINDOW_INIT, GUI_MSG_WINDOW_DEINIT, GUI_MSG_SETFOCUS, GUI_MSG_LOSTFOCUS, GUI_MSG_CLICKED, GUI_MSG_VISIBLE, GUI_MSG_HIDDEN, GUI_MSG_ENABLED, GUI_MSG_DISABLED, GUI_MSG_SELECTED, GUI_MSG_DESELECTED, GUI_MSG_LABEL_ADD, GUI_MSG_LABEL_SET, GUI_MSG_LABEL_RESET, GUI_MSG_ITEM_SELECTED, GUI_MSG_ITEM_SELECT, GUI_MSG_ITEM_FOCUS, GUI_MSG_LABEL2_SET, GUI_MSG_SHOWRANGE, GUI_MSG_GET_ITEM, GUI_MSG_START_SLIDESHOW, GUI_MSG_ITEMS, GUI_MSG_GET_SELECTED_ITEM, GUI_MSG_PLAYBACK_STOPPED, GUI_MSG_PLAYLIST_CHANGED, GUI_MSG_PLAYBACK_ENDED, GUI_MSG_PLAYBACK_STARTED, GUI_MSG_PERCENTAGE_CHANGED, GUI_MSG_PLAY_FILE, GUI_MSG_STOP_FILE, GUI_MSG_SEEK_FILE_PERCENTAGE, GUI_MSG_RECORDER_ALLOC_CARD, GUI_MSG_RECORDER_FREE_CARD, GUI_MSG_RECORDER_STOP_TIMESHIFT, GUI_MSG_TUNE_EXTERNAL_CHANNEL, GUI_MSG_GET_STRING, GUI_MSG_GET_PASSWORD, GUI_MSG_SWITCH_FULL_WINDOWED, GUI_MSG_PLAY_AUDIO_CD, GUI_MSG_CD_REMOVED, GUI_MSG_CD_INSERTED, GUI_MSG_PLAYING_10SEC,//file is playing 10 sec GUI_MSG_PLAY_RADIO_STATION, GUI_MSG_SHOW_WARNING, GUI_MSG_RESUME_TV, GUI_MSG_SEEK_FILE_END, GUI_MSG_REFRESH, GUI_MSG_ASKYESNO, GUI_MSG_NEW_LINE_ENTERED, GUI_MSG_FILE_DOWNLOADED, GUI_MSG_FILE_DOWNLOADING, GUI_MSG_USER, GUI_MSG_MSN_MESSAGE, GUI_MSG_MSN_STATUS_MESSAGE, GUI_MSG_MSN_CLOSECONVERSATION, GUI_MSG_ITEM_FOCUS_CHANGED, GUI_MSG_PLAY_ITEM, GUI_MSG_RECORDER_VIEW_CHANNEL, GUI_MSG_RECORDER_STOP_VIEWING, GUI_MSG_GOTO_WINDOW, GUI_MSG_RECORDER_TUNE_RADIO, GUI_MSG_RECORDER_STOP_RADIO, GUI_MSG_VOLUME_INSERTED, GUI_MSG_VOLUME_REMOVED, GUI_MSG_AUTOPLAY_VOLUME, GUI_MSG_SHOW_DIRECTORY, GUI_MSG_SHOW_MESSAGE, GUI_MSG_HIDE_MESSAGE, GUI_MSG_NOTIFY, GUI_MSG_RECORDER_STOP_TV, GUI_MSG_CLICKED_UP, GUI_MSG_CLICKED_DOWN, GUI_MSG_RECORDER_ABOUT_TO_START_RECORDING, GUI_MSG_NOTIFY_TV_PROGRAM, GUI_MSG_RESTART_REMOTE_CONTROLS, GetList, GUI_MSG_SEEK_POSITION, GUI_MSG_PLAYER_POSITION_CHANGED, GUI_MSG_RECORD [/code] Also, the player component also fires events when an item starts playing (song, video, tv etc.), when it stops, when the next item is played in the playlist etc. So I think more the point is that some one needs to go in and make sure all these messages are fired at the appropriate moment, rather than creating a new event manager. [b]EDIT: Hang on - what do you mean by 'application events (not .NET framework events)'?[/b] Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Idea: Eventing architecture
Contact us
RSS
Top
Bottom