Revision d8426ffb pithos-macos/pithos_macosAppDelegate.h

b/pithos-macos/pithos_macosAppDelegate.h
38 38
#import <Cocoa/Cocoa.h>
39 39
@class PithosBrowserController;
40 40
@class PithosPreferencesController;
41
@class PithosSyncDaemon;
42
@class ASIPithos;
41
@class PithosAccount;
43 42

  
44 43
@interface pithos_macosAppDelegate : NSObject <NSApplicationDelegate> {
45 44
    IBOutlet PithosBrowserController *pithosBrowserController;
46 45
    IBOutlet PithosPreferencesController *pithosPreferencesController;
47 46
    
48
    PithosSyncDaemon *pithosSyncDaemon;
49 47
    BOOL alwaysNo;
50 48
    
51
    ASIPithos *pithos;
52

  
53 49
    IBOutlet NSMenu *statusMenu;
50
    IBOutlet NSMenu *accountsMenu;
51
    IBOutlet NSMenu *lastSyncMenu;
54 52
    NSStatusItem *statusItem;
55 53
    
56 54
    NSString *aboutVersion;
57 55
    
58 56
    NSUserDefaults *userDefaults;
57
    
58
    BOOL activated;
59
    PithosAccount *currentPithosAccount;
60
    NSMutableArray *pithosAccounts;
61
    NSMutableDictionary *pithosAccountsDictionary;
62
    
63
    NSTimeInterval syncTimeInterval;
64
    NSTimer *syncTimer;
65
    PithosAccount *syncPithosAccount;
59 66
}
60 67

  
68
@property (nonatomic, retain) PithosBrowserController *pithosBrowserController;
69
@property (nonatomic, assign) BOOL alwaysNo;
70
@property (nonatomic, readonly) NSString *aboutVersion;
71
@property (nonatomic, assign) BOOL activated;
72
@property (nonatomic, retain) PithosAccount *currentPithosAccount;
73
@property (nonatomic, retain) NSMutableArray *pithosAccounts;
74
@property (nonatomic, readonly) NSMutableDictionary *pithosAccountsDictionary;
75
@property (nonatomic, retain) PithosAccount *syncPithosAccount;
76

  
61 77
- (void)handleAppleEvent:(NSAppleEventDescriptor *)event withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
62 78
- (IBAction)showPithosBrowser:(id)sender;
63 79
- (IBAction)showPithosPreferences:(id)sender;
64 80
- (IBAction)aboutPithos:(id)sender;
65
- (IBAction)syncNow:(id)sender;
66

  
67
- (void)login;
68
- (void)authenticate;
69

  
70
@property (nonatomic, retain) ASIPithos *pithos;
71
@property (nonatomic, retain) PithosBrowserController *pithosBrowserController;
72
@property (nonatomic, retain) PithosSyncDaemon *pithosSyncDaemon;
73
@property (nonatomic, assign) BOOL alwaysNo;
74
@property (nonatomic, readonly) NSString *aboutVersion;
81
- (void)savePithosAccounts:(id)sender;
82
- (void)removedPithosAccount:(PithosAccount *)removedPithosAccount;
75 83

  
76 84
@end

Also available in: Unified diff