OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_INSTALLER_MAC_APP_UNPACKER_H_ | |
6 #define CHROME_INSTALLER_MAC_APP_UNPACKER_H_ | |
7 | |
8 #import <Foundation/Foundation.h> | |
9 | |
10 @class Unpacker; | |
11 @protocol UnpackDelegate | |
12 - (void)unpacker:(Unpacker*)unpacker onSuccess:(NSString*)appPath; | |
13 - (void)unpacker:(Unpacker*)unpacker onFailure:(NSError*)error; | |
14 - (void)unpacker:(Unpacker*)unpacker onUnmountSuccess:(NSString*)mountpath; | |
15 - (void)unpacker:(Unpacker*)unpacker onUnmountFailure:(NSError*)error; | |
16 @optional | |
17 - (void)unpacker:(Unpacker*)unpacker onMountSuccess:(NSString*)mountpath; | |
18 - (void)unpacker:(Unpacker*)unpacker onMountFailure:(NSError*)error; | |
19 @end | |
20 | |
21 @interface Unpacker : NSObject | |
22 | |
23 @property(nonatomic, assign) NSObject<UnpackDelegate>* delegate; | |
Sidney San Martín
2016/08/17 22:09:06
Instead of this, you can just declare your delegat
Sidney San Martín
2016/08/18 19:33:00
Just for posterity…
I got the syntax wrong (by mi
Anna Zeng
2016/08/18 19:41:09
Done
| |
24 @property(nonatomic, copy) NSString* appPath; | |
25 | |
26 - (id)initWithFinalAppPath:(NSString*)appPath; | |
27 | |
28 // TODO: add a new "extractor" class to be nested into unpacker | |
29 - (void)mountDMGFromURL:(NSURL*)fileURL; | |
30 - (void)extractChrome; | |
31 - (void)unmountDMG; | |
32 | |
33 @end | |
34 | |
35 #endif // CHROME_INSTALLER_MAC_APP_UNPACKER_H_ | |
OLD | NEW |