1*b1cdbd2cSJim Jagielski /************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski #if ! defined INCLUDED_DP_GUI_UPDATEDATA_HXX 24*b1cdbd2cSJim Jagielski #define INCLUDED_DP_GUI_UPDATEDATA_HXX 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski #include "sal/config.h" 27*b1cdbd2cSJim Jagielski #include "tools/solar.h" 28*b1cdbd2cSJim Jagielski #include "rtl/ustring.hxx" 29*b1cdbd2cSJim Jagielski #include "com/sun/star/uno/Reference.hxx" 30*b1cdbd2cSJim Jagielski 31*b1cdbd2cSJim Jagielski #include <boost/shared_ptr.hpp> 32*b1cdbd2cSJim Jagielski 33*b1cdbd2cSJim Jagielski 34*b1cdbd2cSJim Jagielski namespace com { namespace sun { namespace star { namespace deployment { 35*b1cdbd2cSJim Jagielski class XPackage; 36*b1cdbd2cSJim Jagielski }}}} 37*b1cdbd2cSJim Jagielski namespace com { namespace sun { namespace star { namespace xml { namespace dom { 38*b1cdbd2cSJim Jagielski class XNode; 39*b1cdbd2cSJim Jagielski }}}}} 40*b1cdbd2cSJim Jagielski 41*b1cdbd2cSJim Jagielski 42*b1cdbd2cSJim Jagielski namespace dp_gui { 43*b1cdbd2cSJim Jagielski 44*b1cdbd2cSJim Jagielski struct UpdateData 45*b1cdbd2cSJim Jagielski { UpdateDatadp_gui::UpdateData46*b1cdbd2cSJim Jagielski UpdateData( ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > const & aExt): 47*b1cdbd2cSJim Jagielski bIsShared(false), aInstalledPackage(aExt){}; 48*b1cdbd2cSJim Jagielski 49*b1cdbd2cSJim Jagielski //When entries added to the listbox then there can be one for the user update and one 50*b1cdbd2cSJim Jagielski //for the shared update. However, both list entries will contain the same UpdateData. 51*b1cdbd2cSJim Jagielski //isShared is used to indicate which one is used for the shared entry. 52*b1cdbd2cSJim Jagielski bool bIsShared; 53*b1cdbd2cSJim Jagielski 54*b1cdbd2cSJim Jagielski //The currently installed extension which is going to be updated. If the extension exist in 55*b1cdbd2cSJim Jagielski //multiple repositories then it is the one with the highest version. 56*b1cdbd2cSJim Jagielski ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > aInstalledPackage; 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski //The version of the update 59*b1cdbd2cSJim Jagielski ::rtl::OUString updateVersion; 60*b1cdbd2cSJim Jagielski 61*b1cdbd2cSJim Jagielski //For online update 62*b1cdbd2cSJim Jagielski // ====================== 63*b1cdbd2cSJim Jagielski // The content of the update information. 64*b1cdbd2cSJim Jagielski //Only if aUpdateInfo is set then there is an online update available with a better version 65*b1cdbd2cSJim Jagielski //than any of the currently installed extensions with the same identifier. 66*b1cdbd2cSJim Jagielski ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > aUpdateInfo; 67*b1cdbd2cSJim Jagielski //The URL of the locally downloaded extension. It will only be set if there were no errors 68*b1cdbd2cSJim Jagielski //during the download 69*b1cdbd2cSJim Jagielski ::rtl::OUString sLocalURL; 70*b1cdbd2cSJim Jagielski //The URL of the website wher the download can be obtained. 71*b1cdbd2cSJim Jagielski ::rtl::OUString sWebsiteURL; 72*b1cdbd2cSJim Jagielski 73*b1cdbd2cSJim Jagielski //For local update 74*b1cdbd2cSJim Jagielski //===================== 75*b1cdbd2cSJim Jagielski //The locale extension which is used as update for the user or shared repository. 76*b1cdbd2cSJim Jagielski //If set then the data for the online update (aUpdateInfo, sLocalURL, sWebsiteURL) 77*b1cdbd2cSJim Jagielski //are to be ignored. 78*b1cdbd2cSJim Jagielski ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > 79*b1cdbd2cSJim Jagielski aUpdateSource; 80*b1cdbd2cSJim Jagielski 81*b1cdbd2cSJim Jagielski // ID to find this entry in the update listbox 82*b1cdbd2cSJim Jagielski sal_uInt16 m_nID; 83*b1cdbd2cSJim Jagielski bool m_bIgnored; 84*b1cdbd2cSJim Jagielski }; 85*b1cdbd2cSJim Jagielski } 86*b1cdbd2cSJim Jagielski 87*b1cdbd2cSJim Jagielski #endif 88