Firefox Bookmark runner

Jan Gerrit Marker jangmarker at googlemail.com
Tue Nov 3 20:13:32 CET 2009


Am Montag 02 November 2009 14:48:27 schrieb Sebastian Kügler:
> If you've questions, you can just ask here
And asking starts...
Should the runner get the browser in the constructor or the match() method?
Some information about it:
I store the QSqlDatabase in a variable m_db because this way I check for the 
driver and load the database only in the constructor. The database is opened 
and closed after the prepare()/teardown() signal is emitted (the database will 
be copyed if the prepare() signal is emitted). If I would get the browser in 
the constructor I wouldn't have to initialise the database if it isn't needed 
but then the runner needs to be "restarted" to get the right browser 
information. If I initialise it in the match() method I would need m_db 
because the database file would only be used in the match() method.

Thanks for comments,
-- 
Jan Gerrit Marker (jangmarker)


More information about the Plasma-devel mailing list