Revision c91b5b28 Classes/OpenStackAccount.h
b/Classes/OpenStackAccount.h | ||
---|---|---|
6 | 6 |
// The OpenStack project is provided under the Apache 2.0 license. |
7 | 7 |
// |
8 | 8 |
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 | 9 |
@class Provider; |
12 |
|
|
13 | 10 |
@class AccountManager; |
14 | 11 |
|
15 | 12 |
@interface OpenStackAccount : NSObject <NSCoding, NSCopying> { |
16 |
@private |
|
17 |
BOOL shared; |
|
18 |
NSString *sharingAccount; |
|
19 | 13 |
} |
20 | 14 |
|
21 | 15 |
@property (nonatomic, assign) BOOL hasBeenRefreshed; |
... | ... | |
24 | 18 |
@property (nonatomic, retain) NSString *username; |
25 | 19 |
@property (nonatomic, retain) NSString *apiKey; |
26 | 20 |
@property (nonatomic, retain) NSString *authToken; |
27 |
@property (nonatomic, retain) NSURL *hostURL; |
|
28 | 21 |
@property (nonatomic, retain) NSURL *filesURL; |
29 |
@property (nonatomic, readonly) NSURL *pithosPublicLinkURLPrefix; |
|
30 |
@property (nonatomic, readonly) NSURL *pithosLoginURLPrefix; |
|
31 | 22 |
@property (nonatomic, retain) AccountManager *manager; |
32 |
@property (nonatomic, assign) NSInteger containerCount; |
|
33 | 23 |
@property (nonatomic, retain) NSNumber *bytesUsed; |
34 | 24 |
@property (nonatomic, retain) NSNumber *policyQuota; |
35 | 25 |
@property (nonatomic, retain) NSMutableDictionary *containers; |
36 | 26 |
@property (nonatomic, assign) BOOL flaggedForDelete; |
37 | 27 |
@property (nonatomic, assign) BOOL shared; |
38 | 28 |
@property (nonatomic, retain) NSString *sharingAccount; |
29 |
@property (nonatomic, retain) NSMutableDictionary *userCatalog; |
|
39 | 30 |
|
40 | 31 |
+ (NSArray *)accounts; |
41 |
- (void)persist; |
|
42 | 32 |
+ (void)persist:(NSArray *)accountArray; |
43 | 33 |
|
34 |
- (void)persist; |
|
44 | 35 |
- (NSArray *)pithosSortedContainers; |
36 |
- (NSString *)displaynameForUUID:(NSString *)UUID safe:(BOOL)safe; |
|
37 |
- (NSString *)displaynameForUUID:(NSString *)UUID; |
|
45 | 38 |
|
46 | 39 |
@end |
Also available in: Unified diff