AppDelegate.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //#define SERVER_URL @"http://pull99.a8.com/live/1484986711488827.flv?ikHost=ws&ikOp=1&CodecInfo=8192"
  2. //
  3. // AppDelegate.h
  4. //
  5. // Created by Reese on 13-8-10.
  6. // Copyright (c) 2013年 Reese. All rights reserved.
  7. #import <UIKit/UIKit.h>
  8. #import <PushKit/PushKit.h>
  9. #import <CallKit/CallKit.h>
  10. #import "JXNavigation.h"
  11. #import "JXDidPushObj.h"
  12. // 引入 JPush 功能所需头文件
  13. #import "JPUSHService.h"
  14. @class emojiViewController;
  15. @class JXMainViewController;
  16. @class JXGroupViewController;
  17. @class leftViewController;
  18. @class JXServer;
  19. @class versionManage;
  20. @class JXConstant;
  21. @class JXUserObject;
  22. @class JXMeetingObject;
  23. @class JXCommonService;
  24. @class NumLockViewController;
  25. @class JXCsHomeVc;
  26. @interface AppDelegate : UIResponder <UIApplicationDelegate,PKPushRegistryDelegate,CXProviderDelegate,JPUSHRegisterDelegate>{
  27. }
  28. @property (strong, nonatomic) UIWindow *window;
  29. // 可用于view显示在最上层,不受底下页面干扰
  30. @property (strong, nonatomic) UIView *subWindow;
  31. @property (nonatomic, strong) NumLockViewController *numLockVC;
  32. //QQ登录appId
  33. @property (nonatomic, strong) NSString *QQ_LOGIN_APPID;
  34. #if TAR_IM
  35. #ifdef Meeting_Version
  36. @property (nonatomic,strong) JXMeetingObject* jxMeeting;
  37. @property (nonatomic, strong) CXProvider * provider;
  38. @property (nonatomic, strong) CXCallController * cxCallController;
  39. @property (nonatomic, readonly) CXProviderConfiguration * providerConfig;
  40. @property (nonatomic, strong) NSUUID * uuid;
  41. #endif
  42. #endif
  43. @property (nonatomic,strong) JXServer* jxServer;
  44. @property (nonatomic,strong) JXConstant* jxConstant;
  45. @property (nonatomic, strong) versionManage* config;
  46. @property (strong, nonatomic) emojiViewController* faceView;
  47. @property (strong, nonatomic) emojiViewController* faceView2;
  48. @property (strong, nonatomic) JXMainViewController *mainVc;
  49. @property (strong, nonatomic) JXCsHomeVc *home;
  50. @property (strong, nonatomic) NSString * isShowRedPacket;
  51. @property (strong, nonatomic) NSString * isShowApplyForWithdrawal;
  52. @property (strong, nonatomic) NSNumber * isOpenActivity;
  53. @property (strong, nonatomic) NSString * activityUrl;
  54. @property (strong, nonatomic) NSString * activityName;
  55. @property (assign, nonatomic) double myMoney;
  56. @property (nonatomic, strong) JXCommonService *commonService;
  57. @property (nonatomic, strong) JXNavigation *navigation;
  58. @property (nonatomic, assign) BOOL isShowDeviceLock;
  59. @property (nonatomic, strong) JXDidPushObj *didPushObj;
  60. @property (nonatomic, copy) NSArray *linkArray;
  61. @property (nonatomic, strong) NSString *imgUrl;
  62. @property (nonatomic, strong) NSArray *customerLinkListArray;
  63. @property (nonatomic, strong) JXSecurityUtil *securityUtil;
  64. @property (nonatomic, strong) JXPayServer *payServer;
  65. @property (nonatomic, strong) JXLoginServer *loginServer;
  66. #ifdef IS_MsgEncrypt
  67. @property (nonatomic, strong) JXMsgUtil *msgUtil;
  68. #endif
  69. -(void) showAlert: (NSString *) message;
  70. -(UIAlertView *) showAlert: (NSString *) message delegate:(id)delegate;
  71. - (UIAlertView *) showAlert: (NSString *) message delegate:(id)delegate tag:(NSUInteger)tag onlyConfirm:(BOOL)onlyConfirm;
  72. - (void)copyDbWithUserId:(NSString *)userId;
  73. -(void)showMainUI;
  74. -(void)showLoginUI;
  75. - (void)setupLunchADUrl:(NSString *)url link:(NSString *)link;
  76. -(void)endCall;
  77. @end
  78. //[[UIApplication sharedApplication].keyWindow addSubview:_subWindow];
  79. // 监听截屏
  80. // [g_notify addObserver:self selector:@selector(getScreenShot:) name:UIApplicationUserDidTakeScreenshotNotification object:nil];
  81. // if(isIOS7){
  82. // application.statusBarStyle = UIStatusBarStyleDefault;
  83. // window.clipsToBounds = YES;
  84. // window.frame = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height-20);
  85. // }