From: <che...@us...> - 2010-01-24 21:04:21
|
Revision: 3381 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3381&view=rev Author: chef_koch Date: 2010-01-24 21:04:14 +0000 (Sun, 24 Jan 2010) Log Message: ----------- updated file header Modified Paths: -------------- trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimer.cs trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimerConfig.cs trunk/plugins/MySleepTimer/MySleepTimer/Properties/AssemblyInfo.cs trunk/plugins/MySleepTimer/MySleepTimer/Settings.cs Modified: trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimer.cs =================================================================== --- trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimer.cs 2010-01-24 19:34:26 UTC (rev 3380) +++ trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimer.cs 2010-01-24 21:04:14 UTC (rev 3381) @@ -1,22 +1,20 @@ -#region Copyright (C) 2005-2009 Team MediaPortal +#region Copyright (C) 2005-2010 Team MediaPortal -// Copyright (C) 2005-2009 Team MediaPortal +// Copyright (C) 2005-2010 Team MediaPortal // http://www.team-mediaportal.com // -// This Program is free software; you can redistribute it and/or modify +// MediaPortal is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2, or (at your option) -// any later version. +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. // -// This Program is distributed in the hope that it will be useful, +// MediaPortal is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with GNU Make; see the file COPYING. If not, write to -// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -// http://www.gnu.org/copyleft/gpl.html +// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>. #endregion @@ -27,7 +25,7 @@ using MediaPortal.Dialogs; using MediaPortal.GUI.Library; using MediaPortal.Util; -using Timer=System.Timers.Timer; +using Timer = System.Timers.Timer; namespace MySleepTimer { @@ -147,7 +145,7 @@ Application.Exit(); break; case "Show Basic Home": - GUIWindowManager.ActivateWindow((int) GUIWindow.Window.WINDOW_HOME, true); + GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_HOME, true); break; default: WindowsController.ExitWindows(Settings.ShutdownType, Settings.ShutdownForce, null); @@ -185,9 +183,7 @@ GUIPropertyManager.GetProperty("#shortcurrentremaining").Split(new char[] {':'}); totalMinutes = (int.Parse(shortCurrentRemaining[0]) * 60) + int.Parse(shortCurrentRemaining[1]); } - catch - { - } + catch {} if ((totalMinutes != 0) && (_sleepTimeCurrent == 0)) { @@ -238,7 +234,7 @@ //show _dialogSleepTimerNotify = - (GUIDialogNotify) GUIWindowManager.GetWindow((int) GUIWindow.Window.WINDOW_DIALOG_NOTIFY); + (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); _dialogSleepTimerNotify.TimeOut = timeOut; _dialogSleepTimerNotify.SetImage(GUIGraphicsContext.Skin + @"\Media\MySleepTimer_logo.png"); _dialogSleepTimerNotify.SetHeading("MySleepTimer"); Modified: trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimerConfig.cs =================================================================== --- trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimerConfig.cs 2010-01-24 19:34:26 UTC (rev 3380) +++ trunk/plugins/MySleepTimer/MySleepTimer/MySleepTimerConfig.cs 2010-01-24 21:04:14 UTC (rev 3381) @@ -1,22 +1,20 @@ -#region Copyright (C) 2005-2009 Team MediaPortal +#region Copyright (C) 2005-2010 Team MediaPortal -// Copyright (C) 2005-2009 Team MediaPortal +// Copyright (C) 2005-2010 Team MediaPortal // http://www.team-mediaportal.com // -// This Program is free software; you can redistribute it and/or modify +// MediaPortal is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2, or (at your option) -// any later version. +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. // -// This Program is distributed in the hope that it will be useful, +// MediaPortal is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with GNU Make; see the file COPYING. If not, write to -// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -// http://www.gnu.org/copyleft/gpl.html +// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>. #endregion @@ -134,7 +132,7 @@ var ret = new List<ActionEntry>(); foreach (var variable in Enum.GetValues(typeof (Action.ActionType))) - ret.Add(new ActionEntry((Action.ActionType) variable)); + ret.Add(new ActionEntry((Action.ActionType)variable)); ret.Sort(); @@ -146,7 +144,7 @@ var ret = new List<ShutdownEntry>(); foreach (var variable in Enum.GetValues(typeof (RestartOptions))) - ret.Add(new ShutdownEntry((RestartOptions) variable)); + ret.Add(new ShutdownEntry((RestartOptions)variable)); ret.Sort(); @@ -215,7 +213,7 @@ public int ActionID { - get { return (int) ActionType; } + get { return (int)ActionType; } } public ActionEntry(Action.ActionType actionType) @@ -244,7 +242,7 @@ public int ShutdownID { - get { return (int) ShutDownType; } + get { return (int)ShutDownType; } } public ShutdownEntry(RestartOptions restartOptions) Modified: trunk/plugins/MySleepTimer/MySleepTimer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MySleepTimer/MySleepTimer/Properties/AssemblyInfo.cs 2010-01-24 19:34:26 UTC (rev 3380) +++ trunk/plugins/MySleepTimer/MySleepTimer/Properties/AssemblyInfo.cs 2010-01-24 21:04:14 UTC (rev 3381) @@ -1,22 +1,20 @@ -#region Copyright (C) 2005-2009 Team MediaPortal +#region Copyright (C) 2005-2010 Team MediaPortal -// Copyright (C) 2005-2009 Team MediaPortal +// Copyright (C) 2005-2010 Team MediaPortal // http://www.team-mediaportal.com // -// This Program is free software; you can redistribute it and/or modify +// MediaPortal is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2, or (at your option) -// any later version. +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. // -// This Program is distributed in the hope that it will be useful, +// MediaPortal is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with GNU Make; see the file COPYING. If not, write to -// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -// http://www.gnu.org/copyleft/gpl.html +// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>. #endregion Modified: trunk/plugins/MySleepTimer/MySleepTimer/Settings.cs =================================================================== --- trunk/plugins/MySleepTimer/MySleepTimer/Settings.cs 2010-01-24 19:34:26 UTC (rev 3380) +++ trunk/plugins/MySleepTimer/MySleepTimer/Settings.cs 2010-01-24 21:04:14 UTC (rev 3381) @@ -1,22 +1,20 @@ -#region Copyright (C) 2005-2009 Team MediaPortal +#region Copyright (C) 2005-2010 Team MediaPortal -// Copyright (C) 2005-2009 Team MediaPortal +// Copyright (C) 2005-2010 Team MediaPortal // http://www.team-mediaportal.com // -// This Program is free software; you can redistribute it and/or modify +// MediaPortal is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2, or (at your option) -// any later version. +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. // -// This Program is distributed in the hope that it will be useful, +// MediaPortal is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with GNU Make; see the file COPYING. If not, write to -// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -// http://www.gnu.org/copyleft/gpl.html +// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>. #endregion @@ -25,7 +23,7 @@ using MediaPortal.Configuration; using MediaPortal.GUI.Library; using MediaPortal.Util; -using Log=MediaPortal.ServiceImplementations.Log; +using Log = MediaPortal.ServiceImplementations.Log; namespace MySleepTimer { @@ -98,7 +96,7 @@ { ShutdownType = (RestartOptions) - xmlReader.GetValueAsInt(PLUGIN_NAME, "#MySleepTimer.ShutdownType", (int) RestartOptions.ShutDown); + xmlReader.GetValueAsInt(PLUGIN_NAME, "#MySleepTimer.ShutdownType", (int)RestartOptions.ShutDown); ShutdownForce = xmlReader.GetValueAsBool(PLUGIN_NAME, "#MySleepTimer.ShutdownForce", false); } @@ -106,7 +104,7 @@ ActionType = (Action.ActionType) xmlReader.GetValueAsInt(PLUGIN_NAME, "#MySleepTimer.ActionType", - (int) (Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON)); + (int)(Action.ActionType.ACTION_REMOTE_YELLOW_BUTTON)); SleepBehavior = xmlReader.GetValueAsString(PLUGIN_NAME, "#MySleepTimer.SleepBehavior", "Shutdown"); SleepTimeMaxium = xmlReader.GetValueAsInt(PLUGIN_NAME, "#MySleepTimer.Maximum", 120); @@ -132,12 +130,12 @@ xmlWriter.SetValueAsBool(PLUGIN_NAME, "#MySleepTimer.UsePowerSchedulerSettings", UsePowerSchedulerSettings); if (!PowerSchedulerAvailable || !UsePowerSchedulerSettings) { - xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.ShutdownType", (int) ShutdownType); + xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.ShutdownType", (int)ShutdownType); xmlWriter.SetValueAsBool(PLUGIN_NAME, "#MySleepTimer.ShutdownForce", ShutdownForce); } // sleeptimer settings - xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.ActionType", (int) ActionType); + xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.ActionType", (int)ActionType); xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.SleepBehavior", SleepBehavior); xmlWriter.SetValue(PLUGIN_NAME, "#MySleepTimer.Maximum", SleepTimeMaxium); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |