X-Git-Url: https://code.grnet.gr/git/pithos-macos/blobdiff_plain/9f3a92de6d51dba59ba6079d612274bca2fa951a..c2312252f51557069c2135bf6b495f069e5db79c:/pithos-macos/pithos_macosAppDelegate.h diff --git a/pithos-macos/pithos_macosAppDelegate.h b/pithos-macos/pithos_macosAppDelegate.h index 7c23c4a..9798748 100644 --- a/pithos-macos/pithos_macosAppDelegate.h +++ b/pithos-macos/pithos_macosAppDelegate.h @@ -2,7 +2,7 @@ // pithos_macosAppDelegate.h // pithos-macos // -// Copyright 2011 GRNET S.A. All rights reserved. +// Copyright 2011-2012 GRNET S.A. All rights reserved. // // Redistribution and use in source and binary forms, with or // without modification, are permitted provided that the following @@ -36,15 +36,57 @@ // or implied, of GRNET S.A. #import - @class PithosBrowserController; +@class PithosPreferencesController; +@class PithosAccount; @interface pithos_macosAppDelegate : NSObject { PithosBrowserController *pithosBrowserController; + PithosPreferencesController *pithosPreferencesController; + + BOOL alwaysNo; + + IBOutlet NSMenu *statusMenu; + IBOutlet NSMenu *accountsMenu; + IBOutlet NSMenu *lastSyncMenu; + NSStatusItem *statusItem; + + LSSharedFileListRef loginItems; + BOOL openAtLoginEnabled; + BOOL openAtLogin; + + NSUserDefaults *userDefaults; + + BOOL activated; + PithosAccount *currentPithosAccount; + NSMutableArray *pithosAccounts; + NSMutableDictionary *pithosAccountsDictionary; + + NSTimeInterval syncTimeInterval; + NSTimer *syncTimer; + PithosAccount *syncPithosAccount; + + NSTimeInterval activityFacilityTimeInterval; } -@property (assign) IBOutlet PithosBrowserController *pithosBrowserController; +@property (nonatomic, readonly) PithosBrowserController *pithosBrowserController; +@property (nonatomic, readonly) PithosPreferencesController *pithosPreferencesController; +@property (nonatomic, assign) BOOL alwaysNo; +@property (nonatomic, assign) BOOL openAtLoginEnabled; +@property (nonatomic, assign) BOOL openAtLogin; +@property (nonatomic, assign) BOOL activated; +@property (nonatomic, retain) PithosAccount *currentPithosAccount; +@property (nonatomic, retain) NSMutableArray *pithosAccounts; +@property (nonatomic, readonly) NSMutableDictionary *pithosAccountsDictionary; +@property (nonatomic, retain) PithosAccount *syncPithosAccount; +@property (nonatomic, readonly) NSTimeInterval activityFacilityTimeInterval; - (void)handleAppleEvent:(NSAppleEventDescriptor *)event withReplyEvent: (NSAppleEventDescriptor *)replyEvent; +- (IBAction)showPithosBrowser:(id)sender; +- (IBAction)showPithosPreferences:(id)sender; +- (IBAction)showPithosAbout:(id)sender; +- (void)sync; +- (void)savePithosAccounts:(id)sender; +- (void)removedPithosAccount:(PithosAccount *)removedPithosAccount; @end