xref: /trunk/main/dbaccess/source/ui/dlg/AdabasStat.hxx (revision 07a3d7f1)
12e2212a7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
32e2212a7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
42e2212a7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
52e2212a7SAndrew Rist  * distributed with this work for additional information
62e2212a7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
72e2212a7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
82e2212a7SAndrew Rist  * "License"); you may not use this file except in compliance
92e2212a7SAndrew Rist  * with the License.  You may obtain a copy of the License at
102e2212a7SAndrew Rist  *
112e2212a7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
122e2212a7SAndrew Rist  *
132e2212a7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
142e2212a7SAndrew Rist  * software distributed under the License is distributed on an
152e2212a7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
162e2212a7SAndrew Rist  * KIND, either express or implied.  See the License for the
172e2212a7SAndrew Rist  * specific language governing permissions and limitations
182e2212a7SAndrew Rist  * under the License.
192e2212a7SAndrew Rist  *
202e2212a7SAndrew Rist  *************************************************************/
212e2212a7SAndrew Rist 
222e2212a7SAndrew Rist 
23cdf0e10cSrcweir #ifndef _DBAUI_ADASTAT_HXX_
24cdf0e10cSrcweir #define _DBAUI_ADASTAT_HXX_
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #ifndef _SV_FIXED_HXX
27cdf0e10cSrcweir #include <vcl/fixed.hxx>
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir #ifndef _SV_BUTTON_HXX
30cdf0e10cSrcweir #include <vcl/button.hxx>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #ifndef _SV_DIALOG_HXX
33cdf0e10cSrcweir #include <vcl/dialog.hxx>
34cdf0e10cSrcweir #endif
35cdf0e10cSrcweir #ifndef DBAUI_FIELDCONTROLS_HXX
36cdf0e10cSrcweir #include "FieldControls.hxx"
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir #ifndef _PRGSBAR_HXX
39cdf0e10cSrcweir #include <svtools/prgsbar.hxx>
40cdf0e10cSrcweir #endif
41cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
42cdf0e10cSrcweir #include <com/sun/star/sdbc/XConnection.hpp>
43cdf0e10cSrcweir #endif
44cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
45cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
46cdf0e10cSrcweir #endif
47cdf0e10cSrcweir 
48cdf0e10cSrcweir 
49cdf0e10cSrcweir namespace dbaui
50cdf0e10cSrcweir {
51cdf0e10cSrcweir 	//========================================================================
52cdf0e10cSrcweir 	// shows some statistics
53cdf0e10cSrcweir 	//========================================================================
54cdf0e10cSrcweir 	class OAdabasStatistics : public ModalDialog
55cdf0e10cSrcweir 	{
56cdf0e10cSrcweir 	protected:
57cdf0e10cSrcweir 
58cdf0e10cSrcweir         FixedLine               m_FL_FILES;
59cdf0e10cSrcweir 		FixedText				m_FT_SYSDEVSPACE;
60cdf0e10cSrcweir 		OPropEditCtrl			m_ET_SYSDEVSPACE;
61cdf0e10cSrcweir 		FixedText				m_FT_TRANSACTIONLOG;
62cdf0e10cSrcweir 		OPropEditCtrl			m_ET_TRANSACTIONLOG;
63cdf0e10cSrcweir 		FixedText				m_FT_DATADEVSPACE;
64cdf0e10cSrcweir 		OPropListBoxCtrl		m_LB_DATADEVS;
65cdf0e10cSrcweir         FixedLine               m_FL_SIZES;
66cdf0e10cSrcweir 		FixedText				m_FT_SIZE;
67cdf0e10cSrcweir 		OPropEditCtrl			m_ET_SIZE;
68cdf0e10cSrcweir 		FixedText				m_FT_FREESIZE;
69cdf0e10cSrcweir 		OPropEditCtrl			m_ET_FREESIZE;
70cdf0e10cSrcweir 		FixedText				m_FT_MEMORYUSING;
71cdf0e10cSrcweir 		OPropNumericEditCtrl	m_ET_MEMORYUSING;
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 		OKButton				m_PB_OK;
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 		::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >
76cdf0e10cSrcweir 								m_xConnection;	/// valid as long as the page is active
77cdf0e10cSrcweir 		sal_Bool				m_bErrorShown; // true when we shown already the error
78cdf0e10cSrcweir 
79*07a3d7f1SPedro Giffuni 		// check if the given table is accessible by the connected user
80cdf0e10cSrcweir 		sal_Bool checkSystemTable(const ::rtl::OUString& _rsSystemTable, ::rtl::OUString& _rsSchemaName );
81cdf0e10cSrcweir 		void showError();
82cdf0e10cSrcweir 
83cdf0e10cSrcweir 	public:
84cdf0e10cSrcweir 		OAdabasStatistics(	Window* pParent,
85cdf0e10cSrcweir 							const ::rtl::OUString& _rUser,
86cdf0e10cSrcweir 							const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xCurrentConnection,
87cdf0e10cSrcweir 							const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xFactory);
88cdf0e10cSrcweir 		~OAdabasStatistics();
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	};
91cdf0e10cSrcweir }
92cdf0e10cSrcweir #endif //_DBAUI_ADASTAT_HXX_
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 
95