C# 클래스 MediaPortalApp, MediaPortal-1

상속: D3D, IRender
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

공개 메소드들

메소드 설명
MPProcess ( ) : void

Process() gets called when a dialog is presented. It contains the message loop

MadVRMPProcess ( ) : void

Process() gets called for madVR. It contains the message loop

MediaPortalApp ( ) : DirectShowLib

OnStartExternal ( Process proc, bool waitForExit ) : void

OnStopExternal ( Process proc, bool waitForExit ) : void

RenderFrame ( float timePassed, GUILayers layers ) : void
RenderFrame ( float timePassed, GUILayers layers, bool &uiVisible ) : void
SetDWORDRegKey ( RegistryKey hklm, string key, string value, Int32 iValue ) : void

SetREGSZRegKey ( RegistryKey hklm, string key, string name, string value ) : void

ShowStartupWarningDialogs ( ) : void

보호된 메소드들

메소드 설명
CheckSkinVersion ( ) : void

FrameMove ( ) : void

GetCleanDisplayName ( Screen screen ) : string

XP returns random garbage in a name of a display in .NET

GetDate ( ) : string

Get the current date from the system and localize it based on the user preferences.

GetDay ( ) : string

GetDayOfWeek ( ) : string

GetMonth ( ) : string
GetMonthOfYear ( ) : string

GetShortDayOfWeek ( ) : string

GetShortMonthOfYear ( ) : string

GetShortYear ( ) : string

GetTime ( ) : string

Get the current time from the system. Set the format in the Home plugin's config

GetYear ( ) : string

InitializeDeviceObjects ( ) : void

KeyDownEvent ( KeyEventArgs e ) : void

This is coming indirectly from System.Windows.Forms.Control.KeyDown event. It's notably needed to be able to handle direction arrows and escape.

KeyPressEvent ( KeyPressEventArgs e ) : void

This is coming indirectly from System.Windows.Forms.Control.KeyPress event. I believe it does not fire for some keys such as direction arrows and escape.

MouseClickEvent ( MouseEventArgs e ) : void

MouseDoubleClickEvent ( MouseEventArgs e ) : void

MouseMoveEvent ( MouseEventArgs e ) : void

NotifyIconRestore ( Object sender, EventArgs e ) : void

OnDeviceLost ( object sender, EventArgs e ) : void

OnExit ( ) : void

OnExit() Gets called just b4 application stops

OnMouseWheel ( MouseEventArgs e ) : void

OnProcess ( ) : void

OnStartup ( ) : void

OnStartup() gets called just before the application starts

Render ( float timePassed ) : void

WndProc ( Message &msg ) : void

Message Pump

비공개 메소드들

메소드 설명
AddExceptionHandler ( ) : void
Application_ApplicationExit ( object sender, EventArgs e ) : void
Application_ThreadException ( object sender, System e ) : void
CheckDelayedResume ( ) : bool
CheckSingleClick ( MouseEventArgs e ) : void

CreateStateBlock ( ) : void

CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
Currentmodulefullscreen ( ) : bool

DisableProcessWindowsGhosting ( ) : void
DisableSplashScreen ( ) : void

Disables the Splash Screen

DisposeDBs ( ) : void

DoStartupJobs ( ) : void

