-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,121 additions
and
14 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
ios/BTFuse/BTFuse.xcodeproj/xcshareddata/xcschemes/BTFuse.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ios/BTFuse/BTFuse.xcodeproj/xcshareddata/xcschemes/BTFuseTests.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ios/BTFuse/BTFuse.xcodeproj/xcshareddata/xcschemes/openssl.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
ios/BTFuse/BTFuse/utils/BTFuseNormalizedResolutionStrategy.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseNormalizedResolutionStrategy_h | ||
#define BTFuseNormalizedResolutionStrategy_h | ||
|
||
#import <BTFuse/BTFuseProgressResolutionStrategyProtocol.h> | ||
#import <BTFuse/BTFuseProgressProtocol.h> | ||
|
||
@interface BTFuseNormalizedResolutionStrategy: NSObject <BTFuseProgressResolutionStrategyProtocol> | ||
|
||
- (float) execute:(NSArray<id<BTFuseProgressProtocol>>* _Nonnull) progresses; | ||
|
||
@end | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgress_h | ||
#define BTFuseProgress_h | ||
|
||
#import <BTFuse/BTFuseProgressProtocol.h> | ||
#import <BTFuse/BTFuseProgressListenerProtocol.h> | ||
|
||
@interface BTFuseProgress: NSObject <BTFuseProgressProtocol> | ||
|
||
- (instancetype _Nonnull) init; | ||
- (instancetype _Nonnull) init:(NSInteger) value; | ||
- (instancetype _Nonnull) init:(NSInteger) value min:(NSInteger) min max:(NSInteger) max; | ||
|
||
- (void) setMin:(NSInteger) min; | ||
- (void) setMax:(NSInteger) max; | ||
- (void) setValue:(NSInteger) value; | ||
|
||
- (NSInteger) getMin; | ||
- (NSInteger) getMax; | ||
- (NSInteger) getValue; | ||
|
||
- (void) reset; | ||
|
||
- (void) update:(NSInteger) value; | ||
- (void) update:(NSInteger) value min:(nullable NSNumber*) min max:(nullable NSNumber*) max; | ||
|
||
- (float) getNormalizedValue; | ||
|
||
- (void) addListener:(_Nonnull id<BTFuseProgressListenerProtocol>) listener; | ||
- (void) removeListener:(_Nonnull id<BTFuseProgressListenerProtocol>) listener; | ||
|
||
- (bool) isComplete; | ||
|
||
@end | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgressContext_h | ||
#define BTFuseProgressContext_h | ||
|
||
#import <BTFuse/BTFuseProgressContextProtocol.h> | ||
#import <BTFuse/BTFuseProgressContextListenerProtocol.h> | ||
#import <BTFuse/BTFuseProgressResolutionStrategyProtocol.h> | ||
#import <BTFuse/BTFuseProgressListenerProtocol.h> | ||
|
||
@interface BTFuseProgressContext: NSObject <BTFuseProgressContextProtocol, BTFuseProgressListenerProtocol> | ||
|
||
- (instancetype _Nonnull) init NS_DESIGNATED_INITIALIZER; | ||
- (void) setResolutionStrategy:(id<BTFuseProgressResolutionStrategyProtocol> _Nonnull) strategy; | ||
- (void) createProgress:(NSString* _Nonnull) ident; | ||
|
||
- (NSInteger) getMax; | ||
- (NSInteger) getValue; | ||
- (void) set:(NSString* _Nonnull) ident max:(NSInteger) max; | ||
- (void) set:(NSString* _Nonnull) ident value:(NSInteger) value; | ||
|
||
- (bool) isComplete; | ||
- (bool) isComplete:(NSString* _Nonnull) ident; | ||
|
||
- (void) reset; | ||
|
||
- (float) getNormalizedValue; | ||
|
||
- (void) update:(NSString* _Nonnull) ident value:(NSInteger) value; | ||
- (void) update:(NSString* _Nonnull) ident value:(NSInteger) value min:(nullable NSNumber*) min max:(nullable NSNumber*) max; | ||
|
||
- (void) addListener:(_Nonnull id<BTFuseProgressContextListenerProtocol>) listener; | ||
- (void) removeListener:(_Nonnull id<BTFuseProgressContextListenerProtocol>) listener; | ||
|
||
- (void) onProgressUpdate:(_Nonnull id<BTFuseProgressProtocol>) progress; | ||
|
||
@end | ||
|
||
#endif |
28 changes: 28 additions & 0 deletions
28
ios/BTFuse/BTFuse/utils/BTFuseProgressContextListenerProtocol.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgressContextListenerProtocol_h | ||
#define BTFuseProgressContextListenerProtocol_h | ||
|
||
@protocol BTFuseProgressContextProtocol; | ||
@protocol BTFuseProgressContextListenerProtocol <NSObject> | ||
|
||
- (void) onProgressContextUpdate:(_Nonnull id<BTFuseProgressContextProtocol>) progress; | ||
|
||
@end | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgressContextProtocol_h | ||
#define BTFuseProgressContextProtocol_h | ||
|
||
@protocol BTFuseProgressContextListenerProtocol; | ||
@protocol BTFuseProgressContextProtocol <NSObject> | ||
|
||
- (void) createProgress:(NSString* _Nonnull) ident; | ||
|
||
- (NSInteger) getMax; | ||
- (NSInteger) getValue; | ||
- (void) set:(NSString* _Nonnull) ident max:(NSInteger) max; | ||
- (void) set:(NSString* _Nonnull) ident value:(NSInteger) value; | ||
|
||
- (bool) isComplete; | ||
- (bool) isComplete:(NSString* _Nonnull) ident; | ||
|
||
- (void) reset; | ||
|
||
- (float) getNormalizedValue; | ||
|
||
- (void) update:(NSString* _Nonnull) ident value:(NSInteger) value; | ||
- (void) update:(NSString* _Nonnull) ident value:(NSInteger) value min:(nullable NSNumber*) min max:(nullable NSNumber*) max; | ||
|
||
- (void) addListener:(_Nonnull id<BTFuseProgressContextListenerProtocol>) listener; | ||
- (void) removeListener:(_Nonnull id<BTFuseProgressContextListenerProtocol>) listener; | ||
|
||
@end | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgressListenerProtocol_h | ||
#define BTFuseProgressListenerProtocol_h | ||
|
||
@protocol BTFuseProgressProtocol; | ||
|
||
@protocol BTFuseProgressListenerProtocol | ||
|
||
- (void) onProgressUpdate:(_Nonnull id<BTFuseProgressProtocol>) progress; | ||
|
||
@end | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
/* | ||
Copyright 2025 Breautek | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef BTFuseProgressProtocol_h | ||
#define BTFuseProgressProtocol_h | ||
|
||
@protocol BTFuseProgressListenerProtocol; | ||
@protocol BTFuseProgressProtocol | ||
|
||
- (NSInteger) getMin; | ||
- (NSInteger) getMax; | ||
- (NSInteger) getValue; | ||
|
||
- (void) setMin:(NSInteger) min; | ||
- (void) setMax:(NSInteger) max; | ||
- (void) setValue:(NSInteger) value; | ||
|
||
- (bool) isComplete; | ||
|
||
- (void) reset; | ||
|
||
- (float) getNormalizedValue; | ||
|
||
- (void) update:(NSInteger) value; | ||
- (void) update:(NSInteger) value min:(nullable NSNumber*) min max:(nullable NSNumber*) max; | ||
|
||
- (void) addListener:(_Nonnull id<BTFuseProgressListenerProtocol>) listener; | ||
- (void) removeListener:(_Nonnull id<BTFuseProgressListenerProtocol>) listener; | ||
|
||
@end | ||
|
||
#endif |
Oops, something went wrong.