mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
27 lines
629 B
Objective-C
27 lines
629 B
Objective-C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#ifndef MS_ENABLE_H
|
|
#define MS_ENABLE_H
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
* Protocol to define an instance that can be enabled/disabled.
|
|
*/
|
|
@protocol MSEnable <NSObject>
|
|
|
|
@required
|
|
|
|
/**
|
|
* Enable/disable this instance and delete data on disabled state.
|
|
*
|
|
* @param isEnabled A boolean value set to YES to enable the instance or NO to disable it.
|
|
* @param deleteData A boolean value set to YES to delete data or NO to keep it.
|
|
*/
|
|
- (void)setEnabled:(BOOL)isEnabled andDeleteDataOnDisabled:(BOOL)deleteData;
|
|
|
|
@end
|
|
|
|
#endif
|