LCOV - code coverage report
Current view: top level - muse/framework/update - iupdateconfiguration.h Coverage Total Hit
Test: filtered_coverage.info Lines: 50.0 % 2 1
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : #ifndef MUSE_UPDATE_IUPDATECONFIGURATION_H
      23              : #define MUSE_UPDATE_IUPDATECONFIGURATION_H
      24              : 
      25              : #include "async/notification.h"
      26              : #include "io/path.h"
      27              : #include "network/networktypes.h"
      28              : 
      29              : #include "modularity/imoduleinterface.h"
      30              : 
      31              : namespace muse::update {
      32              : class IUpdateConfiguration : MODULE_GLOBAL_INTERFACE
      33              : {
      34            0 :     INTERFACE_ID(IUpdateConfiguration)
      35              : 
      36              : public:
      37           62 :     virtual ~IUpdateConfiguration() = default;
      38              : 
      39              :     virtual bool isAppUpdatable() const = 0;
      40              : 
      41              :     virtual bool allowUpdateOnPreRelease() const = 0;
      42              :     virtual void setAllowUpdateOnPreRelease(bool allow) = 0;
      43              : 
      44              :     virtual bool needCheckForUpdate() const = 0;
      45              :     virtual void setNeedCheckForUpdate(bool needCheck) = 0;
      46              :     virtual muse::async::Notification needCheckForUpdateChanged() const = 0;
      47              : 
      48              :     virtual bool autoUpdateEnabled() const = 0;
      49              :     virtual void setAutoUpdateEnabled(bool enabled) = 0;
      50              : 
      51              :     virtual std::string skippedReleaseVersion() const = 0;
      52              :     virtual void setSkippedReleaseVersion(const std::string& version) = 0;
      53              : 
      54              :     virtual std::string installingReleaseVersion() const = 0;
      55              :     virtual void setInstallingReleaseVersion(const std::string& version) = 0;
      56              : 
      57              :     virtual muse::io::path_t lastDownloadedPackagePath() const = 0;
      58              :     virtual void setLastDownloadedPackagePath(const muse::io::path_t& path) = 0;
      59              : 
      60              :     virtual std::string checkForAppUpdateUrl() const = 0;
      61              :     virtual std::string previousAppReleasesNotesUrl() const = 0;
      62              : 
      63              :     virtual muse::network::RequestHeaders updateHeaders() const = 0;
      64              : 
      65              :     virtual std::string appWebSiteUrl() const = 0;
      66              :     virtual std::string privacyPolicyUrl() const = 0;
      67              : 
      68              :     virtual muse::io::path_t updateDataPath() const = 0;
      69              :     virtual muse::io::path_t downloadsPath() const = 0;
      70              :     virtual muse::io::path_t updateRequestHistoryJsonPath() const = 0;
      71              :     virtual muse::io::path_t helperLogPath() const = 0;
      72              : };
      73              : }
      74              : 
      75              : #endif // MUSE_UPDATE_IUPDATECONFIGURATION_H
        

Generated by: LCOV version 2.0-1