2013-06-07 02:47:43 -04:00
|
|
|
//
|
|
|
|
// NBNotifier.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/6/13.
|
|
|
|
// Copyright (c) 2013 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2013-06-11 23:00:00 -07:00
|
|
|
@interface NBNotifier : UIView {
|
|
|
|
|
2013-06-16 21:39:38 -07:00
|
|
|
UIProgressView *progressBar;
|
|
|
|
|
2013-06-11 23:00:00 -07:00
|
|
|
@protected
|
|
|
|
UILabel *_txtLabel;
|
|
|
|
}
|
2013-06-07 02:47:43 -04:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
NBOfflineStyle = 1,
|
|
|
|
NBLoadingStyle = 2,
|
2013-06-16 21:39:38 -07:00
|
|
|
NBSyncingStyle = 3,
|
|
|
|
NBSyncingProgressStyle = 4
|
2013-06-07 02:47:43 -04:00
|
|
|
} NBNotifierStyle;
|
|
|
|
|
2013-06-11 23:00:00 -07:00
|
|
|
@property (nonatomic, strong) NSString *_text;
|
|
|
|
@property (nonatomic) NBNotifierStyle style;
|
2013-06-12 17:36:09 -07:00
|
|
|
@property (nonatomic, strong) UIView *view;
|
2013-06-11 23:00:00 -07:00
|
|
|
@property (nonatomic, strong) UIView *accessoryView;
|
|
|
|
@property (nonatomic, strong) NSString *title;
|
2013-06-13 17:56:58 -07:00
|
|
|
@property (nonatomic, assign) BOOL showing;
|
2013-06-16 21:39:38 -07:00
|
|
|
@property (nonatomic, retain) UIProgressView *progressBar;
|
2013-06-07 02:47:43 -04:00
|
|
|
|
2013-06-11 23:00:00 -07:00
|
|
|
- (id)initWithTitle:(NSString *)title;
|
|
|
|
- (id)initWithTitle:(NSString *)title inView:(UIView *)view;
|
|
|
|
- (id)initWithTitle:(NSString *)title inView:(UIView *)view style:(NBNotifierStyle)style;
|
|
|
|
|
|
|
|
- (void)setAccessoryView:(UIView *)view animated:(BOOL)animated;
|
2013-06-16 21:39:38 -07:00
|
|
|
- (void)setProgress:(float)value;
|
2013-06-11 23:00:00 -07:00
|
|
|
- (void)setTitle:(id)title animated:(BOOL)animated;
|
|
|
|
|
|
|
|
- (void)show;
|
|
|
|
- (void)showIn:(float)time;
|
|
|
|
- (void)showFor:(float)time;
|
|
|
|
|
|
|
|
- (void)hide;
|
|
|
|
- (void)hideAfter:(float)seconds;
|
|
|
|
- (void)hideIn:(float)seconds;
|
2013-06-10 00:29:03 -07:00
|
|
|
|
2013-06-07 02:47:43 -04:00
|
|
|
@end
|