Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / mozab / mozillasrc / MDatabaseMetaDataHelper.hxx
blob1cdb1bd588b972ab5abe8b7b454aff3c50556b01
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MOZAB_MOZILLASRC_MDATABASEMETADATAHELPER_HXX
21 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MOZAB_MOZILLASRC_MDATABASEMETADATAHELPER_HXX
23 #include "MErrorResource.hxx"
24 #include <comphelper/proparrhlp.hxx>
25 #include <comphelper/propertycontainer.hxx>
26 #include "FDatabaseMetaDataResultSet.hxx"
28 #include <MConnection.hxx>
29 #include <com/sun/star/uno/Sequence.hxx>
30 #include <com/sun/star/mozilla/MozillaProductType.hpp>
32 namespace connectivity
34 namespace mozab
36 class MDatabaseMetaDataHelper
38 private:
39 sal_Bool m_bProfileExists ;
40 ::std::vector< OUString > m_aTableNames;
41 ::std::vector< OUString > m_aTableTypes;
42 ::com::sun::star::mozilla::MozillaProductType m_ProductType;
43 OUString m_ProfileName;
44 ErrorDescriptor m_aError;
46 public:
47 MDatabaseMetaDataHelper();
48 ~MDatabaseMetaDataHelper();
51 sal_Bool getTableStrings( OConnection* _pCon,
52 ::std::vector< OUString >& _rStrings,
53 ::std::vector< OUString >& _rTypes);
55 sal_Bool getTables( OConnection* _pCon,
56 const OUString& tableNamePattern,
57 const ::com::sun::star::uno::Sequence< OUString >& types,
58 ODatabaseMetaDataResultSet::ORows& _rRows);
59 sal_Bool testLDAPConnection( OConnection* _pCon );
60 sal_Bool NewAddressBook( OConnection* _pCon,const OUString & aTableName);
62 inline const ErrorDescriptor& getError() const { return m_aError; }
67 #endif // INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MOZAB_MOZILLASRC_MDATABASEMETADATAHELPER_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */