TrollStore/Store/TSApplicationsManager.h

23 lines
860 B
C
Raw Normal View History

2022-09-02 23:19:48 +08:00
#import <Foundation/Foundation.h>
#define TROLLSTORE_ROOT_PATH @"/var/containers/Bundle/TrollStore"
#define TROLLSTORE_MAIN_PATH [TROLLSTORE_ROOT_PATH stringByAppendingPathComponent:@"Main"]
#define TROLLSTORE_APPLICATIONS_PATH [TROLLSTORE_ROOT_PATH stringByAppendingPathComponent:@"Applications"]
@interface TSApplicationsManager : NSObject
+ (instancetype)sharedInstance;
- (NSArray*)installedAppPaths;
- (NSDictionary*)infoDictionaryForAppPath:(NSString*)appPath;
- (NSString*)appIdForAppPath:(NSString*)appPath;
- (NSString*)displayNameForAppPath:(NSString*)appPath;
2022-09-03 09:08:59 +08:00
- (NSError*)errorForCode:(int)code;
2022-09-10 02:22:34 +08:00
- (int)installIpa:(NSString*)pathToIpa force:(BOOL)force log:(NSString**)logOut;
2022-09-03 09:08:59 +08:00
- (int)installIpa:(NSString*)pathToIpa;
- (int)uninstallApp:(NSString*)appId;
2022-09-04 21:37:49 +08:00
- (int)uninstallAppByPath:(NSString*)path;
2022-09-10 02:22:34 +08:00
//- (int)detachFromApp:(NSString*)appId;
2022-09-02 23:19:48 +08:00
@end