2014-10-02 15:02:47 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2015-04-02 09:33:41 +00:00
|
|
|
#import <MatrixKit/MatrixKit.h>
|
2014-10-02 15:02:47 +00:00
|
|
|
|
2014-10-08 16:55:26 +00:00
|
|
|
#import "MasterTabBarController.h"
|
|
|
|
|
2014-12-12 09:49:15 +00:00
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate> {
|
|
|
|
BOOL isAPNSRegistered;
|
|
|
|
}
|
2014-10-02 15:02:47 +00:00
|
|
|
|
2014-10-03 17:26:39 +00:00
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
2014-10-08 16:55:26 +00:00
|
|
|
@property (strong, nonatomic) MasterTabBarController *masterTabBarController;
|
2014-10-02 15:02:47 +00:00
|
|
|
|
2015-04-02 09:33:41 +00:00
|
|
|
@property (strong, nonatomic) MXKAlert *errorNotification;
|
2014-10-31 17:54:32 +00:00
|
|
|
|
2015-02-04 17:18:38 +00:00
|
|
|
@property (strong, nonatomic) NSString *appVersion;
|
|
|
|
@property (strong, nonatomic) NSString *build;
|
|
|
|
|
2015-02-02 15:43:47 +00:00
|
|
|
@property (nonatomic) BOOL isAppForeground;
|
2015-02-18 16:40:55 +00:00
|
|
|
@property (nonatomic) BOOL isOffline;
|
2015-02-02 15:43:47 +00:00
|
|
|
|
2014-10-08 12:14:12 +00:00
|
|
|
+ (AppDelegate*)theDelegate;
|
|
|
|
|
2014-12-12 09:49:15 +00:00
|
|
|
- (void)registerUserNotificationSettings;
|
|
|
|
|
2014-10-08 16:55:26 +00:00
|
|
|
- (void)logout;
|
|
|
|
|
2015-04-02 09:33:41 +00:00
|
|
|
- (MXKAlert*)showErrorAsAlert:(NSError*)error;
|
2014-10-08 12:14:12 +00:00
|
|
|
|
2014-10-02 15:02:47 +00:00
|
|
|
@end
|
|
|
|
|