LCOV - code coverage report
Current view: top level - desktop/source/deployment/gui - dp_gui_updateinstalldialog.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 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             : 
      64             :     bool Close() SAL_OVERRIDE;
      65             :     virtual short Execute() SAL_OVERRIDE;
      66             : 
      67             : private:
      68             :     UpdateInstallDialog(UpdateInstallDialog &); // not defined
      69             :     void operator =(UpdateInstallDialog &); // not defined
      70             : 
      71             :     class Thread;
      72             :     friend class Thread;
      73             :     friend class UpdateCommandEnv;
      74             : 
      75             :     DECL_LINK(cancelHandler, void *);
      76             : 
      77             :     //signals in the dialog that we have finished.
      78             :     void updateDone();
      79             :     //Writes a particular error into the info listbox.
      80             :     enum INSTALL_ERROR
      81             :     {
      82             :         ERROR_DOWNLOAD,
      83             :         ERROR_INSTALLATION,
      84             :         ERROR_LICENSE_DECLINED
      85             :     };
      86             :     void setError(INSTALL_ERROR err, OUString const & sExtension, OUString const & exceptionMessage);
      87             :     void setError(OUString const & exceptionMessage);
      88           0 :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XExtensionManager > getExtensionManager() const
      89           0 :             { return m_xExtensionManager; }
      90             : 
      91             :     rtl::Reference< Thread > m_thread;
      92             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xComponentContext;
      93             :     ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XExtensionManager > m_xExtensionManager;
      94             :     //Signals that an error occurred during download and installation
      95             :     bool m_bError;
      96             :     bool m_bNoEntry;
      97             :     bool m_bActivated;
      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             :     FixedText *m_pFt_action;
     109             :     ProgressBar *m_pStatusbar;
     110             :     FixedText *m_pFt_extension_name;
     111             :     VclMultiLineEdit *m_pMle_info;
     112             :     HelpButton *m_pHelp;
     113             :     OKButton *m_pOk;
     114             :     CancelButton *m_pCancel;
     115             : };
     116             : 
     117             : }
     118             : 
     119             : #endif
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10