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 #ifndef _DBAUI_ADASTAT_HXX_ 24 #define _DBAUI_ADASTAT_HXX_ 25 26 #ifndef _SV_FIXED_HXX 27 #include <vcl/fixed.hxx> 28 #endif 29 #ifndef _SV_BUTTON_HXX 30 #include <vcl/button.hxx> 31 #endif 32 #ifndef _SV_DIALOG_HXX 33 #include <vcl/dialog.hxx> 34 #endif 35 #ifndef DBAUI_FIELDCONTROLS_HXX 36 #include "FieldControls.hxx" 37 #endif 38 #ifndef _PRGSBAR_HXX 39 #include <svtools/prgsbar.hxx> 40 #endif 41 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_ 42 #include <com/sun/star/sdbc/XConnection.hpp> 43 #endif 44 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ 45 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 46 #endif 47 48 49 namespace dbaui 50 { 51 //======================================================================== 52 // shows some statistics 53 //======================================================================== 54 class OAdabasStatistics : public ModalDialog 55 { 56 protected: 57 58 FixedLine m_FL_FILES; 59 FixedText m_FT_SYSDEVSPACE; 60 OPropEditCtrl m_ET_SYSDEVSPACE; 61 FixedText m_FT_TRANSACTIONLOG; 62 OPropEditCtrl m_ET_TRANSACTIONLOG; 63 FixedText m_FT_DATADEVSPACE; 64 OPropListBoxCtrl m_LB_DATADEVS; 65 FixedLine m_FL_SIZES; 66 FixedText m_FT_SIZE; 67 OPropEditCtrl m_ET_SIZE; 68 FixedText m_FT_FREESIZE; 69 OPropEditCtrl m_ET_FREESIZE; 70 FixedText m_FT_MEMORYUSING; 71 OPropNumericEditCtrl m_ET_MEMORYUSING; 72 73 OKButton m_PB_OK; 74 75 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > 76 m_xConnection; /// valid as long as the page is active 77 sal_Bool m_bErrorShown; // true when we shown already the error 78 79 // check if the given table is accessable by the connected user 80 sal_Bool checkSystemTable(const ::rtl::OUString& _rsSystemTable, ::rtl::OUString& _rsSchemaName ); 81 void showError(); 82 83 public: 84 OAdabasStatistics( Window* pParent, 85 const ::rtl::OUString& _rUser, 86 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xCurrentConnection, 87 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xFactory); 88 ~OAdabasStatistics(); 89 90 }; 91 } 92 #endif //_DBAUI_ADASTAT_HXX_ 93 94 95