<div dir="ltr"><br><br><div class="gmail_quote">2008/7/22 Aaron J. Seigo <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>>:<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>
> As it is right now plasmagik requires a .packagestructure file (there is<br>
> one in the repo for testing purposes) as an argument. If none is provided<br>
> 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'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't guaranteed to be there; you should<br>
probably be using kDebug there if it'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>
</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'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>