Support open at login.
[pithos-macos] / pithos-macos / pithos_macosAppDelegate.h
index 2e6d9c4..9798748 100644 (file)
@@ -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
 #import <Cocoa/Cocoa.h>
 @class PithosBrowserController;
 @class PithosPreferencesController;
-@class PithosSyncDaemon;
+@class PithosAccount;
 
 @interface pithos_macosAppDelegate : NSObject <NSApplicationDelegate> {
-    IBOutlet PithosBrowserController *pithosBrowserController;
-    IBOutlet PithosPreferencesController *pithosPreferencesController;
+    PithosBrowserController *pithosBrowserController;
+    PithosPreferencesController *pithosPreferencesController;
     
-    PithosSyncDaemon *pithosSyncDaemon;
     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 (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)aboutPithos:(id)sender;
-- (IBAction)syncNow:(id)sender;
-
-- (void)login;
-- (void)authenticate;
-
-@property (nonatomic, retain) PithosBrowserController *pithosBrowserController;
-@property (nonatomic, retain) PithosSyncDaemon *pithosSyncDaemon;
-@property (nonatomic, assign) BOOL alwaysNo;
+- (IBAction)showPithosAbout:(id)sender;
+- (void)sync;
+- (void)savePithosAccounts:(id)sender;
+- (void)removedPithosAccount:(PithosAccount *)removedPithosAccount;
 
 @end