#313: removing photos from Settings

This commit is contained in:
Patrick Santana 2013-06-06 12:31:54 -07:00
parent ad37e3e406
commit f99b756505
5 changed files with 12 additions and 35 deletions

View file

@ -20,8 +20,6 @@
@interface Constants : NSObject @interface Constants : NSObject
extern NSString * const kAppInitialized; extern NSString * const kAppInitialized;
extern NSString * const kPhotosSaveCameraRollOrSnapshot;
extern NSString * const kPhotosSaveFiltered;
extern NSString * const kPhotosArePrivate; extern NSString * const kPhotosArePrivate;
extern NSString * const kTroveboxServer; extern NSString * const kTroveboxServer;
extern NSString * const kTroveboxNameUser; extern NSString * const kTroveboxNameUser;

View file

@ -24,10 +24,6 @@
// Const for the app initialization variable // Const for the app initialization variable
NSString * const kAppInitialized = @"app_initialized"; NSString * const kAppInitialized = @"app_initialized";
// Save original to Library - NSUserDefaults name
NSString * const kPhotosSaveCameraRollOrSnapshot=@"photos_save_camera_roll_or_snapshot";
// Save filtered to Library - NSUserDefaults name
NSString * const kPhotosSaveFiltered=@"photos_save_filtered";
// Privacy - NSUserDefaults name // Privacy - NSUserDefaults name
NSString * const kPhotosArePrivate=@"photos_are_private"; NSString * const kPhotosArePrivate=@"photos_are_private";
// NSUserDefault variable name for the Trovebox Server // NSUserDefault variable name for the Trovebox Server

View file

@ -49,12 +49,7 @@
/* /*
* set the initial configuration for the user properties * set the initial configuration for the user properties
*/ */
if (standardUserDefaults) { if (standardUserDefaults) {
// Save original to Library
[standardUserDefaults setBool:YES forKey:kPhotosSaveCameraRollOrSnapshot];
// Save filtered to Library
[standardUserDefaults setBool:YES forKey:kPhotosSaveFiltered];
// Privacy // Privacy
[standardUserDefaults setBool:YES forKey:kPhotosArePrivate]; [standardUserDefaults setBool:YES forKey:kPhotosArePrivate];

View file

@ -23,7 +23,8 @@
@interface JobUploaderController (){ @interface JobUploaderController (){
BOOL running; BOOL running;
} }
- (void) executeJob; - (void) executeUploadJob;
- (void) executeSyncJob;
@end @end
@ -53,8 +54,11 @@
while (running) { while (running) {
// sleep for 3 seconds // sleep for 3 seconds
[NSThread sleepForTimeInterval:3]; [NSThread sleepForTimeInterval:3];
// execute the method // execute the method
[self executeJob]; [self executeUploadJob];
// check if users enabled Sync
} }
}@catch (NSException *exception) { }@catch (NSException *exception) {
NSLog(@"Error in the job %@", [exception description]); NSLog(@"Error in the job %@", [exception description]);
@ -74,8 +78,12 @@
return running; return running;
} }
- (void) executeSyncJob
{
}
- (void) executeJob - (void) executeUploadJob
{ {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
#ifdef DEVELOPMENT_ENABLED #ifdef DEVELOPMENT_ENABLED

View file

@ -26,26 +26,6 @@
<key>Title</key> <key>Title</key>
<string>Photos</string> <string>Photos</string>
</dict> </dict>
<dict>
<key>DefaultValue</key>
<true/>
<key>Key</key>
<string>photos_save_camera_roll_or_snapshot</string>
<key>Title</key>
<string>Save original to Library</string>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
<dict>
<key>DefaultValue</key>
<true/>
<key>Key</key>
<string>photos_save_filtered</string>
<key>Title</key>
<string>Save filtered to Library</string>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
</dict>
<dict> <dict>
<key>Type</key> <key>Type</key>
<string>PSGroupSpecifier</string> <string>PSGroupSpecifier</string>