[Qgis-developer] [QGIS Commit] SVN [godofredo] r7284 - branches/ogr-plugin-branch/src/app

godofredo contreras frdcn at hotmail.com
Thu Nov 8 10:14:42 EST 2007


           The idea to keep qgsdatabaseconnectionbase and qgsconnectionmanager is to reuse
this classes in the refactoring of spit and for the ogr plugin(layer cretion and utilities), If we move them to app 
how could we call that classes?

           Also I was thinking in using a similar aproach to QgsVectorLayerin QgsDatabaseConnectionBase but
checking the code I saw that QgsProviderRegistry::instance() gives access just to provider class not to other
classes compiled in provider(assuming that we move qgspostgresdatabaseconnection and qgsogrdatabaseconnection to their respective
provider), do you know if there are a form to access other classes in the provider in runtime?

Regards
Godofredo Contreras



> Date: Wed, 7 Nov 2007 22:39:53 +0100
> From: wonder.sk at gmail.com
> To: frdcn at hotmail.com
> Subject: Re: [Qgis-developer] [QGIS Commit] SVN [godofredo] r7284 - branches/ogr-plugin-branch/src/app
> CC: qgis-developer at lists.qgis.org
> 
> Hi Godofredo,
> 
> On 11/7/07, godofredo contreras <frdcn at hotmail.com> wrote:
> >
> > Hi Martin:
> >
> > I´m working in fixing the dependency introduced by the files in dbutilities
> > of core
> > what do you think about this organization of files in dbutilities:
> >
> > qgsurimanager  will be deprecated and qgsdatasourceuri will be used
> > qgsconnectionmanager has no extra dependencies and could be kept in
> > core/dbutilities
> > qgsconnection has no extra dependencies and could be kept in
> > core/dbutilities
> > qgsdatabaseconnectionbase is used as an interface for
> > (qgspostgresdatabaseconnection and qgsogrdatabaseconnection) has no extra
> >                        dependencies and could be kept in core/dbutilities
> 
> OK, looks good.
> 
> > qgsgeomcolumntypethread and qgspostgresdatabaseconnection are postgres
> > specific (not really sure) if they are moved to providers
> >                        then I need to add a dependency in app to postgres
> > provider
> > qgsogrdatabaseconnection is ogr specific, same case that the above one
> 
> postgres stuff must really go away from core lib. Ogr stuff doesn't
> matter as we depend on it already.
> In fact, in my opinion I would prefer to put this all to src/app. Once
> stabilised completely (API-wise) we can decide to put it to core
> library. Or is there any reason why it must be in core library?
> When postgres support is enabled, qgis app also links to postgres
> library, so you could eventually leave QgsPostgresDatabaseConnection
> there (with #ifdefs to ensure that it won't be compiled with postgres
> support off).
> 
> However these all problems say that our design of providers should be revisited.
> 
> Martin

_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20071108/8583c075/attachment.html


More information about the Qgis-developer mailing list