EnumDisplayDevices ( string lpDevice, int iDevNum, [ lpDisplayDevice, int dwFlags ) : bool
ExitMP ( ) : void

ForceMPFocus ( ) : void

Focus Mediaportal is visible.

GCD ( long a, long b ) : long

Find the Greatest Common Divisor

IsSuspendOrHibernationAllowed ( ) : bool

LegacyKeyPressEvent ( KeyPressEventArgs e ) : void

Major mess goes here.

LoadLanguageString ( ) : void

Load string_xx.xml based on config

Main ( string args ) : void
MediaPortalAppActivated ( object sender, EventArgs e ) : void

MediaPortalAppDeactivate ( object sender, EventArgs e ) : void

OnAction ( MediaPortal.GUI.Library.Action action ) : void

OnActivate ( Message &msg ) : void

OnDeviceChange ( Message &msg ) : void

OnDisplayChange ( Message &msg ) : void

OnGetMinMaxInfo ( Message &msg ) : void

OnMessage ( GUIMessage message ) : void

OnMoving ( Message &msg ) : void

OnPowerBroadcast ( Message &msg ) : bool

Process WM_POWERBROADCAST messages

OnRemoteCommand ( object command ) : void

OnResumeAutomatic ( ) : void

This event is delivered every time the system resumes and does not indicate whether a user is present

OnResumeSuspend ( ) : void

This event is sent with the PBT_APMRESUMEAUTOMATIC event if the system has resumed operation due to user activity.

OnSize ( Message &msg ) : void

OnSizing ( Message &msg ) : void

OnSuspend ( ) : void

OnSysCommand ( Message &msg ) : bool

OnThreadException ( object sender, ThreadExceptionEventArgs e ) : void

OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

PathIsNetworkPath ( string path ) : bool
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : bool
PrepareSuspend ( ) : void

Prepare application for suspend, this is done before power events get passed to plugins

PromptUserBeforeChangingPowermode ( MediaPortal.GUI.Library.Action action ) : bool

ReOpenDBs ( ) : void

RegisterDeviceNotification ( IntPtr hRecipient, IntPtr notificationFilter, uint flags ) : IntPtr
RegisterForDeviceNotifications ( ) : void
RegisterPowerSettingNotification ( IntPtr hRecipient, System.Guid &powerSettingGuid, Int32 flags ) : IntPtr
RenderStats ( ) : void

SaveLastActiveModule ( ) : void

saves last active module.

ScaleCursorPosition ( Point location ) : Point

SetProcessDPIAware ( ) : int
SetProcessWorkingSetSize ( IntPtr handle, int minSize, int maxSize ) : bool
SetThreadExecutionState ( EXECUTION_STATE esFlags ) : EXECUTION_STATE
SystemParametersInfo ( int uAction, int uParam, bool &lpvParam, int fuWinIni ) : bool
SystemParametersInfo ( int uAction, int uParam, int lpvParam, int fuWinIni ) : bool
UnregisterDeviceNotification ( IntPtr hHandle ) : uint
UnregisterForDeviceNotification ( ) : void

UnregisterForPowerSettingNotitication ( ) : void

UnregisterPowerSettingNotification ( IntPtr handle ) : bool
UpdateSplashScreenMessage ( string aSplashLine ) : void

Updates the splash screen to display the given string. This method checks whether the splash screen exists.

메소드 상세

CheckSkinVersion() 보호된 메소드

protected CheckSkinVersion ( ) : void
리턴 void

FrameMove() 보호된 메소드

protected FrameMove ( ) : void
리턴 void

GetCleanDisplayName() 보호된 정적인 메소드

XP returns random garbage in a name of a display in .NET
protected static GetCleanDisplayName ( Screen screen ) : string
screen Screen
리턴 string

GetDate() 보호된 메소드

Get the current date from the system and localize it based on the user preferences.
protected GetDate ( ) : string
리턴 string

GetDay() 보호된 메소드

protected GetDay ( ) : string
리턴 string

GetDayOfWeek() 보호된 메소드

protected GetDayOfWeek ( ) : string
리턴 string

GetMonth() 보호된 메소드

protected GetMonth ( ) : string
리턴 string

GetMonthOfYear() 보호된 메소드

protected GetMonthOfYear ( ) : string
리턴 string

GetShortDayOfWeek() 보호된 메소드

protected GetShortDayOfWeek ( ) : string
리턴 string

GetShortMonthOfYear() 보호된 메소드

protected GetShortMonthOfYear ( ) : string
리턴 string

GetShortYear() 보호된 메소드

protected GetShortYear ( ) : string
리턴 string

GetTime() 보호된 메소드

Get the current time from the system. Set the format in the Home plugin's config
protected GetTime ( ) : string
리턴 string

GetYear() 보호된 메소드

protected GetYear ( ) : string
리턴 string

InitializeDeviceObjects() 보호된 메소드

protected InitializeDeviceObjects ( ) : void
리턴 void

KeyDownEvent() 보호된 메소드

This is coming indirectly from System.Windows.Forms.Control.KeyDown event. It's notably needed to be able to handle direction arrows and escape.
protected KeyDownEvent ( KeyEventArgs e ) : void
e KeyEventArgs
리턴 void

KeyPressEvent() 보호된 메소드

This is coming indirectly from System.Windows.Forms.Control.KeyPress event. I believe it does not fire for some keys such as direction arrows and escape.
protected KeyPressEvent ( KeyPressEventArgs e ) : void
e KeyPressEventArgs
리턴 void

MPProcess() 공개 메소드

Process() gets called when a dialog is presented. It contains the message loop
public MPProcess ( ) : void
리턴 void

MadVRMPProcess() 공개 메소드

Process() gets called for madVR. It contains the message loop
public MadVRMPProcess ( ) : void
리턴 void

MediaPortalApp() 공개 메소드

public MediaPortalApp ( ) : DirectShowLib
리턴 DirectShowLib

MouseClickEvent() 보호된 메소드

protected MouseClickEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

MouseDoubleClickEvent() 보호된 메소드

protected MouseDoubleClickEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

MouseMoveEvent() 보호된 메소드

protected MouseMoveEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

NotifyIconRestore() 보호된 메소드

protected NotifyIconRestore ( Object sender, EventArgs e ) : void
sender Object
e EventArgs
리턴 void

OnDeviceLost() 보호된 메소드

protected OnDeviceLost ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

OnExit() 보호된 메소드

OnExit() Gets called just b4 application stops
protected OnExit ( ) : void
리턴 void

OnMouseWheel() 보호된 메소드

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnProcess() 보호된 메소드

protected OnProcess ( ) : void
리턴 void

OnStartExternal() 공개 메소드

public OnStartExternal ( Process proc, bool waitForExit ) : void
proc Process
waitForExit bool
리턴 void

OnStartup() 보호된 메소드

OnStartup() gets called just before the application starts
protected OnStartup ( ) : void
리턴 void

OnStopExternal() 공개 메소드

public OnStopExternal ( Process proc, bool waitForExit ) : void
proc Process
waitForExit bool
리턴 void

Render() 보호된 메소드

protected Render ( float timePassed ) : void
timePassed float
리턴 void

RenderFrame() 공개 메소드

public RenderFrame ( float timePassed, GUILayers layers ) : void
timePassed float
layers GUILayers
리턴 void

RenderFrame() 공개 메소드

public RenderFrame ( float timePassed, GUILayers layers, bool &uiVisible ) : void
timePassed float
layers GUILayers
uiVisible bool
리턴 void

SetDWORDRegKey() 공개 정적인 메소드

public static SetDWORDRegKey ( RegistryKey hklm, string key, string value, Int32 iValue ) : void
hklm RegistryKey
key string
value string
iValue System.Int32
리턴 void

SetREGSZRegKey() 공개 정적인 메소드

public static SetREGSZRegKey ( RegistryKey hklm, string key, string name, string value ) : void
hklm RegistryKey
key string
name string
value string
리턴 void

ShowStartupWarningDialogs() 공개 정적인 메소드

public static ShowStartupWarningDialogs ( ) : void
리턴 void

WndProc() 보호된 메소드

Message Pump
protected WndProc ( Message &msg ) : void
msg Message
리턴 void