Today's Menu  Portugal
journal and plan nutrition
Instance Methods | List of all members
Y3GmailViewFooter Class Reference

#import <Y3GmailViewFooter.h>

Inheritance diagram for Y3GmailViewFooter:
Inheritance graph
[legend]
Collaboration diagram for Y3GmailViewFooter:
Collaboration graph
[legend]

Instance Methods

(instancetype) - initWithDelegate:
 
(instancetype) - initWithDelegate: [implementation]
 
(float) - heightRequirement [implementation]
 
(void) - appear: [implementation]
 
(void) - addScanServerButton [implementation]
 
(void) - clickedScanServer [implementation]
 
(void) - signedIn: [implementation]
 
(void) - signedOut: [implementation]
 

Detailed Description

Definition at line 15 of file Y3GmailViewFooter.h.

Method Documentation

◆ addScanServerButton()

- (void) addScanServerButton
implementation

Definition at line 53 of file Y3GmailViewFooter.m.

54 {
55  Z5GoogleLoginController *loginControl = [[[Z5DataController sharedInstance] remoteDataController] loginController];
56  if ([[loginControl signedIn] boolValue]) {
57 
58  CGRect scanEmailServerButtonFrame = CGRectMake(viewBound.size.width/2 + 2, 2.0, viewBound.size.width/2 - 4, scanMailBarViewHeight - 4.0);
59  scanEmailServerButton = [[UIButton alloc] initWithFrame:scanEmailServerButtonFrame];
60  [scanEmailServerButton setTitle:@"scan server" forState:UIControlStateNormal];
61  [scanEmailServerButton setTintColor:[UIColor blackColor]];
62  [scanEmailServerButton addTarget:self action:@selector(clickedScanServer) forControlEvents:UIControlEventTouchUpInside];
63  [scanEmailServerButton addGradientFace:[UIColor cyanColor]];
64  [self addSubview:scanEmailServerButton];
65  }
66 }
instancetype sharedInstance()
Singleton interface to both core and remote data sources.

◆ appear:()

- (void) appear: (CGRect)  bound
implementation

Definition at line 47 of file Y3GmailViewFooter.m.

47  :(CGRect)bound
48 {
49  [self setBackgroundColor:[UIColor greenColor]];
50  viewBound = bound;
51  [self addScanServerButton];
52 }

◆ clickedScanServer()

- (void) clickedScanServer
implementation

Definition at line 68 of file Y3GmailViewFooter.m.

69 {
70  [gmailFtrDelegate didTapScanServer];
71 }

◆ heightRequirement()

- (float) heightRequirement
implementation

Definition at line 38 of file Y3GmailViewFooter.m.

39 {
40  Z5GoogleLoginController *loginControl = [[[Z5DataController sharedInstance] remoteDataController] loginController];
41  float ret = 0.0;
42  if ([[loginControl signedIn] boolValue]) {
44  }
45  return ret;
46 }
instancetype sharedInstance()
Singleton interface to both core and remote data sources.

◆ initWithDelegate:() [1/2]

- (instancetype) initWithDelegate: (id< Y3GmailFooterDelegate >)  delegate

◆ initWithDelegate:() [2/2]

- (instancetype) initWithDelegate: (id<Y3GmailFooterDelegate, WKNavigationDelegate>)  delegate
implementation

Definition at line 27 of file Y3GmailViewFooter.m.

27  :(id<Y3GmailFooterDelegate, WKNavigationDelegate>) delegate
28 {
29  self = [super init];
30  if (self) {
32  // messageViewHeight = 80;
34  }
35  return self;
36 }
id< U7ParamEditControlDelegate > delegate

◆ signedIn:()

- (void) signedIn: (GIDGoogleUser *)  user
implementation

Definition at line 74 of file Y3GmailViewFooter.m.

74  : (GIDGoogleUser *)user
75 {
76  NSLog(@"GmailViewController.signedIn: %@", user.profile.name);
77  [self addScanServerButton];
78 }
GIDProfileData * profile
Definition: GIDGoogleUser.h:24
NSString * name

◆ signedOut:()

- (void) signedOut: (GIDGoogleUser *)  user
implementation

Definition at line 79 of file Y3GmailViewFooter.m.

79  :(GIDGoogleUser *)user
80 {
81  // self.service = nil;
82 }

The documentation for this class was generated from the following files: