LCOV - code coverage report
Current view: top level - desktop/source/deployment/gui - dp_gui_updateinstalldialog.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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             : 
      20             : #ifndef INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_DP_GUI_UPDATEINSTALLDIALOG_HXX
      21             : #define INCLUDED_DESKTOP_SOURCE_DEPLOYMENT_GUI_DP_GUI_UPDATEINSTALLDIALOG_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/dialog.hxx>
      27             : #include <vcl/prgsbar.hxx>
      28             : #include <vcl/vclmedit.hxx>
      29             : #include <rtl/ref.hxx>
      30             : #include <vector>
      31             : 
      32             : /// @HTML
      33             : namespace com { namespace sun { namespace star { namespace deployment {
      34             :     class XExtensionManager;
      35             : }}}}
      36             : namespace com { namespace sun { namespace star { namespace uno {
      37             :     class XComponentContext;
      38             : }}}}
      39             : 
      40             : namespace vcl { class Window; }
      41             : 
      42             : namespace dp_gui {
      43             : 
      44             :     struct UpdateData;
      45             :     class UpdateCommandEnv;
      46             : 
      47             : 
      48             : /**
      49             :    The modal &ldquo;Download and Installation&rdquo; dialog.
      50             : */
      51             : class UpdateInstallDialog: public ModalDialog {
      52             : public:
      53             :     /**
      54             :        Create an instance.
      55             : 
      56             :        @param parent
      57             :        the parent window, may be null
      58             :     */
      59             :     UpdateInstallDialog(vcl::Window * parent, std::vector<UpdateData> & aVecUpdateData,
      60             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xCtx);
      61             : 
      62             :     virtual ~UpdateInstallDialog();
      63             :     virtual void dispose() SAL_OVERRIDE;
      64             : 
      65             :     bool Close() SAL_OVERRIDE;
      66             :     virtual short Execute() SAL_OVERRIDE;
      67             : 
      68             : private:
      69             :     UpdateInstallDialog(UpdateInstallDialog &) SAL_DELETED_FUNCTION;
      70             :     void operator =(UpdateInstallDialog &) SAL_DELETED_FUNCTION;
      71             : 
      72             :     class Thread;
      73             :     friend class Thread;
      74             :     friend class UpdateCommandEnv;
      75             : 
      76             :     DECL_LINK(cancelHandler, void *);
      77             : 
      78             :     //signals in the dialog that we have finished.
      79             :     void updateDone();
      80             :     //Writes a particular error into the info listbox.
      81             :     enum INSTALL_ERROR
      82             :     {
      83             :         ERROR_DOWNLOAD,
      84             :         ERROR_INSTALLATION,
      85             :         ERROR_LICENSE_DECLINED
      86             :     };
      87             :     void setError(INSTALL_ERROR err, OUString const & sExtension, OUString const & exceptionMessage);
      88             :     void setError(OUString const & exceptionMessage);
      89           0 :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XExtensionManager > getExtensionManager() const
      90           0 :             { return m_xExtensionManager; }
      91             : 
      92             :     rtl::Reference< Thread > m_thread;
      93             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xComponentContext;
      94             :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XExtensionManager > m_xExtensionManager;
      95             :     //Signals that an error occurred during download and installation
      96             :     bool m_bError;
      97             :     bool m_bNoEntry;
      98             : 
      99             :     OUString m_sInstalling;
     100             :     OUString m_sFinished;
     101             :     OUString m_sNoErrors;
     102             :     OUString m_sErrorDownload;
     103             :     OUString m_sErrorInstallation;
     104             :     OUString m_sErrorLicenseDeclined;
     105             :     OUString m_sNoInstall;
     106             :     OUString m_sThisErrorOccurred;
     107             : 
     108             :     VclPtr<FixedText>    m_pFt_action;
     109             :     VclPtr<ProgressBar>  m_pStatusbar;
     110             :     VclPtr<FixedText>    m_pFt_extension_name;
     111             :     VclPtr<VclMultiLineEdit> m_pMle_info;
     112             :     VclPtr<HelpButton>   m_pHelp;
     113             :     VclPtr<OKButton>     m_pOk;
     114             :     VclPtr<CancelButton> m_pCancel;
     115             : };
     116             : 
     117             : }
     118             : 
     119             : #endif
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11