<br><br><div><span class="gmail_quote">2008/1/3, Lukas Appelhans <<a href="mailto:l.appelhans@gmx.de">l.appelhans@gmx.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Donnerstag, 3. Januar 2008 07:13:02 schrieb joel vennin:<br>> Hi,<br>><br>> I've question concerning general settings for a plugin. In fact, through<br>> the transfer class we can override the save definition to save settings for
<br>> a specific transfer. To save global settings we use the KConfig system.<br>><br>> However, I need when my plugin is loaded (transfer factory initialization)<br>> to initialize some class (server settings) with the global config (present
<br>> in the KConfig singleton). So, I can do it through the transferfactory<br>> constructor to initialize my class. However, if one change the global<br>> settings of the plugin, I'm not able to be notified dynamically by this
<br>> change.<br>><br>> So, for now I've only one solution, for me it is just a hack but not the<br>> best solution (I think). What I do for now, I add some signal/slot between<br>> the ui settings of the plugin and my class (server settings) to keep
<br>> informed by settings modification.<br>Mmh, perhaps we can add a function for the Transfer-class, which is called<br>every Settings-change. If that's a good sollution, I will prepare a patch and<br>commit it, when trunk is reopened...
</blockquote><div><br>Thank you for your reply,<br><br>Ok but (I know it may be specific to my self, but I don't think so). In fact, in my case we define one or severals servers in the settings. A server can handle a set of connection. This set of connection must be shared between all NntpTransfer instance. So, if one decide to change the amount of connections handled by a server through the settings, my NNTPServerManager(which is a snigleton) need to be notified by the fact that a server has changed his amount of connection.
<br>So it's why in my case I suggest that the TransferFactory can be also notified by settings changes. If it is not the case, all the NNTPTransfer will update the NNTPServerManager.<br><br>I wish you understand my point of view,
<br><br>Joel<br><br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Lukas<br><br>_______________________________________________
<br>Kget mailing list<br><a href="mailto:Kget@kde.org">Kget@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kget">https://mail.kde.org/mailman/listinfo/kget</a><br></blockquote></div><br>