Today's Menu  Portugal
journal and plan nutrition
Z5RemoteDataController.h
Go to the documentation of this file.
1 //
2 // Z5RemoteDataController.h
3 // Z7Ma2AminoLight
4 //
5 // Created by Don Zeek on 11/12/14.
6 // Copyright (c) 2014 net.dzeek.y2014.ios.aminoview. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
11 // TODO: #import "GTLDrive.h"
12 // TODO: #import "GTMOAuth2ViewControllerTouch.h"
14 // #import "Z5EmailDataController.h"
15 // #import "Molecule+ZMa5MoleculeAccess.h"
16 // #import "Z2Molecule.h"
22 
23 
24 // see https://code.google.com/p/google-api-objectivec-client/wiki/BuildingTheLibrary
25 
26 @interface Z5RemoteDataController : NSObject
27 
28 @property (readonly, strong, nonatomic) Z5GoogleLoginController *loginController;
29 @property (readonly, strong, nonatomic) Z5GmailDataController *emailController;
30 @property (readonly, strong, nonatomic) Z5GoogleDriveController *driveController;
31 @property (readonly, strong, nonatomic) Z5GoogleCalendarDataController *calendarController;
32 @property (readonly, strong, nonatomic) Z5URLSessionController *sessionController;
33 
34 // @property (strong, nonatomic) NSString *remoteMoleculeStore;
35 @property (strong, nonatomic) NSString *webviewHome;
36 // @property (strong, nonatomic) NSString *workingMoleculeStore;
37 @property (nonatomic, retain) NSString *homeDirectoryFileId;
38 @property (nonatomic, retain) NSString *homeCreateDateTime3339;
39 @property (nonatomic) NSMutableArray *menuItemsList;
40 
41 // - (void) initializeDriveService;
42 
43 - (void)loginDriveWithNavigation: (UINavigationController *)nav
44  andHandler: (void (^)(void))finishHandler;
45 - (void)loginGoogleDrive;
46 - (void)logOffGoogleDrive;
47 - (BOOL)isSignedIn;
48 - (NSString *)signedInUsername;
49 - (void) initializeAvailableWithDelegate: (id<Z5RemoteDataFetchProtocol>) delegate;
50 - (void) refreshAuthentication;
51 // - (void)retrieveAllFiles;
52 // - (void)fetchFileList;
53 - (void) queryHomeDirectoryInfoWithDelegate: (id<Z5RemoteDataFetchProtocol>) delegate;
54 // - (GTLDriveFile *) homeDirectoryDriveFile;
55 - (BOOL) isHomeInfoError;
56 - (void) homeResultAvailable;
57 - (void) queryFileListWithDelegate:(id<Z5RemoteDataFetchProtocol>) delegate;
59 // - (void) updateOrInsertMoleculeListOnDriveWithDelegate:(id<Z5RemoteDataFetchProtocol>) delegate;
61 // - (void) fetchMolecule: (NSString *)fileId onDriveWithDelegate:(id<Z5RemoteDataFetchProtocol>) delegate;
62 // - (void) downloadFile: (GTLDriveFile *)file withDelegate:(id<Z5RemoteDataFetchProtocol>) delegate;
63 - (void) updateUI;
65 // - (void) trashMolecule: (GTLDriveFile *)file;
67 
68 // - (GTLServiceDrive *)driveService;
69 
70 @end
Z5GmailDataController * emailController
Z5GoogleCalendarDataController * calendarController
Z5GoogleLoginController * loginController
Z5GoogleDriveController * driveController
NSString * signedInUsername()
void updateUI()
/// - (void) fillMoleculeList;
Interface for remote access, to either open web or google drive.
Z5URLSessionController * sessionController