Support open at login.
[pithos-macos] / pithos-macos / pithos_macosAppDelegate.h
index 7c23c4a..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
 // or implied, of GRNET S.A.
 
 #import <Cocoa/Cocoa.h>
-
 @class PithosBrowserController;
+@class PithosPreferencesController;
+@class PithosAccount;
 
 @interface pithos_macosAppDelegate : NSObject <NSApplicationDelegate> {
     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