~aleteoryx/muditaos

ref: 182f694ac2a1c3da23df72e0494588fc579e7616 muditaos/module-apps/application-settings-new/data/ChangePasscodeData.hpp -rw-r--r-- 506 bytes
182f694a — Przemyslaw Brudny [EGD-6637] Cleanup locks structure 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

enum class ChangePasscodeAction
{
    OnlyCheckCurrentPasscode,
    OnlyProvideNewPasscode,
    ChangeCurrentPasscode
};

class ChangePasscodeData : public gui::SwitchData
{
  public:
    explicit ChangePasscodeData(ChangePasscodeAction passcodeAction) : changePasscodeAction{passcodeAction}
    {}

    const ChangePasscodeAction changePasscodeAction;
};