Files
MuditaOS/module-apps/apps-common/popups/data/PopupRequestParamsBase.hpp
rrandomsky c96dc7dc30 [MOS-686] Fixed MTP availability only after phone unlocked
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.
2023-05-18 15:57:09 +02:00

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