1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dp_gui.h,v $
10 * $Revision: 1.24.86.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #if ! defined INCLUDED_DP_GUI_H
32 #define INCLUDED_DP_GUI_H
34 #include "dp_gui_updatedata.hxx"
36 #include "dp_gui_updatability.hxx"
38 #include "rtl/ref.hxx"
39 #include "rtl/instance.hxx"
40 #include "osl/thread.hxx"
41 #include "cppuhelper/implbase2.hxx"
42 #include "vcl/svapp.hxx"
43 #include "vcl/dialog.hxx"
44 #include "vcl/button.hxx"
45 #include "vcl/fixed.hxx"
46 #include "salhelper/simplereferenceobject.hxx"
47 #include "svtools/svtabbx.hxx"
48 #include "svtools/headbar.hxx"
49 #include "com/sun/star/ucb/XContentEventListener.hpp"
50 #include "osl/mutex.hxx"
55 namespace com
{ namespace sun
{ namespace star
{
66 class XComponentContext
;
68 namespace deployment
{
69 class XPackageManagerFactory
;
79 enum PackageState
{ REGISTERED
, NOT_REGISTERED
, AMBIGUOUS
, NOT_AVAILABLE
};
81 //==============================================================================
83 class SelectedPackage
: public salhelper::SimpleReferenceObject
{
86 SelectedPackage( const ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackage
> &xPackage
,
87 const ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackageManager
> &xPackageManager
)
88 : m_xPackage( xPackage
),
89 m_xPackageManager( xPackageManager
)
92 virtual ~SelectedPackage();
93 ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackage
> getPackage() const { return m_xPackage
; }
94 ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackageManager
> getPackageManager() const { return m_xPackageManager
; }
96 SelectedPackage(SelectedPackage
&); // not defined
97 void operator =(SelectedPackage
&); // not defined
99 ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackage
> m_xPackage
;
100 ::com::sun::star::uno::Reference
< ::com::sun::star::deployment::XPackageManager
> m_xPackageManager
;
103 } // namespace dp_gui