root / pithos-macos / PithosAccount.h @ fb27f368
History | View | Annotate | Download (5.2 kB)
1 |
//
|
---|---|
2 |
// PithosAccount.h
|
3 |
// pithos-macos
|
4 |
//
|
5 |
// Copyright 2012-2013 GRNET S.A. All rights reserved.
|
6 |
//
|
7 |
// Redistribution and use in source and binary forms, with or
|
8 |
// without modification, are permitted provided that the following
|
9 |
// conditions are met:
|
10 |
//
|
11 |
// 1. Redistributions of source code must retain the above
|
12 |
// copyright notice, this list of conditions and the following
|
13 |
// disclaimer.
|
14 |
//
|
15 |
// 2. Redistributions in binary form must reproduce the above
|
16 |
// copyright notice, this list of conditions and the following
|
17 |
// disclaimer in the documentation and/or other materials
|
18 |
// provided with the distribution.
|
19 |
//
|
20 |
// THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
21 |
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22 |
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
23 |
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
24 |
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
25 |
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
26 |
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
27 |
// USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
28 |
// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
29 |
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
30 |
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31 |
// POSSIBILITY OF SUCH DAMAGE.
|
32 |
//
|
33 |
// The views and conclusions contained in the software and
|
34 |
// documentation are those of the authors and should not be
|
35 |
// interpreted as representing official policies, either expressed
|
36 |
// or implied, of GRNET S.A.
|
37 |
|
38 |
#import <Foundation/Foundation.h>
|
39 |
@class PithosSyncDaemon;
|
40 |
@class ASIPithos;
|
41 |
@class ASIPithosRequest;
|
42 |
@class PithosAccountNode;
|
43 |
@class PithosSharingAccountsNode;
|
44 |
|
45 |
@interface PithosAccount : NSObject <NSCoding> {
|
46 |
NSString *uniqueName; |
47 |
BOOL active; |
48 |
NSString *name; |
49 |
NSString *clientVersion; |
50 |
|
51 |
BOOL syncActive; |
52 |
NSString *syncDirectoryPath; |
53 |
NSMutableDictionary *syncAccountsDictionary; |
54 |
BOOL syncSkipHidden; |
55 |
NSDate *syncLastCompleted; |
56 |
PithosSyncDaemon *syncDaemon; |
57 |
|
58 |
NSString *authURLString; |
59 |
NSString *pithosObjectStoreURLString; |
60 |
NSString *astakosAccountURLString; |
61 |
NSString *astakosWebloginURLString; |
62 |
BOOL manual; |
63 |
|
64 |
NSString *authToken; |
65 |
NSString *authUser; |
66 |
NSMutableDictionary *userCatalog; |
67 |
|
68 |
BOOL ignoreSSLErrors; |
69 |
|
70 |
ASIPithos *pithos; |
71 |
PithosAccountNode *accountNode; |
72 |
PithosSharingAccountsNode *sharingAccountsNode; |
73 |
|
74 |
BOOL updatePithos; |
75 |
BOOL resetSyncDaemonLocalState; |
76 |
} |
77 |
|
78 |
@property (nonatomic, strong) NSString *uniqueName;
|
79 |
@property (assign) BOOL active;
|
80 |
@property (nonatomic, strong) NSString *name;
|
81 |
@property (nonatomic, strong) NSString *clientVersion;
|
82 |
|
83 |
@property (nonatomic, assign) BOOL syncActive;
|
84 |
@property (nonatomic, strong) NSString *syncDirectoryPath;
|
85 |
@property (nonatomic, strong) NSMutableDictionary *syncAccountsDictionary;
|
86 |
@property (nonatomic, assign) BOOL syncSkipHidden;
|
87 |
@property (nonatomic, strong) NSDate *syncLastCompleted;
|
88 |
@property (nonatomic, strong) PithosSyncDaemon *syncDaemon;
|
89 |
|
90 |
@property (nonatomic, strong) NSString *authURLString;
|
91 |
@property (nonatomic, strong) NSString *pithosObjectStoreURLString;
|
92 |
@property (nonatomic, strong) NSString *astakosAccountURLString;
|
93 |
@property (nonatomic, strong) NSString *astakosWebloginURLString;
|
94 |
@property (nonatomic, assign) BOOL manual;
|
95 |
|
96 |
@property (nonatomic, strong) NSString *authToken;
|
97 |
@property (nonatomic, strong) NSString *authUser;
|
98 |
@property (nonatomic, strong) NSMutableDictionary *userCatalog;
|
99 |
|
100 |
@property (nonatomic, assign) BOOL ignoreSSLErrors;
|
101 |
|
102 |
@property (strong, readonly) ASIPithos *pithos;
|
103 |
@property (readonly) PithosAccountNode *accountNode;
|
104 |
@property (readonly) PithosSharingAccountsNode *sharingAccountsNode;
|
105 |
|
106 |
@property (nonatomic, readonly) NSString *tokensURL;
|
107 |
@property (nonatomic, readonly) NSString *storageURLPrefix;
|
108 |
@property (nonatomic, readonly) NSString *loginURL;
|
109 |
@property (nonatomic, readonly) NSString *userCatalogURL;
|
110 |
@property (nonatomic, readonly) NSString *publicURLPrefix;
|
111 |
|
112 |
+ (id)pithosAccount; |
113 |
|
114 |
- (void)updateWithAuthURLString:(NSString *)anAuthURLString
|
115 |
pithosObjectStoreURLString:(NSString *)aPithosObjectStoreURLString |
116 |
astakosAccountURLString:(NSString *)anAstakosAccountURLString |
117 |
astakosWebloginURLString:(NSString *)anAstakosWebloginURLString |
118 |
manual:(BOOL)aManual |
119 |
authToken:(NSString *)anAuthToken |
120 |
authUser:(NSString *)anAuthUser |
121 |
ignoreSSLErrors:(BOOL)anIgnoreSSLErrors; |
122 |
- (void)updateSyncWithSyncActive:(BOOL)aSyncActive
|
123 |
syncDirectoryPath:(NSString *)aSyncDirectoryPath |
124 |
syncAccountsDictionary:(NSMutableDictionary *)aSyncAccountsDictionary |
125 |
syncSkipHidden:(BOOL)aSyncSkipHidden; |
126 |
- (NSMutableDictionary *)servicesFromServiceCatalogRequest:(ASIPithosRequest *)serviceCatalogRequest; |
127 |
- (void)updateServicesFromServiceCatalogRequest:(ASIPithosRequest *)serviceCatalogRequest;
|
128 |
- (ASIPithosRequest *)updateUserCatalogForDisplaynames:(NSArray *)displaynames UUIDs:(NSArray *)UUIDs; |
129 |
- (NSString *)displaynameForUUID:(NSString *)UUID safe:(BOOL)safe; |
130 |
- (NSString *)displaynameForUUID:(NSString *)UUID; |
131 |
|
132 |
@end
|