From: <nor...@us...> - 2007-07-14 10:39:14
|
Revision: 691 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=691&view=rev Author: northern_sky Date: 2007-07-14 03:39:11 -0700 (Sat, 14 Jul 2007) Log Message: ----------- some residue code removed Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -89,7 +89,6 @@ string validExtensions; bool importValidImagesOnly; - int contentID; string systemDefault; string launchErrorMsg; @@ -299,11 +298,6 @@ set { importValidImagesOnly = value; } } - public int ContentID - { - get { return contentID; } - set { contentID = value; } - } public string SystemDefault { get { return systemDefault; } @@ -369,7 +363,6 @@ appPosition = 0; importValidImagesOnly = false; enableGUIRefresh = false; - contentID = 100; systemDefault = ""; waitForExit = true; filesAreLoaded = false; @@ -806,8 +799,6 @@ string sql = ""; - if (ContentID <= 0) - ContentID = 100; try { AppID = GetNewAppID(); // important to avoid subsequent inserts! @@ -835,7 +826,6 @@ enabled, enableGUIRefresh, GUIRefreshPossible, - contentID, systemDefault, waitForExit, preLaunch, @@ -863,7 +853,6 @@ '"+ ProgramUtils.BooleanToStr(Enabled)+@"', '"+ ProgramUtils.BooleanToStr(EnableGUIRefresh) +@"', '" + ProgramUtils.BooleanToStr(GUIRefreshPossible)+@"', - '" + ContentID +@"', '"+ ProgramUtils.Encode(SystemDefault)+@"', '"+ ProgramUtils.BooleanToStr(WaitForExit) +@"', '"+ ProgramUtils.Encode(PreLaunch)+@"', @@ -886,8 +875,6 @@ string sql = ""; - if (ContentID <= 0) - ContentID = 100; try { sql = String.Format( @@ -913,7 +900,6 @@ fatherNodeId = '" + FatherID + @"', enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + @"', GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) +@"', - contentID = '" + ContentID + @"', systemDefault = '" + ProgramUtils.Encode(SystemDefault) + @"', waitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + @"', preLaunch = '" + ProgramUtils.Encode(PreLaunch) + @"', @@ -1089,7 +1075,7 @@ this.PreLaunch = sourceApp.PreLaunch; this.PostLaunch = sourceApp.PostLaunch; this.SystemDefault = sourceApp.SystemDefault; - this.ContentID = sourceApp.ContentID; + } #region imagedirectory stuff Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -76,7 +76,6 @@ newApp.ImportValidImagesOnly = ProgramUtils.GetBool(results, recordIndex, "importvalidimagesonly"); newApp.Position = ProgramUtils.GetIntDef(results, recordIndex, "iposition", 0); newApp.EnableGUIRefresh = ProgramUtils.GetBool(results, recordIndex, "enableGUIRefresh"); - newApp.ContentID = ProgramUtils.GetIntDef(results, recordIndex, "contentID", 100); newApp.SystemDefault = ProgramUtils.Get(results, recordIndex, "systemdefault"); newApp.WaitForExit = ProgramUtils.GetBool(results, recordIndex, "waitforexit"); newApp.PreLaunch = ProgramUtils.Get(results, recordIndex, "preLaunch"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -130,7 +130,6 @@ iposition INTEGER, enableGUIRefresh TEXT, GUIRefreshPossible TEXT, - contentID INTEGER, systemdefault TEXT, waitForExit TEXT, preLaunch TEXT, Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -119,20 +119,6 @@ gameInfoURL = string.Empty; } - private string GetYearManu() - { - string result = ""; - if (year <= 0) - { - result = manufacturer; - } - else - { - result = manufacturer + " [" + year + "]"; - } - return (result.Trim()); - } - #region Properties public int FileID @@ -429,13 +415,6 @@ set { gameInfoURL = value; } } - public string YearManu - { - get - { - return GetYearManu(); - } - } public List<FileItemInfo> FileInfoList { @@ -474,59 +453,6 @@ return nRes; } - public string ExtractFileName() - { - if (Filename == "") - { - return ""; - } - string strRes = ""; - string strSep = ""; - string[] parts = Filename.Split(' '); - if (Filename.StartsWith("\"")) - { - // filename is quoted => traverse array and concetenate strings until two quotes are found - int nNbOfQuotes = 0; - for (int i = 0; i < parts.Length; i++) - { - if (nNbOfQuotes <= 2) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - if (parts[i].IndexOf("\"") >= 0) - { - nNbOfQuotes = nNbOfQuotes + CountQuotes(parts[i]); - if (nNbOfQuotes == 2) - { - break; - } - } - } - } - else - { - strRes = parts[0]; - } - return strRes; - - } - - - public string ExtractDirectory(string curFilename) - { - string strRes = ""; - string strSep = ""; - string[] parts = curFilename.Split('\\'); - for (int i = 0; i < parts.Length - 1; i++) - { - strRes = strRes + strSep + parts[i]; - strSep = "\\"; - } - strRes = strRes.TrimStart('\"'); - return strRes; - } - public string ExtractImageExtension() { string strRes = ""; @@ -549,40 +475,6 @@ } return strRes; } - - public string ExtractArguments() - { - string strRes = ""; - string strSep = ""; - string[] parts = Filename.Split(' '); - if (Filename.StartsWith("\"")) - { - // filename is quoted => traverse array and concetenate strings after two quotes have been found - int nNbOfQuotes = 0; - for (int i = 0; i < parts.Length; i++) - { - if (nNbOfQuotes >= 2) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - if (parts[i].IndexOf("\"") >= 0) - { - nNbOfQuotes = nNbOfQuotes + CountQuotes(parts[i]); - } - } - } - else - { - for (int i = 1; i < parts.Length; i++) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - } - return strRes; - } - public void SetProperties() { /* string strThumb = MediaPortal.Util.Utils.GetLargeCoverArtName(Thumbs.MovieTitle, Title);*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |