<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The idea to keep qgsdatabaseconnectionbase and qgsconnectionmanager is to reuse<br>this classes in the refactoring of spit and for the ogr plugin(layer cretion and utilities), If we move them to app <br>how could we call that classes?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Also I was thinking in using a similar aproach to QgsVectorLayerin QgsDatabaseConnectionBase but<br>checking the code I saw that QgsProviderRegistry::instance() gives access just to provider class not to other<br>classes compiled in provider(assuming that we move qgspostgresdatabaseconnection and qgsogrdatabaseconnection to their respective<br>provider), do you know if there are a form to access other classes in the provider in runtime?<br><br>Regards<br>Godofredo Contreras<br></div><br><br><br><hr id="stopSpelling">&gt; Date: Wed, 7 Nov 2007 22:39:53 +0100<br>&gt; From: wonder.sk@gmail.com<br>&gt; To: frdcn@hotmail.com<br>&gt; Subject: Re: [Qgis-developer] [QGIS Commit] SVN [godofredo] r7284 - branches/ogr-plugin-branch/src/app<br>&gt; CC: qgis-developer@lists.qgis.org<br>&gt; <br>&gt; Hi Godofredo,<br>&gt; <br>&gt; On 11/7/07, godofredo contreras &lt;frdcn@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi Martin:<br>&gt; &gt;<br>&gt; &gt; I´m working in fixing the dependency introduced by the files in dbutilities<br>&gt; &gt; of core<br>&gt; &gt; what do you think about this organization of files in dbutilities:<br>&gt; &gt;<br>&gt; &gt; qgsurimanager  will be deprecated and qgsdatasourceuri will be used<br>&gt; &gt; qgsconnectionmanager has no extra dependencies and could be kept in<br>&gt; &gt; core/dbutilities<br>&gt; &gt; qgsconnection has no extra dependencies and could be kept in<br>&gt; &gt; core/dbutilities<br>&gt; &gt; qgsdatabaseconnectionbase is used as an interface for<br>&gt; &gt; (qgspostgresdatabaseconnection and qgsogrdatabaseconnection) has no extra<br>&gt; &gt;                        dependencies and could be kept in core/dbutilities<br>&gt; <br>&gt; OK, looks good.<br>&gt; <br>&gt; &gt; qgsgeomcolumntypethread and qgspostgresdatabaseconnection are postgres<br>&gt; &gt; specific (not really sure) if they are moved to providers<br>&gt; &gt;                        then I need to add a dependency in app to postgres<br>&gt; &gt; provider<br>&gt; &gt; qgsogrdatabaseconnection is ogr specific, same case that the above one<br>&gt; <br>&gt; postgres stuff must really go away from core lib. Ogr stuff doesn't<br>&gt; matter as we depend on it already.<br>&gt; In fact, in my opinion I would prefer to put this all to src/app. Once<br>&gt; stabilised completely (API-wise) we can decide to put it to core<br>&gt; library. Or is there any reason why it must be in core library?<br>&gt; When postgres support is enabled, qgis app also links to postgres<br>&gt; library, so you could eventually leave QgsPostgresDatabaseConnection<br>&gt; there (with #ifdefs to ensure that it won't be compiled with postgres<br>&gt; support off).<br>&gt; <br>&gt; However these all problems say that our design of providers should be revisited.<br>&gt; <br>&gt; Martin<br><br /><hr />Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! <a href='http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews' target='_new'>Try now!</a></body>
</html>