FRANotificationViewController.h revision 1680db67c31badf9127409069c107fbbeb386fa0
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell/*
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * The contents of this file are subject to the terms of the Common Development and
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * Distribution License (the License). You may not use this file except in compliance with the
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * License.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell *
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * specific language governing permission and limitations under the License.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell *
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * When distributing Covered Software, include this CDDL Header Notice in each file and include
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * Header, with the fields enclosed by brackets [] replaced by your own identifying
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * information: "Portions copyright [year] [name of copyright owner]".
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell *
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * Copyright 2016 ForgeRock AS.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell */
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
1680db67c31badf9127409069c107fbbeb386fa0Craig McDonnell#import "FRALAContextFactory.h"
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni#import "FRANotificationUISlider.h"
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni
a3970d0ea62388e4ede01470a6436eb5c6c92353Craig McDonnell@class FRANotification;
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
916ef74523ecddc8140815c084ab6971ee366bcfCraig McDonnell/*! The storyboard identifier assigned to this view controller. */
916ef74523ecddc8140815c084ab6971ee366bcfCraig McDonnellextern NSString * const FRANotificationViewControllerStoryboardIdentifer;
916ef74523ecddc8140815c084ab6971ee366bcfCraig McDonnell
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell/*!
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * Controller for Notification view.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell */
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell@interface FRANotificationViewController : UIViewController
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
6d34df76ea55353d972de9caf3585e04714b2780Craig McDonnell/*!
6d34df76ea55353d972de9caf3585e04714b2780Craig McDonnell * The notification model. Exposed to allow (setter) dependency injection.
6d34df76ea55353d972de9caf3585e04714b2780Craig McDonnell */
a3970d0ea62388e4ede01470a6436eb5c6c92353Craig McDonnell@property (weak, nonatomic) FRANotification *notification;
6d34df76ea55353d972de9caf3585e04714b2780Craig McDonnell/*!
1680db67c31badf9127409069c107fbbeb386fa0Craig McDonnell * Factory for LAContext objects used to perform Touch ID.
6d34df76ea55353d972de9caf3585e04714b2780Craig McDonnell */
1680db67c31badf9127409069c107fbbeb386fa0Craig McDonnell@property (strong, nonatomic) FRALAContextFactory *authContextFactory;
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell/*!
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni * The FRANotificationUISlider used to authorize the requested action.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell */
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni@property (weak, nonatomic) IBOutlet FRANotificationUISlider *authorizeSlider;
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell/*!
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell * The UIButton used to deny the requested action.
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell */
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell@property (weak, nonatomic) IBOutlet UIButton *denyButton;
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell/*!
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell * The UIImageView in which the issuer's icon will be displayed.
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell */
fb63998ce7684bddab24e10c0b593809df1b7bffCraig McDonnell@property (weak, nonatomic) IBOutlet UIImageView *image;
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell/*!
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell * The UILabel in which the notification message will be displayed.
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell */
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell@property (weak, nonatomic) IBOutlet UILabel *message;
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell/*!
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell * The UIView whose background color will be set to that of the issuer.
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell */
20afa799b2bfdc0cc2662e24a2bf0aa1372f45a9Craig McDonnell@property (weak, nonatomic) IBOutlet UIView *backgroundView;
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni/*!
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni * The callback used to check if the slider needs to be moved to the start of the track.
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni */
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni- (IBAction)updateSliderPosition:(id)sender;
33bcf6a8dcddec15c6f56f72378e5b33ce33d9a9Diego Colantoni
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell/*!
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * The callback used to permit the requested authorization requested.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell */
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell- (IBAction)authorize:(id)sender;
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell/*!
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell * The callback used to deny the requested authorization requested.
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell */
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell- (IBAction)dismiss:(id)sender;
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell
2229ffbfe08c2cd606c305f8934e627548002c9eCraig McDonnell@end