mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 07:28:21 -04:00
Fixed file access via MTP even when phone is not unlocked. Now access is granted when the phone is unlocked by the user entering a passcode. If the phone is not passcode protected (passcode is nor set) then access to the files is always possible via MTP.
29 lines
897 B
C++
29 lines
897 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "popups/Popups.hpp"
|
|
|
|
#include <service-appmgr/Actions.hpp>
|
|
#include <popups/Disposition.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class PopupRequestParams : public app::manager::actions::ActionParams
|
|
{
|
|
public:
|
|
explicit PopupRequestParams(gui::popup::ID popupId);
|
|
explicit PopupRequestParams(gui::popup::ID popupId, popup::Disposition disposition);
|
|
[[nodiscard]] gui::popup::ID getPopupId() const noexcept;
|
|
[[nodiscard]] const popup::Disposition &getDisposition() const noexcept;
|
|
void setDisposition(const popup::Disposition &d);
|
|
|
|
bool ignoreIfTheSamePopupIsOnTopOfTheStack = false;
|
|
|
|
private:
|
|
gui::popup::ID popupId;
|
|
popup::Disposition disposition;
|
|
};
|
|
} // namespace gui
|