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
MediaPortal 1 Plugins
XMMImporter
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="chefkoch" data-source="post: 89712" data-attributes="member: 10438"><p>Hi Jesse</p><p></p><p>At first: Thank you for your answers and big thx that you want to fix the errors</p><p></p><p>So i want to make it as easy for you as i can. From now i will post always the db when an error occurs.</p><p></p><ol> <li data-xf-list-type="ol">Have yet another question, I have to put the files in the following dirs, right?<br /> System.Data.SQLite.DLL --> ..\Program Files\Team MediaPortal\MediaPortal<br /> XMMImporter.dll --> ..\Program Files\Team MediaPortal\MediaPortal\plugins\windows</li> <li data-xf-list-type="ol">Is the plugin window plugin? it has not to be one, has it? I think it could be a great process plugin.</li> <li data-xf-list-type="ol">I would prefer saving the settings in MediaPortal.xml. (easy and fast)<br /> [CODE] <section name="XMMimporter"><br /> <entry name="XMMdb">MMMMM</entry><br /> <entry name="XMMpath_cover">MMMMM</entry><br /> <entry name="....">....</entry><br /> </section>[/CODE]<br /> FritzBox Monitor uses this code to load the settings, I don't know exactly you variables now, sorry hope that this even will help.<br /> [CODE] private void LoadSettings()<br /> {<br /> using (Settings xmlreader = new Settings("MediaPortal.xml"))<br /> {<br /> CallClass.m_strFritzBox = xmlreader.GetValueAsString("MyCalls", "FritzBox", "Fritz.Box");<br /> CallClass.m_strPort = xmlreader.GetValueAsString("MyCalls", "Port", "1012");<br /> m_stopMedia = xmlreader.GetValueAsBool("MyCalls", "StopMedia", true);<br /> m_Timeout = xmlreader.GetValueAsInt ("MyCalls", "Timeout", -1);<br /> string strNumbers = xmlreader.GetValueAsString("MyCalls", "Numbers", "");<br /> CallClass.m_Numbers = strNumbers.Split(';');<br /> }<br /> }[/CODE]<br /> [CODE]<br /> bool SaveConfigFile()<br /> {<br /> using (Settings xmlwriter = new Settings("MediaPortal.xml"))<br /> {<br /> string strNumbers = "";<br /> xmlwriter.SetValue("MyCalls", "FritzBox", txtFritzBox.Text);<br /> xmlwriter.SetValue("MyCalls", "Port", txtPort.Text);<br /> for (int i = 0; i < lstNumbers.Items.Count; i++)<br /> {<br /> strNumbers += (lstNumbers.Items[i].ToString() + ";");<br /> }<br /> xmlwriter.SetValue("MyCalls", "Numbers", strNumbers);<br /> xmlwriter.SetValueAsBool("MyCalls", "StopMedia", chkStopMedia.Checked);<br /> if (chkTimeout.Checked)<br /> {<br /> xmlwriter.SetValue("MyCalls", "Timeout", upDown.Value.ToString());<br /> }<br /> else<br /> {<br /> xmlwriter.SetValue("MyCalls", "Timeout", "-1");<br /> }<br /> return true;<br /> }<br /> }[/CODE]</li> <li data-xf-list-type="ol">My DB is attached. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> EDIT: sorry i had problems to upload it.</li> </ol><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> </p><p></p><p>Best Regards</p><p>chefkoch</p></blockquote><p></p>
[QUOTE="chefkoch, post: 89712, member: 10438"] Hi Jesse At first: Thank you for your answers and big thx that you want to fix the errors So i want to make it as easy for you as i can. From now i will post always the db when an error occurs. [list=1] [*]Have yet another question, I have to put the files in the following dirs, right? System.Data.SQLite.DLL --> ..\Program Files\Team MediaPortal\MediaPortal XMMImporter.dll --> ..\Program Files\Team MediaPortal\MediaPortal\plugins\windows [*]Is the plugin window plugin? it has not to be one, has it? I think it could be a great process plugin. [*]I would prefer saving the settings in MediaPortal.xml. (easy and fast) [CODE] <section name="XMMimporter"> <entry name="XMMdb">MMMMM</entry> <entry name="XMMpath_cover">MMMMM</entry> <entry name="....">....</entry> </section>[/CODE] FritzBox Monitor uses this code to load the settings, I don't know exactly you variables now, sorry hope that this even will help. [CODE] private void LoadSettings() { using (Settings xmlreader = new Settings("MediaPortal.xml")) { CallClass.m_strFritzBox = xmlreader.GetValueAsString("MyCalls", "FritzBox", "Fritz.Box"); CallClass.m_strPort = xmlreader.GetValueAsString("MyCalls", "Port", "1012"); m_stopMedia = xmlreader.GetValueAsBool("MyCalls", "StopMedia", true); m_Timeout = xmlreader.GetValueAsInt ("MyCalls", "Timeout", -1); string strNumbers = xmlreader.GetValueAsString("MyCalls", "Numbers", ""); CallClass.m_Numbers = strNumbers.Split(';'); } }[/CODE] [CODE] bool SaveConfigFile() { using (Settings xmlwriter = new Settings("MediaPortal.xml")) { string strNumbers = ""; xmlwriter.SetValue("MyCalls", "FritzBox", txtFritzBox.Text); xmlwriter.SetValue("MyCalls", "Port", txtPort.Text); for (int i = 0; i < lstNumbers.Items.Count; i++) { strNumbers += (lstNumbers.Items[i].ToString() + ";"); } xmlwriter.SetValue("MyCalls", "Numbers", strNumbers); xmlwriter.SetValueAsBool("MyCalls", "StopMedia", chkStopMedia.Checked); if (chkTimeout.Checked) { xmlwriter.SetValue("MyCalls", "Timeout", upDown.Value.ToString()); } else { xmlwriter.SetValue("MyCalls", "Timeout", "-1"); } return true; } }[/CODE] [*]My DB is attached. :( EDIT: sorry i had problems to upload it. [/list] :thx: again ;) Best Regards chefkoch [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
XMMImporter
Contact us
RSS
Top
Bottom