[ADDED] Versioning and explicit migration to MPElementEntity. [ADDED] Upgrade button in case the element needs explicit migration. [ADDED] Messages in Crashlytics and TestFlight logs upon initialization so we can easily see it worked and what the client's versioning looks like. [IMPROVED] Only show firstRun UI tooltips once. [IMPROVED] Automatically select the latest user upon load of unlock. [IMPROVED] Automatically select the user when his password is reset. [IMPROVED] Hide active element when logging a user out.
58 lines
2.7 KiB
Objective-C
58 lines
2.7 KiB
Objective-C
//
|
|
// MPMainViewController.h
|
|
// MasterPassword
|
|
//
|
|
// Created by Maarten Billemont on 24/11/11.
|
|
// Copyright (c) 2011 Lyndir. All rights reserved.
|
|
//
|
|
|
|
#import <MessageUI/MessageUI.h>
|
|
#import "MPTypeViewController.h"
|
|
#import "MPElementEntity.h"
|
|
#import "MPSearchDelegate.h"
|
|
|
|
@interface MPMainViewController : UIViewController<MPTypeDelegate, UITextFieldDelegate, MPSearchResultsDelegate, UIWebViewDelegate, MFMailComposeViewControllerDelegate>
|
|
|
|
@property (strong, nonatomic) MPElementEntity *activeElement;
|
|
@property (strong, nonatomic) IBOutlet MPSearchDelegate *searchDelegate;
|
|
@property (strong, nonatomic) IBOutlet UILongPressGestureRecognizer *resetPasswordCounterGesture;
|
|
@property (weak, nonatomic) IBOutlet UITextField *contentField;
|
|
@property (weak, nonatomic) IBOutlet UIButton *typeButton;
|
|
@property (weak, nonatomic) IBOutlet UIWebView *helpView;
|
|
@property (weak, nonatomic) IBOutlet UILabel *siteName;
|
|
@property (weak, nonatomic) IBOutlet UILabel *passwordCounter;
|
|
@property (weak, nonatomic) IBOutlet UIButton *passwordIncrementer;
|
|
@property (weak, nonatomic) IBOutlet UIButton *passwordEdit;
|
|
@property (weak, nonatomic) IBOutlet UIButton *passwordUpgrade;
|
|
@property (weak, nonatomic) IBOutlet UIView *contentContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *helpContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *contentTipContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *alertContainer;
|
|
@property (weak, nonatomic) IBOutlet UILabel *alertTitle;
|
|
@property (weak, nonatomic) IBOutlet UITextView *alertBody;
|
|
@property (weak, nonatomic) IBOutlet UILabel *contentTipBody;
|
|
@property (weak, nonatomic) IBOutlet UIImageView *toolTipEditIcon;
|
|
@property (weak, nonatomic) IBOutlet UIView *searchTipContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *actionsTipContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *typeTipContainer;
|
|
@property (weak, nonatomic) IBOutlet UIView *toolTipContainer;
|
|
@property (weak, nonatomic) IBOutlet UILabel *toolTipBody;
|
|
|
|
@property (copy) void (^contentTipCleanup)(BOOL finished);
|
|
@property (copy) void (^toolTipCleanup)(BOOL finished);
|
|
|
|
- (IBAction)copyContent;
|
|
- (IBAction)incrementPasswordCounter;
|
|
- (IBAction)resetPasswordCounter:(UILongPressGestureRecognizer *)sender;
|
|
- (IBAction)editPassword;
|
|
- (IBAction)closeAlert;
|
|
- (IBAction)upgradePassword;
|
|
- (IBAction)action:(UIBarButtonItem *)sender;
|
|
|
|
- (BOOL)isHelpVisible;
|
|
- (void)toggleHelpAnimated:(BOOL)animated;
|
|
- (void)setHelpHidden:(BOOL)hidden animated:(BOOL)animated;
|
|
- (void)setHelpChapter:(NSString *)chapter;
|
|
|
|
@end
|