FRAOathMechanismTableViewCell.h revision 721bb987c406979bcfe705fa1ca8d54497d40fcb
b711a01730152421a900e5f4e237cfb848c9c4fdvboxsync/*
b0cec57d51e48736a3303366c728c3f025e8e81bvboxsync * The contents of this file are subject to the terms of the Common Development and
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * Distribution License (the License). You may not use this file except in compliance with the
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * License.
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync *
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
b0cec57d51e48736a3303366c728c3f025e8e81bvboxsync * specific language governing permission and limitations under the License.
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync *
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * When distributing Covered Software, include this CDDL Header Notice in each file and include
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * Header, with the fields enclosed by brackets [] replaced by your own identifying
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * information: "Portions copyright [year] [name of copyright owner]".
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync *
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync * Copyright 2016 ForgeRock AS.
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync */
94872a0e88ab4f38c786fcf617ddeb4b63a76957vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync#import "FRACircleProgressView.h"
78a072e1b56619e3230735ae073668311232ec94vboxsync#import "FRAOathMechanism.h"
78a072e1b56619e3230735ae073668311232ec94vboxsync#import "FRAOathMechanismTableViewCellController.h"
78a072e1b56619e3230735ae073668311232ec94vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync/*!
78a072e1b56619e3230735ae073668311232ec94vboxsync * Custom UITableViewCell for Account screen token.
78a072e1b56619e3230735ae073668311232ec94vboxsync */
78a072e1b56619e3230735ae073668311232ec94vboxsync@interface FRAOathMechanismTableViewCell : UITableViewCell
78a072e1b56619e3230735ae073668311232ec94vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync/*!
78a072e1b56619e3230735ae073668311232ec94vboxsync * The delegate that acts as controller for this cell's UI elements relating to the OATH code value.
78a072e1b56619e3230735ae073668311232ec94vboxsync */
78a072e1b56619e3230735ae073668311232ec94vboxsync@property (strong, nonatomic) FRAOathMechanismTableViewCellController *delegate;
78a072e1b56619e3230735ae073668311232ec94vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync/*!
78a072e1b56619e3230735ae073668311232ec94vboxsync * The UILabel in which the OTP code will be displayed.
78a072e1b56619e3230735ae073668311232ec94vboxsync */
78a072e1b56619e3230735ae073668311232ec94vboxsync@property (weak, nonatomic) IBOutlet UILabel *code;
78a072e1b56619e3230735ae073668311232ec94vboxsync/*!
78a072e1b56619e3230735ae073668311232ec94vboxsync * The FRACircleProgressView in which the TOTP code's time remaining will be displayed.
78a072e1b56619e3230735ae073668311232ec94vboxsync */
78a072e1b56619e3230735ae073668311232ec94vboxsync@property (weak, nonatomic) IBOutlet FRACircleProgressView *totpCodeProgress;
78a072e1b56619e3230735ae073668311232ec94vboxsync/*!
78a072e1b56619e3230735ae073668311232ec94vboxsync * The button for generating the next HOTP code.
78a072e1b56619e3230735ae073668311232ec94vboxsync */
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync@property (weak, nonatomic) IBOutlet UIButton *hotpRefreshButton;
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync/*!
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync * The hotpRefreshButton touch-up inside action handler.
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync */
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync- (IBAction)generateNextCode:(id)sender;
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync
78a072e1b56619e3230735ae073668311232ec94vboxsync@end
c3d2b15ad840b405062f4c2c6b127d6fc107c7b2vboxsync