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 #if ! defined INCLUDED_DP_GUI_H 25 #define INCLUDED_DP_GUI_H 26 27 #include "dp_gui_updatedata.hxx" 28 #include "dp_misc.h" 29 #include "dp_gui.hrc" 30 #include "rtl/ref.hxx" 31 #include "rtl/instance.hxx" 32 #include "osl/thread.hxx" 33 #include "cppuhelper/implbase2.hxx" 34 #include "vcl/svapp.hxx" 35 #include "vcl/dialog.hxx" 36 #include "vcl/button.hxx" 37 #include "vcl/fixed.hxx" 38 #include "salhelper/simplereferenceobject.hxx" 39 #include "svtools/svtabbx.hxx" 40 #include "svtools/headbar.hxx" 41 #include "com/sun/star/ucb/XContentEventListener.hpp" 42 #include "osl/mutex.hxx" 43 #include <list> 44 #include <memory> 45 #include <queue> 46 47 namespace com { namespace sun { namespace star { 48 namespace container { 49 class XNameAccess; 50 } 51 namespace frame { 52 class XDesktop; 53 } 54 namespace awt { 55 class XWindow; 56 } 57 namespace uno { 58 class XComponentContext; 59 } 60 namespace deployment { 61 class XPackageManagerFactory; 62 } 63 } } } 64 65 namespace svt { 66 class FixedHyperlink; 67 } 68 69 namespace dp_gui { 70 71 enum PackageState { REGISTERED, NOT_REGISTERED, AMBIGUOUS, NOT_AVAILABLE }; 72 73 //============================================================================== 74 75 class SelectedPackage: public salhelper::SimpleReferenceObject { 76 public: SelectedPackage()77 SelectedPackage() {} SelectedPackage(const::com::sun::star::uno::Reference<::com::sun::star::deployment::XPackage> & xPackage)78 SelectedPackage( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> &xPackage) 79 : m_xPackage( xPackage ) 80 {} 81 82 virtual ~SelectedPackage(); getPackage() const83 ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> getPackage() const { return m_xPackage; } 84 85 private: 86 SelectedPackage(SelectedPackage &); // not defined 87 void operator =(SelectedPackage &); // not defined 88 89 ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage> m_xPackage; 90 }; 91 92 } // namespace dp_gui 93 94 #endif 95