Hi,
The info you need is available through the connection object:
FdoPtr<FdoIConnectionInfo> connInfo = mConnection->GetConnectionInfo();
Where FdoIConnectionInfo has this method:
/// \brief
/// Returns the provider type. A provider can be a file-based, database-based or
/// web-based provider. The valid values the function may return are defined in
/// the enumeration FdoProviderDatastoreType. The enumeration includes the following
/// values: FdoProviderDatastoreType_Unknown, FdoProviderDatastoreType_File,
/// FdoProviderDatastoreType_DatabaseServer, FdoProviderDatastoreType_WebServer.
///
/// \return
/// Returns the provider data store type.
///
FDO_API virtual FdoProviderDatastoreType GetProviderDatastoreType() = 0;
Then with this you can dig further for detailed info:
FdoPtr<FdoIConnectionPropertyDictionary> connProps = connInfo->GetConnectionProperties();
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Crispin_at_1Spatial
Sent: Thursday, February 26, 2009 10:37 AM
To:
[hidden email]
Subject: [fdo-users] Provider Properties Details Wish
Hi,
The FDO provider classes have methods that enable the auto generation of the
user interfaces that create a FDO connection. However there is some
information the providers should provide but don’t / could.
For instance, it is not possible to find out if a string parameter
represents a file name, or a password. So the auto generated user interface
code cannot instantiate the file open panel, or anonymize a password field.
I assume this seemingly simple change would require a fairly major RFC and
support by all the providers.
If there are alternative workarounds to this I would be glad to hear...
--
View this message in context:
http://n2.nabble.com/Provider-Properties-Details-Wish-tp2390311p2390311.htmlSent from the FDO Users mailing list archive at Nabble.com.
_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users_______________________________________________
fdo-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-users