-
Notifications
You must be signed in to change notification settings - Fork 0
/
libDCWeather.h
70 lines (66 loc) · 3.03 KB
/
libDCWeather.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// libDCWeather.h
#import <Foundation/Foundation.h>
#import <Weather/Weather.h>
#import <WeatherFoundation/WeatherFoundation.h>
#import <CoreLocation/CoreLocation.h>
#import "DCDistance.h"
#import "DCTime.h"
#import "DCTemperature.h"
#import "DCWind.h"
@interface SBScreenWakeAnimationController : NSObject
@end
@interface DCWeather : NSObject <CLLocationManagerDelegate, CityUpdateObserver>
@property (nonatomic, strong) City *currentCity;
@property (nonatomic, strong) CLLocation *currentLocation;
@property (nonatomic, strong) WeatherLocationManager* weatherLocationManager;
@property (nonatomic, strong) WeatherPreferences* weatherPreferences;
@property (nonatomic, strong) NSTimer *updateTimer;
@property (nonatomic, retain) NSDate *nextUpdateTime;
@property (nonatomic, strong) NSLocale *cachedLocale;
@property (nonatomic) BOOL conditionIncludesSevereWeather;
@property (nonatomic) enum TemperatureUnit temperatureUnit;
@property (nonatomic) enum SpeedUnit speedUnit;
@property (nonatomic) DCTime *updateInterval;
@property (nonatomic) DCDistance *distanceThreshold;
@property (nonatomic) BOOL isSleeping;
+ (instancetype)sharedInstance;
- (void)requestRefresh;
- (BOOL)locationServicesEnabled;
- (BOOL)locationAuthorizationAlways;
- (void)setAutoUpdateInvervalInSeconds:(NSInteger)interval;
- (void)setAutoUpdateInvervalInMinutes:(NSInteger)interval;
- (void)setAutoUpdateInvervalInHours:(NSInteger)interval;
- (void)setDistanceThresholdToConsiderLocationChangeInMeters:(double)distanceThreshold;
- (void)setDistanceThresholdToConsiderLocationChangeInKilometers:(double)distanceThreshold;
- (void)setDistanceThresholdToConsiderLocationChangeInFeet:(double)distanceThreshold;
- (void)setDistanceThresholdToConsiderLocationChangeInYards:(double)distanceThreshold;
- (void)setDistanceThresholdToConsiderLocationChangeInMiles:(double)distanceThreshold;
- (void)conditionIncludesSevereWeather:(BOOL)conditionIncludesSevereWeather;
- (enum TemperatureUnit)userTemperatureUnit;
- (void)setTemperatureUnit:(enum TemperatureUnit)unit;
- (enum SpeedUnit)userSpeedUnit;
- (void)setSpeedUnit:(enum SpeedUnit)unit;
- (NSString *)temperatureString;
- (double)temperature;
- (NSString *)feelsLikeTemperatureString;
- (double)feelsLikeTemperature;
- (NSString *)conditionString;
- (UIImage *)conditionImage;
- (NSString *)windSpeedString;
- (float)windSpeed;
- (NSString *)windDirectionString;
- (NSString *)cityString;
@end
@interface CLLocationManager (Private)
- (id)appsUsingLocation;
+ (void)setAuthorizationStatus:(bool)arg1 forBundle:(id)arg2;
+ (void)setAuthorizationStatus:(bool)arg1 forBundleIdentifier:(id)arg2;
+ (void)setAuthorizationStatusByType:(int)arg1 forBundle:(id)arg2;
+ (void)setAuthorizationStatusByType:(int)arg1 forBundleIdentifier:(id)arg2;
+ (void)setBackgroundIndicatorEnabled:(bool)arg1 forBundle:(id)arg2;
+ (void)setBackgroundIndicatorEnabled:(bool)arg1 forBundleIdentifier:(id)arg2;
+ (void)setBackgroundIndicatorEnabled:(bool)arg1 forLocationDictionary:(id)arg2;
@end
@interface CLApproved : CLLocationManager
+ (int)authorizationStatusForBundleIdentifier:(id)arg1;
@end