<div dir="ltr"><br><br><div class="gmail_quote">2008/7/22 Aaron J. Seigo &lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tuesday 22 July 2008, Joe Burns wrote:<br>
&gt; As it is right now plasmagik requires a .packagestructure file (there is<br>
&gt; one in the repo for testing purposes) as an argument. If none is provided<br>
&gt; then the generator app is launched.<br>
<br>
</div>Plasma::PackageStructure::load is what should really be used here. perhaps we<br>
should add absolute file path support to PackageStructure, because then it<br>
would Just Work(tm) with the assumptions in your application as well.</blockquote><div><br>I can add that if you like. packageFormat would just be an absolute file path, which shouldn&#39;t get any results from any of the other attempts to find a structure. So then Plasma::PackageStructure::load would load the path and register it in PackageStructurePrivate::structures. Would this be the Right Way of doing it or did you have something else in mind?<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
also note that QString::toStdString isn&#39;t guaranteed to be there; you should<br>
probably be using kDebug there if it&#39;s debug output, or toLocal8Bit if you<br>
really do need to use c++ iostreams.</blockquote><div><br>This was left over from a failed attempt to get plasmagik to load the PackageStructure generated using the Generator app automatically. Maybe the Generator app should register the saved packagestructure in PackageStructurePrivate::structures as well and then Plasma::PackageStructure::load can be called.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
hopefully i&#39;ll have more time to look over your project in the next week or so<br>
=)</blockquote><div><br>ok cool thanks =) <br></div><br>Joe Burns<br></div><br></div>