LCOV - code coverage report
Current view: top level - libreoffice/desktop/source/deployment/gui - dp_gui_updatedata.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_DP_GUI_UPDATEDATA_HXX
      20             : #define INCLUDED_DP_GUI_UPDATEDATA_HXX
      21             : 
      22             : #include "sal/config.h"
      23             : #include "tools/solar.h"
      24             : #include "rtl/ustring.hxx"
      25             : #include "com/sun/star/uno/Reference.hxx"
      26             : 
      27             : #include <boost/shared_ptr.hpp>
      28             : 
      29             : 
      30             : namespace com { namespace sun { namespace star { namespace deployment {
      31             :         class XPackage;
      32             : }}}}
      33             : namespace com { namespace sun { namespace star { namespace xml { namespace dom {
      34             :         class XNode;
      35             : }}}}}
      36             : 
      37             : 
      38             : namespace dp_gui {
      39             : 
      40           0 : struct UpdateData
      41             : {
      42           0 :     UpdateData( ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > const & aExt):
      43           0 :         bIsShared(false), aInstalledPackage(aExt){};
      44             : 
      45             :     //When entries added to the listbox then there can be one for the user update and one
      46             :     //for the shared update. However, both list entries will contain the same UpdateData.
      47             :     //isShared is used to indicate which one is used for the shared entry.
      48             :     bool bIsShared;
      49             : 
      50             :     //The currently installed extension which is going to be updated. If the extension exist in
      51             :     //multiple repositories then it is the one with the highest version.
      52             :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > aInstalledPackage;
      53             : 
      54             :     //The version of the update
      55             :     ::rtl::OUString updateVersion;
      56             : 
      57             :     //For online update
      58             :     // ======================
      59             :     // The content of the update information.
      60             :     //Only if aUpdateInfo is set then there is an online update available with a better version
      61             :     //than any of the currently installed extensions with the same identifier.
      62             :     ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XNode > aUpdateInfo;
      63             :     //The URL of the locally downloaded extension. It will only be set if there were no errors
      64             :     //during the download
      65             :     ::rtl::OUString sLocalURL;
      66             :     //The URL of the website wher the download can be obtained.
      67             :     ::rtl::OUString sWebsiteURL;
      68             : 
      69             :     //For local update
      70             :     //=====================
      71             :     //The locale extension which is used as update for the user or shared repository.
      72             :     //If set then the data for the online update (aUpdateInfo, sLocalURL, sWebsiteURL)
      73             :     //are to be ignored.
      74             :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage >
      75             :     aUpdateSource;
      76             : 
      77             :     // ID to find this entry in the update listbox
      78             :     sal_uInt16  m_nID;
      79             :     bool    m_bIgnored;
      80             : };
      81             : }
      82             : 
      83             : #endif
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10