22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/uno/XComponentContext.hpp>
41 struct ODataSourceContextImpl;
47 std::unique_ptr<ODataSourceContextImpl>
m_pImpl;
51 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
102 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
130 bool rename(
const OUString& _rName );
164 bool hasTable(
const OUString& _rTableName )
const;
167 css::uno::Reference< css::beans::XPropertySet >
getDataSource()
const;
174 const css::uno::Reference< css::beans::XPropertySet >& _rxDS
175 ,
const OUString& _sName
a non-UNO wrapper for the data source context
ODataSource createNewEvolutionGroupwise(const OUString &_rName)
creates a new Evolution GROUPWISE data source
ODataSource createNewEvolutionLdap(const OUString &_rName)
creates a new Evolution LDAP data source
ODataSourceContext(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
ODataSource createNewKab(const OUString &_rName)
creates a new KDE address book data source
ODataSource createNewMacab(const OUString &_rName)
creates a new macOS address book data source
std::unique_ptr< ODataSourceContextImpl > m_pImpl
void disambiguate(OUString &_rDataSourceName)
disambiguates the given name by appending successive numbers
void getDataSourceNames(StringBag &_rNames) const
retrieves the names of all data sources
ODataSource createNewOther(const OUString &_rName)
creates a new Other data source; tdf117101: Spreadsheet by default
ODataSource createNewEvolution(const OUString &_rName)
creates a new Evolution local data source
ODataSource createNewThunderbird(const OUString &_rName)
creates a new Thunderbird data source
a non-UNO wrapper for a data source
void store(const AddressSettings &rSettings)
stores the database file
bool connect(weld::Window *_pMessageParent)
connects to the data source represented by this object
void remove()
removes the data source represented by the object from the data source context
bool isValid() const
checks whether or not the object represents a valid data source
void setDataSource(const css::uno::Reference< css::beans::XPropertySet > &_rxDS, const OUString &_sName)
set a new data source.
void disconnect()
disconnects from the data source (i.e. disposes the UNO connection hold internally)
std::unique_ptr< ODataSourceImpl > m_pImpl
bool rename(const OUString &_rName)
renames the data source
const StringBag & getTableNames() const
retrieves the tables names from the connection
ODataSource(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
constructs an object which is initially invalid
bool hasTable(const OUString &_rTableName) const
determines whether a given table exists
void registerDataSource(const OUString &_sRegisteredDataSourceName)
register the data source under the given name in the configuration
ODataSource & operator=(const ODataSource &_rSource)
copy assignment
css::uno::Reference< css::beans::XPropertySet > getDataSource() const
return the internal data source object
OUString getName() const
returns the name of the data source
bool isConnected() const
returns <TRUE> if the object has a valid connection, obtained from its data source
std::set< OUString > StringBag
class SAL_NO_VTABLE XPropertySet