Statistics
| Branch: | Tag: | Revision:

root / pithos-macos / PithosPreferencesController.h @ fb27f368

History | View | Annotate | Download (4.4 kB)

1
//
2
//  PithosPreferencesController.h
3
//  pithos-macos
4
//
5
// Copyright 2011-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 <Cocoa/Cocoa.h>
39
@class PithosAccount;
40
@class PithosEmptyNode;
41

    
42
@interface PithosPreferencesController : NSWindowController <NSWindowDelegate, NSOutlineViewDataSource> {
43
    PithosAccount *selectedPithosAccount;
44
    
45
    IBOutlet NSArrayController *accountsArrayController;
46
    
47
    BOOL accountRemoveEnable;
48
    
49
    NSString *authURLString;
50
    BOOL manual;
51
    NSString *pithosObjectStoreURLString;
52
    NSString *astakosAccountURLString;
53
    NSString *astakosWebloginURLString;
54
    NSString *authUser;
55
    NSString *authToken;
56
    NSString *displayname;
57
    BOOL ignoreSSLErrors;
58
    BOOL retrieveTokenEnable;
59
    BOOL authorizationSaveEnable;
60
    BOOL authorizationCancelEnable;
61
    
62
    BOOL syncActive;
63
    BOOL syncSkipHidden;
64
    NSString *syncDirectoryPath;
65
    NSMutableDictionary *syncAccountsDictionary;
66
    BOOL syncApplyEnable;
67
    BOOL syncCancelEnable;
68
    IBOutlet NSOutlineView *syncAccountsOutlineView;
69
    PithosEmptyNode *syncAccountsMyAccountNode;
70
    NSMutableDictionary *syncAccountsRootFilesNodes;
71
    
72
    IBOutlet NSDictionaryController *groupsDictionaryController;
73
    IBOutlet NSDictionaryController *selectedGroupMembersDictionaryController;
74
}
75

    
76
@property (nonatomic, strong) PithosAccount *selectedPithosAccount;
77

    
78
@property (nonatomic, assign) BOOL accountRemoveEnable;
79

    
80
@property (nonatomic, copy) NSString *authURLString;
81
@property (nonatomic, assign) BOOL manual;
82
@property (nonatomic, copy) NSString *pithosObjectStoreURLString;
83
@property (nonatomic, copy) NSString *astakosAccountURLString;
84
@property (nonatomic, copy) NSString *astakosWebloginURLString;
85
@property (nonatomic, copy) NSString *authUser;
86
@property (nonatomic, copy) NSString *authToken;
87
@property (nonatomic, copy) NSString *displayname;
88
@property (nonatomic, assign) BOOL ignoreSSLErrors;
89
@property (nonatomic, assign) BOOL retrieveTokenEnable;
90
@property (nonatomic, assign) BOOL authorizationSaveEnable;
91
@property (nonatomic, assign) BOOL authorizationCancelEnable;
92

    
93
@property (nonatomic, assign) BOOL syncActive;
94
@property (nonatomic, assign) BOOL syncSkipHidden;
95
@property (nonatomic, copy) NSString *syncDirectoryPath;
96
@property (nonatomic, copy) NSMutableDictionary *syncAccountsDictionary;
97
@property (nonatomic, assign) BOOL syncApplyEnable;
98
@property (nonatomic, assign) BOOL syncCancelEnable;
99
@property (nonatomic, strong) NSMutableDictionary *syncAccountsRootFilesNodes;
100

    
101
//- (IBAction)toolbarItemSelected:(id)sender;
102

    
103
- (IBAction)addAccount:(id)sender;
104
- (IBAction)removeAccount:(id)sender;
105
- (IBAction)retrieveToken:(id)sender;
106
- (IBAction)authorizationSave:(id)sender;
107
- (IBAction)authorizationCancel:(id)sender;
108
- (IBAction)syncApply:(id)sender;
109
- (IBAction)syncCancel:(id)sender;
110
- (IBAction)syncRefresh:(id)sender;
111
- (IBAction)groupsApply:(id)sender;
112
- (IBAction)groupsRevert:(id)sender;
113

    
114

    
115
@end