TokenCell.h revision 7c38b8c81c1006c82e3bd77460ce15d32de4a27b
eb8bd58b5980a12a7f60ed40f9baf7263bc53946Jonathan von Schroeder//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// FreeOTP
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// Authors: Nathaniel McCallum <npmccallum@redhat.com>
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder//
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu// Copyright (C) 2014 Nathaniel McCallum, Red Hat
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// Licensed under the Apache License, Version 2.0 (the "License");
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// you may not use this file except in compliance with the License.
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// You may obtain a copy of the License at
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// http://www.apache.org/licenses/LICENSE-2.0
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// Unless required by applicable law or agreed to in writing, software
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// distributed under the License is distributed on an "AS IS" BASIS,
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// See the License for the specific language governing permissions and
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder// limitations under the License.
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder//
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder#import "CircleProgressView.h"
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder#import "Token.h"
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder#import "TokenCode.h"
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder#import "URLImageView.h"
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@interface TokenCell : UICollectionViewCell
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet URLImageView *image;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet UILabel *code;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet UILabel *issuer;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet UILabel *label;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet UILabel *placeholder;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet CircleProgressView *outer;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (weak, nonatomic) IBOutlet CircleProgressView *inner;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@property (strong, nonatomic) TokenCode* state;
eb8bd58b5980a12a7f60ed40f9baf7263bc53946Jonathan von Schroeder- (BOOL)bind:(Token*)token;
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder@end
c10f6b3d0617371b9759cd2db422832e44e74bd3Jonathan von Schroeder