Skip to content

Commit

Permalink
Merge branch 'jb38804' into 'master'
Browse files Browse the repository at this point in the history
[devicelock] Add an option to clear external storage on device reset. Contributes to JB#38804

See merge request !25
  • Loading branch information
adenexter committed Jun 14, 2017
2 parents 7079f03 + dd9240a commit 82172d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/nemo-devicelock/devicereset.cpp
Expand Up @@ -47,6 +47,7 @@ namespace NemoDeviceLock
\value Shutdown Shutdown the device after reset.
\value Reboot Reboot the device after reset.
\value WipePartitions Zero all bytes not overwritten by the factory image.
\value ClearExternalMedia Data on external storage will also be deleted.
*/

/*!
Expand Down
3 changes: 2 additions & 1 deletion src/nemo-devicelock/devicereset.h
Expand Up @@ -49,7 +49,8 @@ class NEMODEVICELOCK_EXPORT DeviceReset : public QObject, private ConnectionClie
enum Option {
Shutdown = 0x00,
Reboot = 0x01,
WipePartitions = 0x02
WipePartitions = 0x02,
ClearExternalMedia = 0x04
};
Q_ENUM(Option)
Q_DECLARE_FLAGS(Options, Option)
Expand Down

0 comments on commit 82172d2

Please sign in to comment.