1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _CONNECTIVITY_FILE_CATALOG_HXX_
25 #define _CONNECTIVITY_FILE_CATALOG_HXX_
26 
27 #include "connectivity/sdbcx/VCatalog.hxx"
28 
29 #include "file/filedllapi.hxx"
30 
31 namespace connectivity
32 {
33 	namespace file
34 	{
35 		class OConnection;
36 		class OOO_DLLPUBLIC_FILE SAL_NO_VTABLE OFileCatalog :
37             public connectivity::sdbcx::OCatalog
38 		{
39 		protected:
40 			OConnection*										m_pConnection;
41 
42 			/** builds the name which should be used to access the object later on in the collection.
43 				Will only be called in fillNames.
44 				@param	_xRow
45 					The current row from the resultset given to fillNames.
46 			*/
47 			virtual ::rtl::OUString buildName(	const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >& _xRow);
48 
49 		public:
50 			virtual void refreshTables();
51 			virtual void refreshViews();
52 			virtual void refreshGroups();
53 			virtual void refreshUsers();
54 
55 		public:
56 			OFileCatalog(OConnection* _pCon);
getConnection()57 			OConnection*	getConnection() { return m_pConnection; }
58 
59 			virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
60 			// ::cppu::OComponentHelper
61 			virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
62 			virtual void SAL_CALL disposing(void);
63 		};
64 	}
65 }
66 #endif // _CONNECTIVITY_FILE_CATALOG_HXX_
67 
68