repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/RelationManager/ZYFriendServiceManager.h
// // ZYFriendServiceManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/6. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYUserModel.h" #import "ZYDataCenter.h" @interface ZYFriendServiceManager : NSObject - (void)registUser:(ZYUserModel *)aUser withSuccess:(void (^)(ZYUserModel *resultUser))success withFaild:(void (^)(NSError *error))faild; - (void)loginUser:(ZYUserModel *)aUser; - (void)allUsrListWithSuccess:(ZYServiceManagerListModelResultSuccessBlock)success withFaild:(ZYServiceManagerRequestFaildBlock)faild; - (void)friendList; - (void)friendApplyList; - (void)approveFriendApply:(ZYUserModel *)friendUser; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/WebView/GJGCWebHostListViewController.h
// // GJGCWebHostListViewController.h // ZYChat // // Created by ZYVincent on 15/11/24. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" @interface GJGCWebHostListViewController : GJGCBaseViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/ZYNetWork/ZYNetWorkConst.h
// // ZYNetWorkConst.h // ZYNetwork // // Created by ZYVincent QQ:1003081775 on 15/7/18. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // /** * 请求类型 */ typedef NS_ENUM(NSUInteger, ZYNetworkRequestMethod){ /** * GET */ ZYNetworkRequestMethodGET, /** * POST */ ZYNetworkRequestMethodPOST, }; /** * 网络底层错误类型 */ typedef NS_ENUM(NSUInteger, ZYNetworkInnerError){ /** * 无网络连接 */ ZYNetworkInnerErrorNotConnectInternet, /** * 服务器逻辑错误 */ ZYNetworkInnerErrorServiceError, }; /** * 网络请求任务类型 */ typedef NS_ENUM(NSUInteger, ZYNetworkTaskType){ /** * 下载图片 */ ZYNetworkTaskTypeDownloadFile, /** * 请求json接口 */ ZYNetworkTaskTypeJsonRequest, }; /** * 任务状态 */ typedef NS_ENUM(NSUInteger, ZYNetworkTaskState){ /** * 请求成功 */ ZYNetworkTaskStateSuccess, /** * 请求中 */ ZYNetworkTaskStateLoading, /** * 请求失败 */ ZYNetworkTaskStateFaild, /** * 请求等待中 */ ZYNetworkTaskStateWait, };
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationGroupShowCell.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationGroupShowCell.h // // GJGCInformationGroupShowCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import "GJGCInformationTextCell.h" #import "GJGCInformationGroupShowItem.h" @interface GJGCInformationGroupShowCell : GJGCInformationTextCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseManager.h
// // ZYDatabaseManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/9. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYDatabaseOperation.h" @interface ZYDatabaseManager : NSObject + (ZYDatabaseManager *)shareManager; - (void)addOperation:(ZYDatabaseOperation *)operation; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/MainTab/BTCustomTabBarItem.h
<filename>ZYChat-EaseMob/ZYChat/MainTab/BTCustomTabBarItem.h // // BTCustomTabBarItem.h // BabyTrip // // Created by ZYVincent on 15/7/18. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> @class BTCustomTabBarItem; @protocol BTCustomTabBarItemDelegate <NSObject> - (void)customTabBarItemDidTapped:(BTCustomTabBarItem *)item; @end @interface BTCustomTabBarItem : UIView @property (nonatomic,weak)id<BTCustomTabBarItemDelegate> delegate; @property (nonatomic,strong)UIImage *normalIcon; @property (nonatomic,strong)UIImage *selectedIcon; @property (nonatomic,strong)UIColor *normalTextColor; @property (nonatomic,strong)UIColor *selectedTextColor; @property (nonatomic,strong)NSString *title; @property (nonatomic,assign,getter=isSelected)BOOL selected; @property (nonatomic,assign)CGFloat iconTextMargin; @property (nonatomic,assign)CGFloat leftMargin; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/MessageExtend/GJGCMessageExtendContentGIFModel.h
<gh_stars>1000+ // // GJGCMessageExtendContentGIFModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/20. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCMessageExtendConst.h" @interface GJGCMessageExtendContentGIFModel : JSONModel @property (nonatomic,strong)NSString *displayText; @property (nonatomic,strong)NSString *notSupportDisplayText; @property (nonatomic,strong)NSString *protocolVersion; @property (nonatomic,strong)NSString *emojiCode; @property (nonatomic,strong)NSString *emojiVersion; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/RelationManager/ZYUserModel.h
// // ZYUserModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/6. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> @interface ZYUserModel : JSONModel @property (nonatomic,strong)NSString *mobile; @property (nonatomic,strong)NSString *address; @property (nonatomic,strong)NSString *headThumb; @property (nonatomic,strong)NSString *lastTime; @property (nonatomic,strong)NSString *latitude; @property (nonatomic,strong)NSString *longtitude; @property (nonatomic,strong)NSString *name; @property (nonatomic,strong)NSString *nickname; @property (nonatomic,strong)NSString *sex; @property (nonatomic,strong)NSString *userId; @property (nonatomic,strong)NSString *addTime; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/RecentChat/GJGCRecentChatCell.h
<filename>ZYChat-EaseMob/ZYChat/RecentChat/GJGCRecentChatCell.h // // GJGCRecentChatCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/7/11. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCRecentChatModel.h" @interface GJGCRecentChatCell : UITableViewCell - (void)setContentModel:(GJGCRecentChatModel *)contentModel; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/AppWall/GJGCAppWallViewController.h
<filename>ZYChat-EaseMob/ZYChat/AppWall/GJGCAppWallViewController.h // // GJGCAppWallViewController.h // ZYChat // // Created by ZYVincent on 15/11/26. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCInfoBaseListViewController.h" #import "GJGCAppWallParamsModel.h" @interface GJGCAppWallViewController : GJGCInfoBaseListViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/CreateGroup/GJGCCreateGroupAddressSheetViewController.h
<filename>ZYChat-EaseMob/ZYChat/Square/CreateGroup/GJGCCreateGroupAddressSheetViewController.h // // GJGCCreateGroupAddressSheetViewController.h // ZYChat // // Created by ZYVincent on 15/11/23. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "BTActionSheetViewController.h" @interface GJGCCreateGroupAddressSheetViewController : BTActionSheetViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationCellContentModel.h
<reponame>AnriKaede/ZY2017IM // // GJGCInformationCellContentModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import "GJGCInformationBaseModel.h" #import "GJGCInformationBaseCell.h" #import "GJGCInformationGroupShowItem.h" @interface GJGCInformationCellContentModel : GJGCInformationBaseModel #pragma mark - 通用属性 @property (nonatomic,strong)NSAttributedString *tag; @property (nonatomic,strong)NSAttributedString *baseContent; @property (nonatomic,strong)NSAttributedString *level; @property (nonatomic,strong)NSString *headUrl; #pragma mark - 相册通用属性 @property (nonatomic,strong)NSArray *photoBoxArray; @property (nonatomic,strong)NSAttributedString *distance; @property (nonatomic,strong)NSAttributedString *name; #pragma mark - 个人相册属性 @property (nonatomic,assign)NSInteger personSex; @property (nonatomic,strong)NSAttributedString *personAge; @property (nonatomic,strong)NSAttributedString *personStarName; @property (nonatomic,strong)NSAttributedString *personLastActiveTime; @property (nonatomic,strong)NSAttributedString *personHelloCount; @property (nonatomic,assign)long long personUserId; #pragma mark - 个人展示群组 @property (nonatomic,strong)NSArray *personShowGroupArray; #pragma mark - 群组展示成员 @property (nonatomic,strong)NSArray *groupShowMemeberArray; @property (nonatomic,assign)BOOL isGroupMember; #pragma mark - 动态内容图片 @property (nonatomic,strong)NSString *feedListImageUrl; @property (nonatomic,strong)NSAttributedString *feedListCount; /** * icon 用来显示群主的头像 */ @property (nonatomic,assign) BOOL isIconShowGroupOwner; @property (nonatomic,assign) BOOL isShowOwnerIcon; /** * icon 用来显示 地图 */ @property (nonatomic,assign) BOOL isIconShowMap; /** * 是否是群账号 */ @property (nonatomic,assign) BOOL isGroupAccount; /** * 是否是 职业 */ @property (nonatomic,assign) BOOL isJob; /** * 是否是 用户自己 */ @property (nonatomic,assign) BOOL isMySelf; /** * 是否支持长按 */ @property (nonatomic,assign) BOOL haveLongPress; @property (nonatomic,strong) NSString *groupAttrTagStr; @property (nonatomic,strong) NSString *labelColorType; @property (nonatomic,strong) NSString *expandLabels; @property (nonatomic,strong)NSString *groupHeadUrl; @property (nonatomic,strong)NSString *groupName; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/WallPaper/model/shopModel.h
// // shopModel.h // 瀑布流demo // // Created by yuxin on 15/6/6. // Copyright (c) 2015年 yuxin. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface shopModel : NSObject @property(nonatomic,copy)NSString * img; @property(nonatomic,copy)NSString * price; @property(nonatomic,assign)CGFloat w; @property(nonatomic,assign)CGFloat h; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFUitils/GJCFUitils.h
<filename>ZYChat-EaseMob/ZYChat/Dependcy/GJCFUitils/GJCFUitils.h // // GJCFUitils.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-16. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // /** * 所有工具类的头文件包含 * * 建议使用宏定义工具访问这些工具便捷方法 * * 可能会犯的错误:所有需要持久化保存的自定义对象都需要实现NSCoding协议,否则保存会出错 */ /** * 相对布局可以使用 */ #import "UIView+GJCFViewFrameUitil.h" /** * GCD工具 */ #import "GJCFDispatchCenterUitil.h" /** * GJCD工具宏定义 */ #import "GJCFDispatchMacrocDefine.h" /** * 字符串工具 */ #import "GJCFStringUitil.h" /** * 字符串工具宏定义 */ #import "GJCFStringMacrocDefine.h" /** * 系统相关工具 */ #import "GJCFSystemUitil.h" /** * 系统相关工具宏定义 */ #import "GJCFSystemMacrocDefine.h" /** * 快速存取工具 */ #import "GJCFQuickCacheUitil.h" /** * 快速存取工具宏定义 */ #import "GJCFQuickCacheMacrocDefine.h" /** * UI相关工具宏 */ #import "GJCFQuickUIMacrocDefine.h" /** * NSDate相关工具宏 */ #import "GJCFDateUitilMacrocDefine.h"
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCUImageBrowser/Uitils/GJCUImageBrowserConstans.h
// // GJCFImageBrowserConstans.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-30. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> /** * 点击了预览大图通知 */ extern NSString *const GJCUImageBrowserItemViewControllerDidTapNoti; /** * 开始下载大图通知 */ extern NSString *const GJCUImageBrowserViewControllerDidBeginDownloadTaskNoti; /** * 完成下载大图通知 */ extern NSString *const GJCUImageBrowserViewControllerDidFinishDownloadTaskNoti; /** * 下载大图失败通知 */ extern NSString *const GJCUImageBrowserViewControllerDidFaildDownloadTaskNoti; /** * 大图默认缓存目录 */ extern NSString *const GJCUImageBrowserViewControllerCacheDirectory; @interface GJCUImageBrowserConstans : NSObject @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/Base/GJGCWebViewController.h
<reponame>AnriKaede/ZY2017IM // // GJGCWebViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/7/11. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCBaseViewController.h" @interface GJGCWebViewController : GJGCBaseViewController - (instancetype)initWithUrl:(NSString *)url; - (void)setUrl:(NSString *)url; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/RecentChat/GJGCRecentChatTitleView.h
<reponame>AnriKaede/ZY2017IM<gh_stars>1000+ // // GJGCRecentChatTitleView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/19. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> /** * 链接状态 */ typedef NS_ENUM(NSUInteger, GJGCRecentChatConnectState) { /** * 未链接到服务器 */ GJGCRecentChatConnectStateFaild, /** * 已链接 */ GJGCRecentChatConnectStateSuccess, /** * 正在链接 */ GJGCRecentChatConnectStateConnecting, }; @interface GJGCRecentChatTitleView : UIView @property (nonatomic,strong)UILabel *titleLabel; @property (nonatomic,strong)UIActivityIndicatorView *indicatorView; @property (nonatomic,assign)GJGCRecentChatConnectState connectState; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/Base/GJGCChatDetailViewController.h
<filename>ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/Base/GJGCChatDetailViewController.h<gh_stars>1000+ // // GJGCChatDetailViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-10-17. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCChatInputPanel.h" #import "GJCFAudioPlayer.h" #import "GJGCChatDetailDataSourceManager.h" #import "GJGCChatBaseCellDelegate.h" #import "GJCFFileDownloadManager.h" #import "GJGCChatFriendTalkModel.h" #import "GJGCRefreshHeaderView.h" #import "GJGCRefreshFooterView.h" #import "GJGCBaseViewController.h" #import "GJGCMusicPlayerBar.h" @interface GJGCChatDetailViewController : GJGCBaseViewController<UITableViewDataSource,UITableViewDelegate,GJGCChatBaseCellDelegate,GJGCChatDetailDataSourceManagerDelegate,GJGCChatInputPanelDelegate,GJGCMusicPlayerBarDelegate> @property (nonatomic,strong)GJGCRefreshHeaderView *refreshHeadView; @property (nonatomic,strong)GJGCRefreshFooterView *refreshFootView; @property (nonatomic,strong)GJGCChatInputPanel *inputPanel; @property (nonatomic,strong)GJCFAudioPlayer *audioPlayer; @property (nonatomic,strong)GJGCChatDetailDataSourceManager *dataSourceManager; @property (nonatomic,strong)UITableView *chatListTable; @property (nonatomic,readonly)GJGCChatFriendTalkModel *taklInfo; @property (nonatomic,strong)GJGCMusicPlayerBar *musicBar; - (instancetype)initWithTalkInfo:(GJGCChatFriendTalkModel *)talkModel; /** * 列表重新刷新数据,子类必须调用这个更新tableView */ - (void)reloadData; /** * 主动停止下拉刷新,子类调用 */ - (void)stopRefresh; /** * 主动停止加载更多,子类调用 */ - (void)stopLoadMore; /** * 主动调用下拉刷新,子类调用 */ - (void)startRefresh; /** * 主动停止下拉刷新,子类调用 */ - (void)startLoadMore; /** * 触发下拉刷新,子类复写 */ - (void)triggleRefreshing; /** * 触发加载更多,子类复写 */ - (void)triggleLoadingMore; - (void)stopPlayCurrentAudio; - (void)setupMusicBar; #pragma mark - scroll event - (void)dispatchScrollViewDidEndDecelerating; #pragma mark - 收起输入键盘 - (void)reserveChatInputPanelState; #pragma mark - 文件下载管理 /* 复写下载图片 */ - (void)downloadImageFile:(GJGCChatContentBaseModel *)contentModel forIndexPath:(NSIndexPath *)indexPath; /* 退出下载 */ - (void)cancelDownloadWithTaskIdentifier:(NSString *)taskIdentifier; /** * 开始下载任务 * * @param task */ - (void)addDownloadTask:(GJCFFileDownloadTask *)task; /** * 完成下载 * * @param url 下载链接地址 * @param fileData 下载完成数据 */ - (void)finishDownloadWithTask:(GJCFFileDownloadTask *)task withDownloadFileData:(NSData *)fileData; /** * 文件下载进度 * * @param url 下载链接地址 * @param progress 下载进度 */ - (void)downloadFileWithTask:(GJCFFileDownloadTask *)task progress:(CGFloat)progress; /** * 文件下载失败 * * @param url 下载链接地址 */ - (void)faildDownloadFileWithTask:(GJCFFileDownloadTask *)task; /** * 初始化数据源 */ - (void)initDataManager; /** * 展示粒子特效 * * @param imageName */ - (void)playParticleEffectWithImageName:(NSString *)imageName; /** * 开始粒子特效了 * * @param imageName */ - (void)didBeginPlayPartilceEffectWithImageName:(NSString *)imageName; /** * 完成了粒子特效 * * @param imageName */ - (void)didFinishPlayParticleEffectImageWithName:(NSString *)imageName; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTToast.h
// // BTToast.h // BabyTrip // // Created by ZYVincent on 15/7/19. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #define BTToast(title) [BTToast showToast:title] #define BTToastError(error) [BTToast showToastError:error] @interface BTToast : NSObject + (void)showToast:(NSString *)title; + (void)showToastError:(NSError *)error; + (void)showToast:(NSString *)title state:(BOOL)isSuccess; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/Video/GJGCVideoPlayerViewController.h
<reponame>AnriKaede/ZY2017IM // // GJGCVideoRecordViewController.h // ZYChat // // Created by ZYVincent on 16/2/21. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" @class GJGCVideoPlayerViewController; @protocol GJGCVideoPlayerViewControllerDelegate <NSObject> - (void)videoPlayerDidTapped:(GJGCVideoPlayerViewController *)playerViewController; @end @interface GJGCVideoPlayerViewController : GJGCBaseViewController @property (nonatomic,assign)NSTimeInterval maxDuration; @property (nonatomic,weak)id<GJGCVideoPlayerViewControllerDelegate> delegate; - (instancetype)initWithDelegate:(id<GJGCVideoPlayerViewControllerDelegate>)aDelegate withVideoUrl:(NSURL *)videoUrl; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/RecentContactList/GJGCRecentContactListDataManager.h
// // GJGCRecentContactListDataManager.h // ZYChat // // Created by ZYVincent on 15/11/24. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCInfoBaseListDataManager.h" @interface GJGCRecentContactListDataManager : GJGCInfoBaseListDataManager @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/AppWall/GJGCAppWallParamsModel.h
<filename>ZYChat-EaseMob/ZYChat/AppWall/GJGCAppWallParamsModel.h // // GJGCAppWallParamsModel.h // ZYChat // // Created by ZYVincent on 15/11/26. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> @interface GJGCAppWallParamsModel : NSObject @property (nonatomic,assign)BOOL isPay; @property (nonatomic,strong)NSString *categoryId; @property (nonatomic,strong)NSString *area; @property (nonatomic,strong)NSString *date; @property (nonatomic,strong)NSString *device; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/PublicGroup/GJGCPulicGroupListDataManager.h
// // GJGCPulicGroupListDataManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/21. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCInfoBaseListDataManager.h" @interface GJGCPulicGroupListDataManager : GJGCInfoBaseListDataManager @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/MusicShare/GJGCMusicSharePlayer.h
<gh_stars>1000+ // // GJGCMusicSharePlayer.h // ZYChat // // Created by ZYVincent on 16/12/18. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import "GJCFAudioPlayer.h" @interface GJGCMusicSharePlayer : NSObject<GJCFAudioPlayerDelegate> @property (nonatomic,strong)GJCFAudioPlayer *audioPlayer; @property (nonatomic,strong)NSMutableArray *observers; #pragma mark - 扩展音乐分享消息 @property (nonatomic,copy)NSString *musicSongName; @property (nonatomic,copy)NSString *musicSongAuthor; @property (nonatomic,copy)NSString *musicSongUrl; @property (nonatomic,copy)NSString *musicSongId; @property (nonatomic,copy)NSString *musicSongImgUrl; @property (nonatomic,copy)NSString *musicMsgId; @property (nonatomic,copy)NSString *musicChatId; @property (nonatomic,assign)BOOL isPlayingMusic; + (GJGCMusicSharePlayer *)sharePlayer; - (void)shouldStopPlay; - (void)addPlayObserver:(id<GJCFAudioPlayerDelegate>)observer; - (void)removePlayObserver:(id<GJCFAudioPlayerDelegate>)observer; - (void)signOut; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/tagView/GJGCTagView.h
// // GJGCTagView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14/11/23. // Copyright (c) 2014年 ZYV. All rights reserved. // #import <UIKit/UIKit.h> @interface GJGCTagView : UIView @property (nonatomic,copy) NSAttributedString *content; @property (nonatomic,copy) NSString *imageName; @property (nonatomic,assign)NSInteger type; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseSortCondition.h
<reponame>AnriKaede/ZY2017IM // // ZYDatabaseSortCondition.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/9. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYDatabaseConst.h" @interface ZYDatabaseSortCondition : NSObject @property (nonatomic,strong)NSString *colunmName; @property (nonatomic,assign)ZYDatabaseSortOperation operation; @property (nonatomic,readonly)NSString *sqlString; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputPanelStyle.h
<filename>ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputPanelStyle.h // // GJGCChatInputPanelStyle.h // GJGCChatInputPanel // // Created by ZYVincent QQ:1003081775 on 15/7/10. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> @interface GJGCChatInputPanelStyle : NSObject + (UIColor *)mainSeprateLineColor; + (UIColor *)mainThemeColor; + (UIColor *)mainBackgroundColor; + (UIColor *)baseAndTitleAssociateTextColor; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/ViewController/GJGCInformationBaseDataSourceManager.h
// // GJGCInformationBaseDataSourceManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCInformationBaseModel.h" #import "GJGCInformationCellConstans.h" #import "gjgcinformationCellContentModel.h" @interface GJGCInformationBaseDataSourceManager : NSObject - (NSInteger)totalCount; - (Class)contentCellAtIndex:(NSInteger)index; - (NSString *)contentCellIdentifierAtIndex:(NSInteger)index; - (GJGCInformationBaseModel *)contentModelAtIndex:(NSInteger)index; - (CGFloat)rowHeightAtIndex:(NSInteger)index; - (void)addInformationItem:(GJGCInformationCellContentModel *)item; - (void)insertInformationItem:(GJGCInformationCellContentModel *)item AtIndex:(NSInteger)index; - (void)removeAtIndex:(NSInteger)index; /** * 删除所以数据项 */ - (void)removeAllData; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Contacts/GJGCContactsConst.h
// // GJGCContactsConst.h // ZYChat // // Created by ZYVincent on 16/8/9. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, GJGCContactsContentType) { GJGCContactsContentTypeHeader, GJGCContactsContentTypeName, GJGCContactsContentTypeUser, }; @interface GJGCContactsConst : NSObject + (Class)cellClassForContentType:(GJGCContactsContentType)contentType; + (NSString *)cellIdentifierForContentType:(GJGCContactsContentType)contentType; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/SystemAssist/GJGCChatSystemNotiReciever.h
<reponame>AnriKaede/ZY2017IM // // GJGCChatSystemNotiReciever.h // ZYChat // // Created by ZYVincent on 16/6/28. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #define SystemAssistConversationId @"zychat_system_assist" #define GJGCChatSystemNotiRecieverDidReiceveSystemNoti @"GJGCChatSystemNotiRecieverDidReiceveSystemNoti" @interface GJGCChatSystemNotiReciever : NSObject + (GJGCChatSystemNotiReciever *)shareReciever; - (EMConversation *)systemAssistConversation; - (void)insertSystemMessageInfo:(NSDictionary *)messageInfo; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Call/GJGCCallDataManager.h
<gh_stars>1000+ // // GJGCCallDataManager.h // ZYChat // // Created by bob on 16/8/25. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> @interface GJGCCallDataManager : NSObject + (GJGCCallDataManager *)sharedManager; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/MusicShare/GJGCMusicPlayViewController.h
<reponame>AnriKaede/ZY2017IM // // GJGCMusicPlayViewController.h // ZYChat // // Created by ZYVincent on 15/11/25. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" @interface GJGCMusicPlayViewController : GJGCBaseViewController - (instancetype)initWithSongId:(NSString *)songId; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/NSDictionary+Json/NSString+Json.h
// // NSString+Json.h // ZYChat // // Created by ZYVincent on 16/6/29. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Json) - (NSDictionary *)toDictionary; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/View/GJCFAssetsPickerCell.h
// // GJAssetsPickerCell.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-8. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFAssetsView.h" @class GJCFAssetsPickerCell; @protocol GJCFAssetsPickerCellDelegate <NSObject> /* 当cell中某个位置的照片标记状态改变时候调用 */ - (void)assetsPickerCell:(GJCFAssetsPickerCell*)assetsPickerCell didChangeStateAtIndex:(NSInteger)index withState:(BOOL)isSelected; /* 决定cell中某个位置的照片是否可以选中 */ - (BOOL)assetsPickerCell:(GJCFAssetsPickerCell *)assetsPickerCell shouldChangeToSelectedStateAtIndex:(NSInteger)index; /* 决定从这个Cell的某张照片开始进入大图模式 */ - (void)assetsPickerCell:(GJCFAssetsPickerCell *)assetsPickerCell shouldBeginBigImageShowAtIndex:(NSInteger)index; @end /* GJPhotosController 视图的单元行 */ @interface GJCFAssetsPickerCell : UITableViewCell<GJCFAssetsPickerOverlayViewDelegate> /* 有多少列 */ @property (nonatomic,assign)NSInteger colums; /* 两列之间的间隔距离 */ @property (nonatomic,assign)CGFloat columSpace; /* 代理 */ @property (nonatomic,weak)id<GJCFAssetsPickerCellDelegate> delegate; /* 标记状态的视图 */ @property (nonatomic,strong)Class overlayViewClass; /* 是否开启大图浏览模式 */ @property (nonatomic,assign)BOOL enableBigImageShowAction; - (void)setAssets:(NSArray*)assets; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/MainTab/BTCustomTabBar.h
// // BTCustomTabBar.h // BabyTrip // // Created by ZYVincent on 15/7/18. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "BTCustomTabBarItem.h" @class BTCustomTabBar; @protocol BTCustomTabBarDelegate <NSObject> @required /** * 数据源 * * @param tabBar * * @return @[@{@"title":@"",@"normal":@"xxx.png",@"selected":@"",@"normalColor":[UIColor],@"selecedColor":[UIColor]}] */ - (NSArray *)customTabBarSourceItems:(BTCustomTabBar *)tabBar; /** * 选中了哪个 * * @param tabBar * @param index */ - (void)customTabBar:(BTCustomTabBar *)tabBar didChoosedIndex:(NSInteger)index; @end @interface BTCustomTabBar : UIView @property (nonatomic,assign)NSInteger selectedIndex; @property (nonatomic,weak)id<BTCustomTabBarDelegate> delegate; @property (nonatomic,strong)UIImageView *backgroundView; @property (nonatomic,assign)ZYResourceType type; - (instancetype)initWithFrame:(CGRect)frame withDataSource:(id<BTCustomTabBarDelegate>)aDelegate; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/WallPaper/MJRefresh/UIScrollView+MJExtension.h
// // UIScrollView+Extension.h // MJRefreshExample // // Created by <NAME> on 14-5-28. // Copyright (c) 2014年 itcast. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (MJExtension) @property (assign, nonatomic) CGFloat mj_contentInsetTop; @property (assign, nonatomic) CGFloat mj_contentInsetBottom; @property (assign, nonatomic) CGFloat mj_contentInsetLeft; @property (assign, nonatomic) CGFloat mj_contentInsetRight; @property (assign, nonatomic) CGFloat mj_contentOffsetX; @property (assign, nonatomic) CGFloat mj_contentOffsetY; @property (assign, nonatomic) CGFloat mj_contentSizeWidth; @property (assign, nonatomic) CGFloat mj_contentSizeHeight; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/Uitil/UILabel+GJCFAssetsPickerStyle.h
<gh_stars>1000+ // // UILabel+GJAssetsPickerStyle.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-10. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFAssetsPickerCommonStyleDescription.h" @interface UILabel (GJCFAssetsPickerStyle) /* 设定相关属性 */ - (void)setCommonStyleDescription:(GJCFAssetsPickerCommonStyleDescription*)aDescription; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetSimpleTextCell.h
<filename>ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetSimpleTextCell.h<gh_stars>1000+ // // BTActionSheetSimpleTextCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/2. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "BTActionSheetBaseCell.h" @interface BTActionSheetSimpleTextCell : BTActionSheetBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/RelationManager/ZYChatConversation.h
// // ZYChatConversation.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/17. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYUserModel.h" @interface ZYChatConversation : NSObject @property (nonatomic,strong)NSString *sessionId; @property (nonatomic,strong)NSString *title; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Base/GJGCInformationBaseCellDelegate.h
// // GJGCInformationBaseCellDelegate.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-11. // Copyright (c) 2014年 ZYV. All rights reserved. // #import <Foundation/Foundation.h> @class GJGCInformationBaseCell; @protocol GJGCInformationBaseCellDelegate <NSObject> @optional /** * 点击个人相册 * * @param photoBoxCell * @param index */ - (void)informationPersonPhotoBoxCell:(GJGCInformationBaseCell *)photoBoxCell didTapOnPhotoIndex:(NSInteger)index; /** * 点击群组相册 * * @param photoBoxCell * @param index */ - (void)informationGroupPhotoBoxCell:(GJGCInformationBaseCell *)photoBoxCell didTapOnPhotoIndex:(NSInteger)index; /** * 点击加入群组中的某一个群组 * * @param groupShowCell * @param index */ - (void)informationGroupShowCell:(GJGCInformationBaseCell *)groupShowCell didTapOnGroupItemIndex:(NSInteger)index; /** * 点击了群成员展示的邀请按钮 * * @param memberShowCell */ - (void)informationMemberShowCellDidTapOnInviteMember:(GJGCInformationBaseCell *)memberShowCell; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/PersonInformation/GJGCMyHomePageViewController.h
<filename>ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/PersonInformation/GJGCMyHomePageViewController.h // // GJGCMyHomePageViewController.h // ZYChat // // Created by ZYVincent on 15/11/22. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCInformationBaseViewController.h" @interface GJGCMyHomePageViewController : GJGCInformationBaseViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/WallPaper/model/ZWCollectionViewFlowLayout.h
<filename>ZYChat-EaseMob/ZYChat/WallPaper/model/ZWCollectionViewFlowLayout.h<gh_stars>1000+ // // ZWCollectionViewFlowLayout.h // 瀑布流demo // // Created by yuxin on 15/6/6. // Copyright (c) 2015年 yuxin. All rights reserved. // #import <UIKit/UIKit.h> @class ZWCollectionViewFlowLayout; @protocol ZWwaterFlowDelegate <NSObject> -(CGFloat)ZWwaterFlow:(ZWCollectionViewFlowLayout*)waterFlow heightForWidth:(CGFloat)width atIndexPath:(NSIndexPath*)indexPach; @end @interface ZWCollectionViewFlowLayout : UICollectionViewLayout @property(nonatomic,assign)UIEdgeInsets sectionInset; @property(nonatomic,assign)CGFloat rowMagrin; @property(nonatomic,assign)CGFloat colMagrin; @property(nonatomic,assign)CGFloat colCount; @property(nonatomic,weak)id<ZWwaterFlowDelegate>degelate; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Login/HARegistInputTextCell.h
// // HARegistInputTextCell.h // HelloAsk // // Created by ZYVincent on 15-9-4. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "HARegistContentModel.h" @class HARegistInputTextCell; @protocol HARegistInputTextCellDelegate <NSObject> - (void)inputCell:(HARegistInputTextCell *)inputCell didUpdateContent:(NSString *)content; @end @interface HARegistInputTextCell : UITableViewCell @property (nonatomic,weak)id<HARegistInputTextCellDelegate> delegate; - (void)setContentModel:(HARegistContentModel *)contentModel; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputTextView.h
// // GJGCInputTextView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-10-28. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCChatInputConst.h" @class GJGCChatInputTextView; typedef void (^GJGCChatInputTextViewFrameDidChangeBlock) (GJGCChatInputTextView *textView,CGFloat changeDetal); typedef void (^GJGCChatInputTextViewRecordActionChangeBlock) (GJGCChatInputTextViewRecordActionType actionType); typedef void (^GJGCChatInputTextViewFinishInputTextBlock) (GJGCChatInputTextView *textView,NSString *text); typedef void (^GJGCChatInputTextViewDidBecomeFirstResponseBlock) (GJGCChatInputTextView *textView); #define GJGCChatInputTextViewContentChangeNoti @"GJGCChatInputTextViewContentChangeNoti" @interface GJGCChatInputTextView : UIView /** * 准备录音的标题 */ @property (nonatomic,strong)NSString *preRecordTitle; /** * 正在录音时候的标题 */ @property (nonatomic,strong)NSString *recordingTitle; /** * 输入文本时候的背景 */ @property (nonatomic,strong)UIImage *inputTextBackgroundImage; /** * 录音时候的背景 */ @property (nonatomic,strong)UIImage *recordAudioBackgroundImage; /** * 是否录音输入状态 */ @property (nonatomic,assign,getter=isRecordState)BOOL recordState; /** * 当前文本内容 */ @property (nonatomic,strong)NSString *content; /** * 最大自动伸展高度 */ @property (nonatomic,assign)CGFloat maxAutoExpandHeight; /** * 最小高度 */ @property (nonatomic,assign)CGFloat minAutoExpandHeight; /** * 表情数组 */ @property (nonatomic,strong)NSMutableArray *emojiInfoArray; @property (nonatomic,strong)NSString *panelIdentifier; @property (nonatomic,readonly)CGFloat inputTextStateHeight; /** * 占位文本 */ @property (nonatomic,strong)NSString *placeHolder; /** * 当前文本是否合法 * * @return 是否合法 */ - (BOOL)isValidateContent; /** * 恢复到初始状态 */ - (void)reserveToNormal; /** * 注销第一响应 */ - (void)resignFirstResponder; - (void)updateDisplayByInputContentTextChange; - (void)layoutInputTextView; - (BOOL)isInputTextFirstResponse; /** * 成为第一响应者 */ - (void)becomeFirstResponder; /** * 观察frame变化 * * @param changeBlock */ - (void)configFrameChangeBlock:(GJGCChatInputTextViewFrameDidChangeBlock)changeBlock; /** * 观察录音动作变化 * * @param actionBlock */ - (void)configRecordActionChangeBlock:(GJGCChatInputTextViewRecordActionChangeBlock)actionBlock; /** * 完成文本输入 * * @param finishBlock */ - (void)configFinishInputTextBlock:(GJGCChatInputTextViewFinishInputTextBlock)finishBlock; - (void)configTextViewDidBecomeFirstResponse:(GJGCChatInputTextViewDidBecomeFirstResponseBlock)firstResponseBlock; - (void)clearInputText; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseCRUDCondition.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseCRUDCondition.h<gh_stars>1000+ // // ZYDatabaseCRUDCondition.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/9. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYDatabaseConst.h" #import "ZYDatabaseColunmCondition.h" #import "ZYDatabaseSortCondition.h" #import "ZYDatabaseWhereCondition.h" @interface ZYDatabaseCRUDCondition : NSObject @property (nonatomic,assign)ZYDatabaseAction action; @property (nonatomic,strong)NSString *tableName; //左联接,右链接,内链接,暂时不实现 @property (nonatomic,strong)NSDictionary *joinMaps; //建表的属性字段 @property (nonatomic,strong)NSArray *createColunmConditions; //属性字符串数组 @property (nonatomic,strong)NSArray *queryColoums; //需要创建或者更新的字段,@[@{},@{}] @property (nonatomic,strong)NSArray *updateValues; //更新的formate语句 @property (nonatomic,readonly)NSString *updateFormatSql; //更新的值数组 @property (nonatomic,readonly)NSArray *updateFormateValues; //ZYDatabaseWhereCondition对象数组 @property (nonatomic,strong)NSArray *andConditions; //条件查询时候的值,用来跟formate形式匹配 @property (nonatomic,readonly)NSArray *andConditionValues; //更新的时候用的条件参数 @property (nonatomic,readonly)NSArray *updateWhereValues; //ZYDatabaseSortCondition对象数组 @property (nonatomic,strong)NSArray *sortConditions; //翻页限制条件 @[@(startIndex),@(pageCount)]; @property (nonatomic,strong)NSArray *limitCondition; @property (nonatomic,readonly)NSString *sqlString; @property (nonatomic,readonly)BOOL isValidate; @property (nonatomic,readonly)NSString *conditionErrorMsg; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputBar.h
// // GJGCCommonInputBar.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-10-28. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCChatInputBarItem.h" #import "GJGCChatInputTextView.h" #import "GJGCChatInputConst.h" @class GJGCChatInputBar; /** * 输入条改变了frame * * @param inputBar * @param changeToFrame 改变后的frame */ typedef void (^GJGCChatInputBarDidChangeFrameBlock) (GJGCChatInputBar *inputBar,CGFloat changeDelta); /** * 输入条改变了输入动作 * * @param inputBar * @param toActionType 改变后的输入动作 */ typedef void (^GJGCChatInputBarDidChangeActionBlock) (GJGCChatInputBar *inputBar,GJGCChatInputBarActionType toActionType); /** * 输入条要求发送文本 * * @param inputBar * @param text */ typedef void (^GJGCChatInputBarDidTapOnSendTextBlock) (GJGCChatInputBar *inputBar,NSString *text); @interface GJGCChatInputBar : UIView @property (nonatomic,assign)CGFloat barHeight; @property (nonatomic,assign)CGFloat inputTextStateBarHeight; @property (nonatomic,strong)NSString *panelIdentifier; /** * 文本输入默认占位 */ @property (nonatomic,strong)NSString *inputTextViewPlaceHolder; /** * 当前动作类型 */ @property (nonatomic,readonly)GJGCChatInputBarActionType currentActionType; /** * 不可用动作 */ @property (nonatomic,assign)GJGCChatInputBarActionType disableActionType; /** * 输入条改变了frame观察 * * @param changeBlock */ - (void)configBarDidChangeFrameBlock:(GJGCChatInputBarDidChangeFrameBlock)changeBlock; /** * 输入条改变了动作类型观察 * * @param actionBlock */ - (void)configBarDidChangeActionBlock:(GJGCChatInputBarDidChangeActionBlock)actionBlock; /** * 输入条的录音动作变化 * * @param actionBlock */ - (void)configInputBarRecordActionChangeBlock:(GJGCChatInputTextViewRecordActionChangeBlock)actionBlock; /** * 输入条发送文本消息动作 * * @param sendTextBlock */ - (void)configBarTapOnSendTextBlock:(GJGCChatInputBarDidTapOnSendTextBlock)sendTextBlock; /** * 调整为评论条样式 */ - (void)setupForCommentBarStyle; /* 恢复初始状态 */ - (void)reserveState; /* 恢复评论初始状态 */ - (void)reserveCommentState; - (void)inputTextResigionFirstResponse; - (BOOL)isInputTextFirstResponse; - (void)inputTextBecomeFirstResponse; - (void)clearInputText; //解除好友关系后要求禁止语音输入 - (void)recordRightStartLimit; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/EaseMob/include/EMImageMessageBody.h
/*! * \~chinese * @header EMImageMessageBody.h * @abstract 图片消息体 * @author Hyphenate * @version 3.00 * * \~english * @header EMImageMessageBody.h * @abstract Image message body * @author Hyphenate * @version 3.00 */ #import <Foundation/Foundation.h> #import "EMFileMessageBody.h" /*! * \~chinese * 图片消息体,SDK发送消息前会根据compressRatio压缩通过-(instancetype)initWithData:displayName:或 * -(instancetype)initWithData:thumbnailData:创建的消息体的图片 * * \~english * Image message body, SDK will compress the image of message body that created by -(instancetype)initWithData:displayName: or * -(instancetype)initWithData:thumbnailData before send the message */ @interface EMImageMessageBody : EMFileMessageBody /*! * \~chinese * 图片附件的尺寸 * * \~english * Size of image attachment */ @property (nonatomic) CGSize size; /*! * \~chinese * 设置发送图片消息时的压缩率,1.0时不压缩,默认值是0.6,如果设置了小于等于0的值,则使用默认值 * * \~english * Set compress ratio of image message, 1.0 without compress, default value is 0.6, will use the default value if try to set a value that equal to or less than 0 */ @property (nonatomic) CGFloat compressRatio; /*! * \~chinese * 缩略图的显示名 * * \~english * Display name of thumbnail */ @property (nonatomic, copy) NSString *thumbnailDisplayName; /*! * \~chinese * 缩略图的本地路径 * * \~english * Local path of thumbnail */ @property (nonatomic, copy) NSString *thumbnailLocalPath; /*! * \~chinese * 缩略图在服务器的路径 * * \~english * Server path of thumbnail */ @property (nonatomic, copy) NSString *thumbnailRemotePath; /*! * \~chinese * 缩略图的密钥, 下载缩略图时需要密匙做校验 * * \~english * Secret key of thumbnail, need verify secret key when download thumbnail */ @property (nonatomic, copy) NSString *thumbnailSecretKey; /*! * \~chinese * 缩略图的尺寸 * * \~english * Size of thumbnail */ @property (nonatomic) CGSize thumbnailSize; /*! * \~chinese * 缩略图文件的大小, 以字节为单位 * * \~english * File length of thumbnail, in bytes */ @property (nonatomic) long long thumbnailFileLength; /*! * \~chinese * 缩略图下载状态 * * \~english * Download status of thumbnail */ @property (nonatomic)EMDownloadStatus thumbnailDownloadStatus; /*! * \~chinese * 初始化图片消息体 * * @param aData 图片数据 * @param aThumbnailData 缩略图数据 * * @result 图片消息体实例 * * \~english * Initialize image message body instance * * @param aData The data of image * @param aThumbnailData The data of thumbnail * * @result Image message body instance */ - (instancetype)initWithData:(NSData *)aData thumbnailData:(NSData *)aThumbnailData; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetConst.h
<gh_stars>1000+ // // BTActionSheetConst.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/2. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, BTActionSheetContentType) { BTActionSheetContentTypeSimpleText, BTActionSheetContentTypeNameAndDetail, }; @interface BTActionSheetConst : NSObject + (Class)cellClassForContentType:(BTActionSheetContentType)contentType; + (NSString *)cellIdentifierForContentType:(BTActionSheetContentType)contentType; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendImageMessageCell.h
// // GJGCChatFriendImageMessageCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-5. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import "GJGCChatFriendBaseCell.h" @interface GJGCChatFriendImageMessageCell : GJGCChatFriendBaseCell @property (nonatomic,copy)NSString *imgUrl; @property (nonatomic,strong)UIImageView *contentImageView; @property (nonatomic,strong)UIImageView *blankImageView; @property (nonatomic,strong)GJCUProgressView *progressView; @property (nonatomic,assign)CGFloat downloadProgress; - (void)resetState; - (void)resetStateWithPrepareSize:(CGSize)pSize; - (void)removePrepareState; - (void)faildState; - (void)successDownloadWithImageData:(NSData *)imageData; - (void)tapOnContentImageView; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Contacts/GJGCContactsHeaderCell.h
// // GJGCContactsHeaderCell.h // ZYChat // // Created by ZYVincent on 16/8/9. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import "GJGCContactsBaseCell.h" @interface GJGCContactsHeaderCell : GJGCContactsBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFCoreText/StringStyle/GJCFCoreTextKeywordAttributedStringStyle.h
// // GJCFCoreTextKeywordAttributedStringStyle.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-9-23. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import "GJCFCoreTextAttributedStringStyle.h" @interface GJCFCoreTextKeywordAttributedStringStyle : GJCFCoreTextAttributedStringStyle /* 起始位置前间距 */ @property (nonatomic,assign)CGFloat preGap; /* 结束位置后间距 */ @property (nonatomic,assign)CGFloat endGap; /* 关键字内间距 */ @property (nonatomic,assign)CGFloat innerGap; /* 关键字 */ @property (nonatomic,strong)NSString *keyword; /* 关键字颜色 */ @property (nonatomic,strong)UIColor *keywordColor; /* 关键字字体 */ @property (nonatomic,strong)UIFont *keywordFont; /* 直接指定关键字的范围 */ @property (nonatomic,assign)NSRange destKeywordRange; /* 获取一个关键词在目标字符串中的所有range */ + (NSArray *)getAllKeywordRangeFromString:(NSString *)destString forKeyword:(NSString *)keyword; /* 设置关键字效果 */ - (void)setKeywordEffectForString:(NSMutableAttributedString*)destString; /* 直接为指定字符串范围设置一些关键字相关的属性,这个时候需要有destKeywordRange */ - (void)setKeywordEffectByKeywordRangeForString:(NSMutableAttributedString*)destString; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Login/HARegistViewController.h
<gh_stars>1000+ // // HARegistViewController.h // HelloAsk // // Created by ZYVincent on 15-9-4. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" @interface HARegistViewController : GJGCBaseViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/SystemAssist/GJGCChatSystemNotiViewController.h
<gh_stars>1000+ // // GJGCSystemNotiViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-11. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import "GJGCChatDetailViewController.h" #import "GJGCChatSystemNotiDataManager.h" @interface GJGCChatSystemNotiViewController : GJGCChatDetailViewController @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFCoreText/StringStyle/GJCFCoreTextImageScriptParser.h
<filename>ZYChat-EaseMob/ZYChat/Dependcy/GJCFCoreText/StringStyle/GJCFCoreTextImageScriptParser.h // // GJCFCoreTextImageScriptParser.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-12. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import "GJCFCoreTextImageAttributedStringStyle.h" @class GJCFCoreTextImageScriptParser; @protocol GJCFCoreTextImageScriptParserDelegate <NSObject> @required //要求图片标签必须实现的代理协议来解析成合法的格式,解析返回的是图片字符串对象的数组 - (GJCFCoreTextImageAttributedStringStyle *)formateImageScript:(NSString *)imageScript; @end @interface GJCFCoreTextImageScriptParser : NSObject @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationPersonPhotoBoxCell.h
// // GJGCInformationPersonPhotoBoxCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import "GJGCInformationBaseCell.h" #import "GJGCInformationPhotoBox.h" #import "GJGCInformationCellContentModel.h" #import "GJGCTagView.h" @interface GJGCInformationPersonPhotoBoxCell : GJGCInformationBaseCell @property (nonatomic,strong)GJGCInformationPhotoBox *photoBox; @property (nonatomic,strong)GJCFCoreTextContentView *nameLabel; @property (nonatomic,strong)GJCFCoreTextContentView *distanceLabel; @property (nonatomic,strong)UIImageView *distanceTimeSeprateLine; @property (nonatomic,strong)UIImageView *sexImgView; @property (nonatomic,strong)GJCFCoreTextContentView *timeLabel; @property (nonatomic,strong)GJCFCoreTextContentView *ageLabel; @property (nonatomic,strong)GJCFCoreTextContentView *starNameLabel; @property (nonatomic,strong)GJCFCoreTextContentView *helloCountLabel; @property (nonatomic,assign)CGFloat contentBordMargin; @property (nonatomic,strong)GJGCTagView *personAttrView; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/CreateGroup/sqlService.h
<reponame>AnriKaede/ZY2017IM // // sqlService.h // SQLite3Test // // Created by fengxiao on 11-11-28. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> #define kFilename @"City.s3db" @class sqlTestList; @interface sqlService : NSObject { sqlite3 *_database; } @property (nonatomic) sqlite3 *_database; -(BOOL) createTestList:(sqlite3 *)db; - (NSMutableArray*)getCityListByProvinceCode:(NSString*)scode; //- (NSMutableArray*)getProvinceList; //创建数据库 //-(BOOL) insertTestList:(sqlTestList *)insertList;//插入数据 //-(BOOL) updateTestList:(sqlTestList *)updateList;//更新数据 //-(NSMutableArray*)getTestList;//获取全部数据 //- (BOOL) deleteTestList:(sqlTestList *)deletList;//删除数据: //- (NSMutableArray*)searchTestList:(int)searchID;//查询数据库,searchID为要查询数据的ID,返回数据为查询到的数据 @end @interface sqlTestList : NSObject { int sqlID; NSString *sqlText; } @property (nonatomic) int sqlID; @property (nonatomic, retain) NSString *sqlText; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/DataCenter/ZYDataCenterInterface.h
// // ZYDataCenterInterface.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/6. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #define ZYDataCenterServerHost @"http://localhost/happy_fun/index.php" //#define ZYDataCenterServerHost @"http://192.168.1.18/happy_fun/index.php" /** * 请求类型 */ typedef NS_ENUM(NSUInteger, ZYDataCenterRequestType) { /** * 未知 */ ZYDataCenterRequestTypeUnknow = 0, /** * 注册 */ ZYDataCenterRequestTypeRegist, /** * 登录 */ ZYDataCenterRequestTypeLogin, /** * 所有用户 */ ZYDataCenterRequestTypeAllUserList, /** * 好友申请列表 */ ZYDataCenterRequestTypeFriendApplyList, /** * 申请加好友 */ ZYDataCenterRequestTypeApplyAddFriend, /** * 关系变更 */ ZYDataCenterRequestTypeRelationUpdate, /** * 删除好友 */ ZYDataCenterRequestTypeDeleteFriend, /** * 我的好友列表 */ ZYDataCenterRequestTypeMyFriendList, }; @interface ZYDataCenterInterface : NSObject + (NSString *)urlWithRequestType:(ZYDataCenterRequestType)requestType; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/AppWall/GJGCAppWallAreaSheetDataManager.h
// // GJGCAppWallAreaSheetDataManager.h // ZYChat // // Created by ZYVincent on 15/11/26. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "BTActionSheetDataManager.h" @interface GJGCAppWallAreaSheetDataManager : BTActionSheetDataManager @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/SCRecorder/CIImageRendererUtils.h
<reponame>AnriKaede/ZY2017IM // // CIImageRendererUtils.h // SCRecorder // // Created by <NAME> on 13/09/14. // Copyright (c) 2014 rFlex. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "SCSampleBufferHolder.h" #import "CIImageRenderer.h" @interface CIImageRendererUtils : NSObject + (CGRect)processRect:(CGRect)rect withImageSize:(CGSize)imageSize contentScale:(CGFloat)contentScale contentMode:(UIViewContentMode)mode; + (CIImage *)generateImageFromSampleBufferHolder:(SCSampleBufferHolder *)sampleBufferHolder; + (CGAffineTransform)preferredCIImageTransformFromUIImage:(UIImage *)image; + (void)putUIImage:(UIImage *)image toRenderer:(id<CIImageRenderer>)renderer; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationCellStyle.h
// // GJGCInformationCellStyle.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCChatSystemNotiCellStyle.h" @interface GJGCInformationCellStyle : NSObject /* 相册里面得标签 */ + (NSAttributedString *)formatePersonPhotoBoxName:(NSString *)name; + (NSAttributedString *)formatePersonPhotoBoxDistanceOrTime:(NSString *)distanceOrTime; + (NSAttributedString *)formatePersonPhotoBoxWomenAge:(NSString *)age; + (NSAttributedString *)formatePersonPhotoBoxManAge:(NSString *)age; + (NSAttributedString *)formatePersonPhotoBoxStarNameOrHelloCount:(NSString *)starNameOrHelloCount; + (NSAttributedString *)formateGroupPhotoBoxName:(NSString *)name; + (NSAttributedString *)formateGroupPhotoBoxDistance:(NSString *)distance; /* 基础 text cell */ + (NSAttributedString *)formateBaseTextTag:(NSString *)tag; + (NSAttributedString *)formateBaseTextContent:(NSString *)content; /* 简介,需要有换行距离 */ + (NSAttributedString *)formateSummaryText:(NSString *)summary; /* 动态内容 */ + (NSAttributedString *)formateFeedContent:(NSString *)content; /* 字符串加省略号 */ + (NSAttributedString *)formateNameTrailMode:(NSString *)name; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseConst.h
// // ZYDatabaseConst.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/9. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, ZYDatabaseAction) { ZYDatabaseActionSelect, ZYDatabaseActionInsert, ZYDatabaseActionUpdate, ZYDatabaseActionDelete, ZYDatabaseActionCreateTable, }; typedef NS_ENUM(NSUInteger, ZYDatabaseWhereOperation) { ZYDatabaseWhereOperationEqual, ZYDatabaseWhereOperationBigger, ZYDatabaseWhereOperationSmaller, ZYDatabaseWhereOperationBiggerEqual, ZYDatabaseWhereOperationSmallerEqual, }; typedef NS_ENUM(NSUInteger, ZYDatabaseSortOperation) { ZYDatabaseSortOperationDESC, ZYDatabaseSortOperationASC, }; typedef NS_ENUM(NSUInteger, ZYDatabaseValueType) { ZYDatabaseValueTypeText, ZYDatabaseValueTypeVarchar, ZYDatabaseValueTypeInt, ZYDatabaseValueTypeBigInt, };
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendVideoCell.h
<gh_stars>1000+ // // GJGCChatFriendVideoCell.h // ZYChat // // Created by ZYVincent on 16/2/21. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import "GJGCChatFriendBaseCell.h" #import "VKVideoPlayer.h" @interface GJGCChatFriendVideoCell : GJGCChatFriendBaseCell @property (nonatomic,copy)NSString *imgUrl; @property (nonatomic,copy)NSURL *videoUrl; @property (nonatomic,strong)UIImageView *contentImageView; @property (nonatomic,strong)UIImageView *blankImageView; @property (nonatomic,strong)GJCUProgressView *progressView; @property (nonatomic,assign)CGFloat downloadProgress; @property (nonatomic,strong)VKVideoPlayer *player; - (void)resetState; - (void)resetStateWithPrepareSize:(CGSize)pSize; - (void)removePrepareState; - (void)faildState; - (void)successDownloadWithImageData:(NSData *)imageData; - (void)stopAction; - (void)playAction; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputExpandEmojiPanelMenuBarDataSource.h
// // GJGCChatInputExpandEmojiPanelMenuBarDataSource.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/6/4. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCChatInputExpandEmojiPanelMenuBarDataSourceItem.h" @interface GJGCChatInputExpandEmojiPanelMenuBarDataSource : NSObject + (NSArray *)menuBarItems; + (NSArray *)commentBarItems; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/SCRecorder/SCRecorderToolsView.h
<filename>ZYChat-EaseMob/ZYChat/Dependcy/SCRecorder/SCRecorderToolsView.h // // SCRecorderToolsView.h // SCRecorder // // Created by <NAME> on 16/02/15. // Copyright (c) 2015 rFlex. All rights reserved. // #import <UIKit/UIKit.h> #import "SCRecorder.h" //typedef enum : NSUInteger { // SCRecorderToolsViewShowFocusModeNever, // SCRecorderToolsViewShowFocusModeOnlyOnSubjectChanged, // SCRecorderToolsViewShowFocusModeAlways //} SCRecorderToolsViewShowFocusMode; @class SCRecorder; @interface SCRecorderToolsView : UIView /** The instance of the SCRecorder to use. */ @property (strong, nonatomic) SCRecorder *__nullable recorder; /** The outside image used when focusing. */ @property (strong, nonatomic) UIImage *__nullable outsideFocusTargetImage; /** The inside image used when focusing. */ @property (strong, nonatomic) UIImage *__nullable insideFocusTargetImage; /** The size of the focus target. */ @property (assign, nonatomic) CGSize focusTargetSize; /** The minimum zoom allowed for the pinch to zoom. Default is 1 */ @property (assign, nonatomic) CGFloat minZoomFactor; /** The maximum zoom allowed for the pinch to zoom. Default is 4 */ @property (assign, nonatomic) CGFloat maxZoomFactor; /** Whether the tap to focus should be enabled. */ @property (assign, nonatomic) BOOL tapToFocusEnabled; /** Whether the double tap to reset the focus should be enabled. */ @property (assign, nonatomic) BOOL doubleTapToResetFocusEnabled; /** Whether the pinch to zoom should be enabled. */ @property (assign, nonatomic) BOOL pinchToZoomEnabled; @property (assign, nonatomic) BOOL showsFocusAnimationAutomatically; ///** // When the SCRecorderToolsView should show the focus animation // when the focusing state changes. If set to Never, you will have to call // "showFocusAnimation" and "hideFocusAnimation" yourself. // // Default is OnlyOnSubjectChange // */ //@property (assign, nonatomic) SCRecorderToolsViewShowFocusMode showFocusMode; /** Manually show the focus animation. This method is called automatically if showsFocusAnimationAutomatically is set to YES. */ - (void)showFocusAnimation; /** Manually hide the focus animation. This method is called automatically if showsFocusAnimationAutomatically is set to YES. */ - (void)hideFocusAnimation; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCUAsyncImageView/GJCUAsyncImageView.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/Dependcy/GJCUAsyncImageView/GJCUAsyncImageView.h // // GJCFAsyncImageView.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-30. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFUitils.h" #import "UIView+GJCFViewFrameUitil.h" @class GJCUAsyncImageView; typedef void (^GJCUAsyncImageViewDownloadTaskProgressBlock) (GJCUAsyncImageView *imageView,CGFloat progress); typedef void (^GJCUAsyncImageViewDownloadTaskCompletionBlock) (GJCUAsyncImageView *imageView,BOOL completion); @interface GJCUAsyncImageView : UIImageView /** * 需要缓存的目标路径,如果没有设置,就启用默认缓存目录路径 */ @property (nonatomic,strong)NSString *cachePath; /** * 图片地址链接 */ @property (nonatomic,strong)NSString *url; /** * 图片下载进度 */ @property (nonatomic,readonly)CGFloat downloadProgress; /** * 任务唯一标示 */ @property (nonatomic,readonly)NSString *downloadTaskUniqueIdentifier; /** * 转圈 */ @property (nonatomic,strong)UIActivityIndicatorView *indicatorView; /** * 是否显示转圈 */ @property (nonatomic,assign)BOOL showDownloadIndicator; /** * 是否在对象被销毁的时候取消下载任务,默认为NO */ @property (nonatomic,assign)BOOL isAutoCancel; /** * 从缓存路径读取出的图片 */ @property (nonatomic,readonly)UIImage *cachedImage; /** * 组下载任务标示 */ @property (nonatomic,strong)NSString *groupDownloadTaskIdentifier; /** * 观察下载任务完成 * * @param completionBlock 观察者 */ - (void)configDownloadTaskProgressBlock:(GJCUAsyncImageViewDownloadTaskProgressBlock)progressBlock; /** * 观察任务完成 * * @param completionBlock */ - (void)configDownloadTaskCompletionBlock:(GJCUAsyncImageViewDownloadTaskCompletionBlock)completionBlock; /** * 调整转圈位置 */ - (void)adjustIndicatorPosition; /** * 根据组任务标示来取消下载 * * @param groupTaskIdentifier */ + (void)cancelGroupDownloadTask:(NSString *)groupTaskIdentifier; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/ZYNetWork/ZYNetWorkTask.h
<gh_stars>1000+ // // ZYNetWorkTask.h // ZYNetwork // // Created by ZYVincent QQ:1003081775 on 15/7/18. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYNetWorkConst.h" @class ZYNetWorkTask; typedef void (^ZYNetWorkManagerTaskDidSuccessBlock) (ZYNetWorkTask *task, NSDictionary *response); typedef void (^ZYNetWorkManagerTaskDidFaildBlock) (ZYNetWorkTask *task, NSError *error); typedef void (^ZYNetWorkManagerTaskProgressBlock) (ZYNetWorkTask *task,CGFloat progress); @interface ZYNetWorkTask : NSObject /** * 任务优先级 */ @property (nonatomic,assign)NSInteger priority; /** * 任务唯一标示 */ @property (nonatomic,readonly)NSString *taskIdentifier; /** * 任务类型 */ @property (nonatomic,assign)ZYNetworkTaskType taskType; /** * 接口 */ @property (nonatomic,strong)NSString *interface; /** * 任务的主机地址 */ @property (nonatomic,strong)NSString *host; /** * 下载地址 */ @property (nonatomic,strong)NSString *downloadUrl; /** * POST,GET */ @property (nonatomic,assign)ZYNetworkRequestMethod requestMethod; /** * get参数 */ @property (nonatomic,strong)NSDictionary *getParams; /** * get参数字符串 */ @property (nonatomic,strong)NSString *getParamString; /** * post参数 */ @property (nonatomic,strong)NSDictionary *postParams; /** * request Header携带数据 */ @property (nonatomic,strong)NSDictionary *headValues; /** * 连接AFNetworking的任务标示 */ @property (nonatomic,strong)NSString *taskAFNetworkOperationIdentifier; /** * 用户自定义数据 */ @property (nonatomic,strong)NSDictionary *userInfo; /** * 任务状态 */ @property (nonatomic,assign)ZYNetworkTaskState taskState; /** * 拼接的请求地址 */ @property (nonatomic,readonly)NSString *requestUrl; /** * 成功回调 */ @property (nonatomic,copy)ZYNetWorkManagerTaskDidSuccessBlock successBlock; /** * 失败回调 */ @property (nonatomic,copy)ZYNetWorkManagerTaskDidFaildBlock faildBlock; /** * 进度回调 */ @property (nonatomic,copy)ZYNetWorkManagerTaskProgressBlock progressBlock; /** * 描述文本 */ @property (nonatomic,readonly)NSString *descriptionString; /** * 执行过程中被操作的日志 */ @property (nonatomic,strong)NSMutableString *excutingLog; //一组任务的标示 @property (nonatomic,strong)NSString *groupTaskIdentifier; /** * 是否第三方请求任务 */ @property (nonatomic,assign)BOOL isThirdPartyRequest; + (NSString *)taskTypeString:(ZYNetworkTaskType)type; - (NSComparisonResult)compare:(ZYNetWorkTask *)task; - (BOOL)isEqual:(ZYNetWorkTask *)task; //是否一个相同的请求任务 - (BOOL)isEqualRequest:(ZYNetWorkTask *)task; //添加动作轨迹 - (void)appendAction:(NSString *)action; /** * 打印任务轨迹 */ - (void)printTaskHistory; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendConstans.h
// // GJGCChatFriendAndGroupConstans.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-5. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> /** * 聊天内容类型 */ typedef NS_ENUM(NSUInteger, GJGCChatFriendContentType) { /** * 未知类型 */ GJGCChatFriendContentTypeNotFound = 0, /** * 文本消息 */ GJGCChatFriendContentTypeText = 1, /** * 语音消息 */ GJGCChatFriendContentTypeAudio = 2, /** * 图片消息 */ GJGCChatFriendContentTypeImage = 3, /** * 帖子 */ GJGCChatFriendContentTypePost = 4, /** * Mini Message */ GJGCChatFriendContentTypeMini = 5, /** * 时间区间 */ GJGCChatFriendContentTypeTime = 6, /** * 新人欢迎 */ GJGCChatFriendContentTypeMemberWelcome = 7, /** * 群主召唤 */ GJGCChatFriendContentTypeGroupCall = 8, /** * 响应群主召唤 */ GJGCChatFriendContentTypeReplyGroupCall = 9, /** * gif表情 */ GJGCChatFriendContentTypeGif = 10, /** * 漂流瓶 */ GJGCChatFriendContentTypeDriftBottle = 11, /** * 网页消息 */ GJGCChatFriendContentTypeWebPage = 12, /** * 音乐分享 */ GJGCChatFriendContentTypeMusicShare = 13, /** * 短视频 */ GJGCChatFriendContentTypeLimitVideo = 14, /** * 送鲜花 */ GJGCChatFriendContentTypeSendFlower = 15, }; #define GJGCContentTypeToString(contentType) [GJGCChatFriendConstans contentTypeToString:contentType] @interface GJGCChatFriendConstans : NSObject + (NSString *)contentTypeToString:(GJGCChatFriendContentType)contentType; + (NSString *)identifierForContentType:(GJGCChatFriendContentType)contentType; + (Class)classForContentType:(GJGCChatFriendContentType)contentType; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/RelationManager/ZYChatDatabaseManager.h
// // ZYChatDatabaseManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/17. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYUserDatabaseManager.h" @interface ZYChatDatabaseManager : NSObject @property (nonatomic,strong)ZYUserDatabaseManager *userDatabase; + (ZYChatDatabaseManager *)shareManager; - (void)buildEnvironment; - (ZYDatabaseOperation *)commonMessageCreateTableOperation; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendWebPageCell.h
<filename>ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendWebPageCell.h<gh_stars>1000+ // // GJGCChatFriendWebPageCell.h // ZYChat // // Created by ZYVincent on 15/11/24. // Copyright (c) 2015年 ZYProSoft. All rights reserved. // #import "GJGCChatFriendBaseCell.h" @interface GJGCChatFriendWebPageCell : GJGCChatFriendBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/GJGCInformationTextCell.h
// // GJGCInformationTextCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-6. // Copyright (c) 2014年 ZYV. All rights reserved. // #import "GJGCInformationBaseCell.h" #import "GJGCInformationCellContentModel.h" @class GJGCTagView; @class GJGCCommonAttributedStringStyle; @interface GJGCInformationTextCell : GJGCInformationBaseCell @property (nonatomic,strong)GJCFCoreTextContentView *tagLabel; @property (nonatomic,strong)GJCFCoreTextContentView *contentLabel; @property (nonatomic,assign)CGFloat tagBoradMargin; @property (nonatomic,assign)CGFloat topBordMargin; @property (nonatomic,assign)CGFloat contentMargin; /** * 特性视图 * 显示 美女群主/妹子多 */ @property (nonatomic,strong) GJGCTagView *groupAttrTagView; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetTimePicker.h
<gh_stars>1000+ // // BTActionSheetTimePicker.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/6. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> @interface BTActionSheetTimePicker : UIView @property (nonatomic,assign)NSInteger startHour; @property (nonatomic,assign)NSInteger startMin; @property (nonatomic,readonly)NSString *selectedTime; @property (nonatomic,assign)NSInteger selectedHour; @property (nonatomic,assign)NSInteger selectedMin; - (instancetype)initWithFrame:(CGRect)frame withStartHour:(NSInteger)aHour withStartMin:(NSInteger)aMin; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCUImageBrowser/ViewController/GJCUImageBrowserItemViewController.h
// // GJCFImageBrowserItemViewController.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-30. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCUImageBrowserModel.h" @class GJCUImageBrowserItemViewController; @protocol GJCUImageBrowserItemViewControllerDataSource <NSObject> /** * 返回当前预览的模型代理 * * @param index * * @return */ - (GJCUImageBrowserModel *)imageModelAtIndex:(NSInteger)index; /** * 告知需要开始下载 * * @param index */ - (void)imageShouldStartDownloadAtIndex:(NSInteger)index; @end @interface GJCUImageBrowserItemViewController : UIViewController @property (nonatomic,weak)id<GJCUImageBrowserItemViewControllerDataSource> dataSource; @property (nonatomic,readonly)UIImage *currentDisplayImage; /* 当前索引 */ @property (nonatomic,assign)NSInteger pageIndex; + (instancetype)itemViewForPageIndex:(NSInteger)index; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/MusicShare/GJGCMusicPlayingViewController.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/MusicShare/GJGCMusicPlayingViewController.h // // GJGCMusicPlayerViewController.h // ZYChat // // Created by ZYVincent on 16/12/18. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" #import "GJGCChatFriendContentModel.h" @interface GJGCMusicPlayingViewController : GJGCBaseViewController<GJCFAudioPlayerDelegate> - (instancetype)initWithMusicContent:(GJGCChatFriendContentModel*)contentModel; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFUitils/SystemUitil/GJCFSystemUitil.h
// // GJCFSystemUitil.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-10-16. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import <objc/runtime.h> #import <CoreGraphics/CoreGraphics.h> @interface GJCFSystemUitil : NSObject + (CGFloat)appVersion; + (CGFloat)appFloatVersion; + (NSString *)appStringVersion; + (NSString *)appBundleIdentifier; + (CGFloat)currentSystemVersion; + (CGFloat)currentScreenScale; + (CGRect)screenBounds; + (BOOL)isSystemVersionOver:(CGFloat)versionValue; + (BOOL)iPadDevice; + (BOOL)iPhone4Device; + (BOOL)iPhone5Device; + (BOOL)iPhone6Device; + (BOOL)iPhone6PlusDevice; + (CGSize)deviceScreenSize; + (CGFloat)naivationBarHeight; + (NSNotificationCenter *)defaultCenter; + (void)postNoti:(NSString *)notiName; + (void)postNoti:(NSString *)notiName withObject:(id)obj; + (void)postNoti:(NSString *)notiName withObject:(id)obj withUserInfo:(NSDictionary *)infoDict; + (NSString *)mainBundlePath:(NSString*)fileName; + (NSString *)bundle:(NSString *)bundle file:(NSString *)file; + (void)showNetworkIndicatorActivity:(BOOL)state; + (void)originObject:(id)originObject associateObject:(id)anObject byKey:(NSString * const)associateKey; + (id)associateObjectFromOrigin:(id)originObject byKey:(NSString * const)associateKey; + (void)associateRemoveFromOrigin:(id)originObject; + (BOOL)cameraAvailable; + (BOOL)frontCameraAvailable; + (BOOL)cameraFlashAvailable; + (BOOL)canSendSMS; + (BOOL)canMakePhoneCall; + (BOOL)isAppCameraAccessAuthorized; + (BOOL)isAppPhotoLibraryAccessAuthorized; /** * 获取屏幕Y轴起始点 */ +(double)getSelfViewFrameOrangeY; /** * 系统是否 >=7.0 <7.1 */ +(BOOL)isSystemVersionIs7; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Service/Database/ZYDatabaseWhereCondition.h
<gh_stars>1000+ // // ZYDatabaseWhereCondition.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/9. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "ZYDatabaseConst.h" @interface ZYDatabaseWhereCondition : NSObject @property (nonatomic,strong)NSString *columName; @property (nonatomic,assign)ZYDatabaseWhereOperation operation; @property (nonatomic,strong)NSString *value; @property (nonatomic,readonly)NSString *sqlformat; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAudioManager/Model/GJCFAudioModel.h
// // GJCFAudioModel.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-9-16. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> @interface GJCFAudioModel : NSObject /* 文件唯一标示 */ @property (nonatomic,readonly)NSString *uniqueIdentifier; /* 文件时长单位是秒 */ @property (nonatomic,assign)NSTimeInterval duration; /* wav文件存储路径 */ @property (nonatomic,strong)NSString *localStorePath; /* 文件在服务器的远程地址 */ @property (nonatomic,strong)NSString *remotePath; /* 临时转换编码时候的文件,默认iOS本地应该保存wav格式的文件, * 但是在上传服务器可能要求是别的格式,比如AMR,所以, * 我们提供一个属性,来保存我们临时转换的文件路径 * 在下载服务器上的临时编码音频文件的时候,我们也将文件缓存到这个路径, * 然后对应的通过解码生成一份iOS本地的Wav格式文件,存在localStorePath路径下 * 这样就可以确保我们始终访问localStorePath路径是iOS本地wav格式音频,tempEncodeFilePath是 * 临时编码音频文件 */ @property (nonatomic,strong)NSString *tempEncodeFilePath; /* 限制录音时长 */ @property (nonatomic,assign)NSTimeInterval limitRecordDuration; /* 限制播放时长 */ @property (nonatomic,assign)NSTimeInterval limitPlayDuration; /* 文件通过表单模拟上传的时候要模拟的表单的名字 */ @property (nonatomic,strong)NSString *uploadFormName; /* 文件名 */ @property (nonatomic,strong)NSString *fileName; /* 临时转编码文件名 */ @property (nonatomic,strong)NSString *tempEncodeFileName; /* wav文件大小 */ @property (nonatomic,readonly)CGFloat dataSize; /* 用户自定义信息 */ @property (nonatomic,strong)NSDictionary *userInfo; /* 文件扩展名 */ @property (nonatomic,strong)NSString *extensionName; /* 临时转编码文件的扩展名 */ @property (nonatomic,strong)NSString *tempEncodeFileExtensionName; /* 多媒体文件类型 */ @property (nonatomic,strong)NSString *mimeType; /* 指定主缓存目录下面子缓存目录 */ @property (nonatomic,strong)NSString *subCacheDirectory; /* 是否上传本地转编码的格式文件,默认是YES,因为服务器需要的是转编码后的音频文件 */ @property (nonatomic,assign)BOOL isUploadTempEncodeFile; /* 是否需要存储一分转成本地WAV编码格式的文件,默认是YES,因为现在我们主要业务需要,目前只支持AMR转WAV */ @property (nonatomic,assign)BOOL isNeedConvertEncodeToSave; /* 是否下载完就播放 */ @property (nonatomic,assign)BOOL shouldPlayWhileFinishDownload; /* 当转码成本地iOS支持格式之后,是否将临时编码文件删除 */ @property (nonatomic,assign)BOOL isDeleteWhileFinishConvertToLocalFormate; /* 当临时转码文件上传完成后,是否将临时编码文件删除 */ @property (nonatomic,assign)BOOL isDeleteWhileUploadFinish; /* 该音频文件是否已经上传了 */ @property (nonatomic,assign)BOOL isBeenUploaded; /* 缓存文件名字 */ @property (nonatomic,readonly)NSString *cacheFileName; /* 指定不从链接中生成缓存文件名,按照这个指定的文件名来缓存 */ @property (nonatomic,strong)NSString *specialCacheFileName; //音频相关的图片路径 @property (nonatomic,strong)NSString *imgUrl; /* 删除临时编码文件 */ - (void)deleteTempEncodeFile; /* 删除本地wav格式文件 */ - (void)deleteWavFile; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/MessageExtend/GJGCMessageExtendUserModel.h
<reponame>AnriKaede/ZY2017IM // // GJGCMessageExtendUserModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/20. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "JSONModel.h" #import "GJGCMessageExtendConst.h" @interface GJGCMessageExtendUserModel : JSONModel @property (nonatomic,strong)NSString *userName; @property (nonatomic,strong)NSString *sex; @property (nonatomic,strong)NSString *age; @property (nonatomic,strong)NSString *headThumb; @property (nonatomic,strong)NSString *nickName; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/GroupCommonUI/UITableViewCell/Cell/HAPersonProfileHeadInfoCell.h
// // HAPersonProfileHeadInfoCell.h // HelloAsk // // Created by ZYVincent on 15-9-3. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCInformationBaseCell.h" @interface HAPersonProfileHeadInfoCell : GJGCInformationBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCUProgressView/GJCUProgressView.h
<filename>ZYChat-EaseMob/ZYChat/Dependcy/GJCUProgressView/GJCUProgressView.h // // GJGCProgressView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/7/1. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> @interface GJCUProgressView : UIView @property (nonatomic,strong)UIColor *tintColor; @property (nonatomic,assign)CGFloat progress; - (void)dismiss; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/View/UIImage+GJFixOrientation.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/ChatDetail/View/UIImage+GJFixOrientation.h<gh_stars>1000+ // // UIImage+GJFixOrientation.h // IMChat // // Created by ZYVincent QQ:1003081775 on 14-9-28. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (GJFixOrientation) - (UIImage *)fixOrietationWithScale:(CGFloat)scale; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputExpandMenuPanel.h
<filename>ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputExpandMenuPanel.h // // GJGCChatInputExpandMenuPanel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-10-28. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCChatInputExpandMenuPanelItem.h" #import "GJGCChatInputExpandMenuPanelDataSource.h" #import "GJGCChatInputExpandMenuPanelConfigModel.h" @class GJGCChatInputExpandMenuPanel; @protocol GJGCChatInputExpandMenuPanelDelegate <NSObject> - (void)menuPanel:(GJGCChatInputExpandMenuPanel *)panel didChooseAction:(GJGCChatInputMenuPanelActionType)action; - (GJGCChatInputExpandMenuPanelConfigModel *)menuPanelRequireCurrentConfigData:(GJGCChatInputExpandMenuPanel *)panel; @end @interface GJGCChatInputExpandMenuPanel : UIView /** * 代理 */ @property (nonatomic,weak)id<GJGCChatInputExpandMenuPanelDelegate> delegate; /** * 行数 */ @property (nonatomic,assign)NSInteger rowCount; /** * 列数 */ @property (nonatomic,assign)NSInteger columnCount; - (instancetype)initWithFrame:(CGRect)frame withDelegate:(id<GJGCChatInputExpandMenuPanelDelegate>)aDelegate; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFCoreText/Base/GJCFCoreTextFrame.h
// // GJCFCoreTextFrame.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-9-21. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreText/CoreText.h> #import "GJCFCoreTextLine.h" #import "GJCFCoreTextRun.h" @interface GJCFCoreTextFrame : NSObject /* 所有行GJCFCoreTextLine对象 */ @property (nonatomic,readonly)NSArray *linesArray; /* 读取内容的适配高度 */ @property (nonatomic,readonly)CGFloat suggestHeigh; /* 读取内容适配的宽度 */ @property (nonatomic,readonly)CGFloat suggestWidth; /* boundingBox */ @property (nonatomic,readonly)CGRect boundingBox; /* 内容字符串 */ @property (nonatomic,readonly)NSAttributedString *contentAttributedString; /* 不带图片标示初始化 */ - (instancetype)initWithAttributedString:(NSAttributedString *)attributedString withDrawRect:(CGRect)textRect isNeedSetupLine:(BOOL)isLineNeed; /* 带图片标示初始化,带图片的才需要获取line信息 */ - (instancetype)initWithAttributedString:(NSAttributedString *)attributedString withDrawRect:(CGRect)textRect withImageTagArray:(NSArray *)imageTagArray isNeedSetupLine:(BOOL)isLineNeed; /* 在目标上下文绘制 */ - (void)drawInContext:(CGContextRef)context; /* 获取某个点的字符 */ - (CFIndex)stringIndexAtPoint:(CGPoint)point; /* 获取某个关键字的所有区域 */ - (NSArray *)rectArrayForStringRange:(NSRange)stringRange; /* 计算可见字符范围 */ - (NSRange)visiableStringRange; /* 获取限制行数的字符 */ - (NSString *)getLimitNumberOfLineText:(NSInteger)limitLineCount; /* 获取限制行数的字符范围 */ - (NSRange)getLimitNumberOfLineRange:(NSInteger)limitLineCount; /** * 获取最后一行的最后一个字符 * * @return 最后一个run对象 */ - (GJCFCoreTextRun *)getLastTextRun; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/SystemNoti/GJGCChatSystemNotiRoleGroupView.h
<reponame>AnriKaede/ZY2017IM<filename>ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/SystemNoti/GJGCChatSystemNotiRoleGroupView.h // // GJGCChatSystemNotiRoleGroupView.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-11-3. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCLevelView.h" @interface GJGCChatSystemNotiRoleGroupView : UIView @property (nonatomic,strong)NSAttributedString *level; @property (nonatomic,strong)NSAttributedString *memberCount; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputExpandEmojiPanelMenuBarDataSourceItem.h
// // GJGCChatInputExpandEmojiPanelMenuBarDataSourceItem.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/6/4. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCChatInputConst.h" @interface GJGCChatInputExpandEmojiPanelMenuBarDataSourceItem : NSObject @property (nonatomic,strong)NSString *faceEmojiIconName; @property (nonatomic,assign)GJGCChatInputExpandEmojiType emojiType; @property (nonatomic,strong)NSString *emojiListFilePath; @property (nonatomic,strong)NSString *packagePrefix; @property (nonatomic,assign)BOOL isNeedShowSendButton; @property (nonatomic,assign)BOOL isNeedShowRightSideLine; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/ViewController/Base/GJGCBaseViewController.h
// // UIViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/7/11. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> #import "GJGCLoadingStatusHUD.h" @interface GJGCBaseViewController : UIViewController @property (nonatomic,readonly)CGFloat contentOriginY; @property (nonatomic,strong)GJGCLoadingStatusHUD *statusHUD; @property (nonatomic,assign)BOOL isMainMoudle; - (void)leftButtonPressed:(UIButton *)sender; - (void)rightButtonPressed:(UIButton *)sender; - (void)setStrNavTitle:(NSString *)title; /** * 创建右边按钮没有图片 * * @param title 设置右边按钮的title */ - (void)setRightButtonWithTitle:(NSString *)title; - (void)setLeftButtonWithImageName:(NSString*)imageName bgImageName:(NSString*)bgImageName; - (void)setRightButtonWithStateImage:(NSString *)iconName stateHighlightedImage:(NSString *)highlightIconName stateDisabledImage:(NSString *)disableIconName titleName:(NSString *)title; /** * 向导航栏右边添加一个item,在原来的项的右边还是左边 * * @param button * @param state */ - (void)appendRightBarItemWithCustomButton:(UIButton *)button toOldLeft:(BOOL)state; - (void)showSuccessMessage:(NSString *)message; - (void)showErrorMessage:(NSString *)message; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Call/VideoCall/GJGCVideoCallViewController.h
// // GJGCVideoCallViewController.h // ZYChat // // Created by bob on 16/8/25. // Copyright © 2016年 ZYProSoft. All rights reserved. // #import "GJGCBaseViewController.h" @interface GJGCVideoCallViewController : GJGCBaseViewController - (instancetype)initWithSession:(EMCallSession *)session isIncoming:(BOOL)isIncoming; @property (strong, nonatomic) NSString *chatter; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/InfoBaseList/GJGCInfoBaseListDataManager.h
// // GJGCInfoBaseListDataManager.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/21. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCInfoBaseListContentModel.h" @class GJGCInfoBaseListDataManager; @protocol GJGCInfoBaseListDataManagerDelegate <NSObject> - (void)dataManagerRequireRefresh:(GJGCInfoBaseListDataManager *)dataManager; @end @interface GJGCInfoBaseListDataManager : NSObject @property (nonatomic,weak)id<GJGCInfoBaseListDataManagerDelegate> delegate; @property (nonatomic,readonly)NSInteger totalCount; @property (nonatomic,assign)BOOL isRefresh; @property (nonatomic,assign)BOOL isLoadMore; @property (nonatomic,assign)NSInteger currentPageIndex; @property (nonatomic,assign)BOOL isReachFinish; - (Class)cellClassAtIndexPath:(NSIndexPath *)indexPath; - (NSString *)cellIdentifierAtIndexPath:(NSIndexPath *)indexPath; - (GJGCInfoBaseListContentModel *)contentModelAtIndexPath:(NSIndexPath *)indexPath; - (CGFloat)contentHeightAtIndexPath:(NSIndexPath *)indexPath; - (void)addContentModel:(GJGCInfoBaseListContentModel *)contentModel; - (void)clearData; - (void)refresh; - (void)loadMore; - (void)requestListData; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAudioManager/Play/GJCFAudioPlayerDelegate.h
<reponame>AnriKaede/ZY2017IM // // GJCFAudioPlayerDelegate.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-9-16. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import "GJCFAudioModel.h" @class GJCFAudioPlayer; @protocol GJCFAudioPlayerDelegate <NSObject> @optional - (void)audioPlayer:(GJCFAudioPlayer *)audioPlay didFinishPlayAudio:(GJCFAudioModel *)audioFile; - (void)audioPlayer:(GJCFAudioPlayer *)audioPlay playingProgress:(CGFloat)progressValue; - (void)audioPlayer:(GJCFAudioPlayer *)audioPlay playingProgress:(NSTimeInterval)playCurrentTime duration:(NSTimeInterval)duration; - (void)audioPlayer:(GJCFAudioPlayer *)audioPlay didOccusError:(NSError *)error; - (void)audioPlayer:(GJCFAudioPlayer *)audioPlay didUpdateSoundMouter:(CGFloat)soundMouter; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/GJGCChatInputPanel/GJGCChatInputExpandMenuPanelConfigModel.h
<gh_stars>1000+ // // GJGCChatInputExpandMenuPanelConfigModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/4/21. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCChatFriendTalkModel.h" @interface GJGCChatInputExpandMenuPanelConfigModel : NSObject @property (nonatomic,assign)GJGCChatFriendTalkType talkType; @property (nonatomic,strong)NSArray *disableItems; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetBaseCell.h
<reponame>AnriKaede/ZY2017IM // // BTActionSheetBaseCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/2. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> #import "BTActionSheetBaseContentModel.h" @interface BTActionSheetBaseCell : UITableViewCell @property (nonatomic,strong)UIImageView *bottomLine; - (void)setContentModel:(BTActionSheetBaseContentModel *)contentModel; - (CGFloat)cellHeight; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/Uitil/UIButton+GJCFAssetsPickerStyle.h
// // UIButton+GJAssetsPickerStyle.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-10. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFAssetsPickerCommonStyleDescription.h" @interface UIButton (GJCFAssetsPickerStyle) /* 设定相关属性 */ - (void)setCommonStyleDescription:(GJCFAssetsPickerCommonStyleDescription*)aDescription; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/View/GJCFAlbums.h
// // GJAlbums.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-10. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <Foundation/Foundation.h> #import <AssetsLibrary/AssetsLibrary.h> #import <UIKit/UIKit.h> /* 相册对象 */ @interface GJCFAlbums : NSObject /* 实际的相册数据对象 */ @property (nonatomic,strong)ALAssetsGroup *assetsGroup; /* 该相册内实际的照片对象GJAsset数组 ,用来在第一次进入相册之后,就不用再次枚举统计 */ @property (nonatomic,strong)NSMutableArray *assetsArray; /* 相册使用的类型过滤 */ @property (nonatomic,strong)ALAssetsFilter *filter; /* 相册名字 */ @property (nonatomic,readonly)NSString *name; /* 该相册中图片数量 */ @property (nonatomic,readonly)NSInteger totalCount; /* 相册的缩略图 */ @property (nonatomic,readonly)UIImage *posterImage; - (id)initWithAssetsGroup:(ALAssetsGroup *)aGroup; - (BOOL)isEqual:(GJCFAlbums*)aAlbums; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCFAssetsPicker/ViewController/GJCFPhotosViewController.h
// // GJPhotosViewController.h // GJAssetsPickerViewController // // Created by ZYVincent QQ:1003081775 on 14-9-8. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import <UIKit/UIKit.h> #import "GJCFAssetsPickerCell.h" #import "GJCFAlbums.h" @class GJCFPhotosViewController; @class GJCFAssetsPickerStyle; @protocol GJCFPhotosViewControllerDelegate <NSObject> @optional /* 照片选择视图需要使用自定义风格 */ - (GJCFAssetsPickerStyle*)photoViewControllerShouldUseCustomStyle:(GJCFPhotosViewController*)photoViewController; /* 照片已经枚举完了时候会执行 */ - (void)photoViewController:(GJCFPhotosViewController*)photoViewController didFinishEnumrateAssets:(NSArray *)assets forAlbums:(GJCFAlbums*)destAlbums; @end @interface GJCFPhotosViewController : UIViewController<UITableViewDelegate,UITableViewDataSource,GJCFAssetsPickerCellDelegate> @property (nonatomic,weak)id<GJCFPhotosViewControllerDelegate> delegate; /* 照片列表 */ @property (nonatomic,strong)UITableView *assetsTable; /* 照片数据源 */ @property (nonatomic,strong)NSMutableArray *assetsArray; /* 多选的最大数量 */ @property (nonatomic,assign)NSInteger mutilSelectLimitCount; /* 每一行有多少列 */ @property (nonatomic,assign)NSInteger colums; /* 每一行的两列之间的间隔 */ @property (nonatomic,assign)CGFloat columSpace; /* 真实的相册数据源 */ @property (nonatomic,strong)GJCFAlbums * albums; /* * 用来传递外层已经选中的Assets,用于加载新的Assets选择列表的时候,直接赋成选中状态,已实现 * 但是目前需求和效率问题限制,调用暂时无效 */ @property (nonatomic,strong)NSArray *shouldInitSelectedStateAssetArray; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/InfoBaseList/GJGCInfoBaseListContentModel.h
// // GJGCInfoBaseListContentModel.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/21. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <Foundation/Foundation.h> #import "GJGCInfoBaseListConst.h" @interface GJGCInfoBaseListContentModel : NSObject @property (nonatomic,assign)GJGCInfoBaseListContentType contentType; @property (nonatomic,assign)CGFloat contentHeight; #pragma mark - 展示内容 @property (nonatomic,strong)NSString *title; @property (nonatomic,strong)NSString *headUrl; @property (nonatomic,strong)NSString *summary; @property (nonatomic,strong)NSString *time; #pragma mark - 群组特有 @property (nonatomic,strong)NSString *groupLabels; @property (nonatomic,strong)NSString *groupAddress; @property (nonatomic,strong)NSString *groupId; #pragma mark - 用户信息 @property (nonatomic,strong)NSString *groupName; @property (nonatomic,strong)NSString *groupHeadThumb; @property (nonatomic,strong)NSString *chatter; @property (nonatomic,assign)EMConversation *conversation; #pragma mark - App Store信息 @property (nonatomic,strong)NSString *appStoreLink; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/SystemNoti/GJGCChatSystemPostNotiCell.h
<gh_stars>1000+ // // GJGCChatPostSystemNotiCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 14-12-14. // Copyright (c) 2014年 ZYProSoft. All rights reserved. // #import "GJGCChatSystemNotiBaseCell.h" @interface GJGCChatSystemPostNotiCell : GJGCChatSystemNotiBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetViewController.h
<filename>ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetViewController.h // // BTActionSheetViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/2. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCBaseViewController.h" #import "BTActionSheetDataManager.h" typedef void (^BTActionSheetViewControllerDidFinishChooseResultBlock) (BTActionSheetBaseContentModel *resultModel); typedef void (^BTActionSheetViewControllerDidFinishMutilChooseResultBlock) (NSArray *mutilSelectedResults); typedef void (^BTActionSheetViewControllerDidFinishEmptyDataListCancelBlock) (void); @interface BTActionSheetViewController : GJGCBaseViewController<BTActionSheetDataManagerDelegate> @property (nonatomic,copy)BTActionSheetViewControllerDidFinishChooseResultBlock resultBlock; @property (nonatomic,copy)BTActionSheetViewControllerDidFinishMutilChooseResultBlock mutilChooseResultBlock; @property (nonatomic,copy)BTActionSheetViewControllerDidFinishEmptyDataListCancelBlock cancelBlock; @property (nonatomic,strong)BTActionSheetDataManager *dataManager; @property (nonatomic,strong)UIView *backMaskView; @property (nonatomic,strong)UITableView *listTable; @property (nonatomic,strong)UIView *contentView; @property (nonatomic,strong)UIView *toolBar; @property (nonatomic,strong)UILabel *titleLabel; @property (nonatomic,strong)UIButton *cancelButton; @property (nonatomic,strong)UIButton *doneButton; @property (nonatomic,assign)CGFloat contentHeight; @property (nonatomic,assign)BOOL isMutilSelect; @property (nonatomic,strong)NSArray *selectedItems; - (void)showFromViewController:(UIViewController *)aViewController; - (void)initDataManager; - (void)doneAction; - (void)cancelAction; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendGroupCallCell.h
<filename>ZYChat-EaseMob/ZYChat/ChatDetail/UITableViewCell/ChatCell/GJGCChatFriendGroupCallCell.h<gh_stars>1000+ // // GJGCChatFriendGroupCallCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/4/16. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCChatFriendBaseCell.h" @interface GJGCChatFriendGroupCallCell : GJGCChatFriendBaseCell @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/GJCUCapture/GJCUFlashModeView.h
// // GJCUFlashModeView.h // GJCoreUserInterface // // Created by ZYVincent QQ:1003081775 on 15-1-23. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> #import "GJCFUitils.h" #import "UIView+GJCFViewFrameUitil.h" @interface GJCUFlashModeView : UIView @property (nonatomic,assign)AVCaptureFlashMode currentMode; - (instancetype)initWithFrame:(CGRect)frame; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Dependcy/FileUploadManager/GJCFUploadFileModel.h
// // GJCFUploadFileModel.h // GJCommonFoundation // // Created by ZYVincent QQ:1003081775 on 14-9-12. // Copyright (c) 2014年 Z<EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import <AssetsLibrary/AssetsLibrary.h> /* 上传文件对象 */ @interface GJCFUploadFileModel : NSObject<NSCoding> /* 文件名 */ @property (nonatomic,strong)NSString *fileName; /* 文件的二进制数据 */ @property (nonatomic,strong)NSData *fileData; /* 文件的多媒体类型 */ @property (nonatomic,strong)NSString *mimeType; /* 模拟表单提交的时候要求的表单的名字 */ @property (nonatomic,strong)NSString *formName; /* 如果是图片的时候可以用上来保存宽度 */ @property (nonatomic,assign)CGFloat imageWidth; /* 如果是图片的时候可以用上来保存高度 */ @property (nonatomic,assign)CGFloat imageHeight; /* 用来保存待上传文件的本地路径地址 */ @property (nonatomic,strong)NSString *localStorePath; /* 待上传Assets文件 */ @property (nonatomic,strong)ALAsset *contentAsset; /* 是否是上传Assets文件 */ @property (nonatomic,assign)BOOL isUploadAsset; /* 是否上传Asset文件原始图片,默认上传原始图片 */ @property (nonatomic,assign)BOOL isUploadAssetOriginImage; /* 是否上传一张图片 */ @property (nonatomic,assign)BOOL isUploadImage; /* 是否上传路径的图片被归档过,默认未被归档 */ @property (nonatomic,assign)BOOL isUploadImageHasBeenArchieved; /* 是否上传语音 */ @property (nonatomic,assign)BOOL isUploadAudio; /* 如果是语音的时候可以用上来保存语音时长 */ @property (nonatomic,assign)NSTimeInterval audioDuration; /* 用户希望携带的自定义信息 */ @property (nonatomic,strong)NSDictionary *userInfo; // ===================== 推荐使用待上传文件路径来上传文件 ============= // /* 便捷对象生成 */ + (GJCFUploadFileModel*)fileModelWithFileName:(NSString*)fileName withFilePath:(NSString*)filePath withFormName:(NSString*)formName; /* 便捷对象生成 */ + (GJCFUploadFileModel*)fileModelWithFileName:(NSString*)fileName withFilePath:(NSString*)filePath withFormName:(NSString*)formName withMimeType:(NSString*)mimeType; /* 便捷对象生成 */ + (GJCFUploadFileModel*)fileModelWithFileName:(NSString*)fileName withFileData:(NSData*)fileData withFormName:(NSString*)formName; /* 便捷对象生成 */ + (GJCFUploadFileModel*)fileModelWithFileName:(NSString*)fileName withFileData:(NSData*)fileData withFormName:(NSString*)formName withMimeType:(NSString*)mimeType; + (NSString*)mimeTypeWithFileName:(NSString*)fileName; /* 自身检测是否符合上传规则 */ - (BOOL)isValidateForUpload; @end
AnriKaede/ZY2017IM
ZYChat-EaseMob/ZYChat/Square/InfoBaseList/GJGCInfoBaseListViewController.h
// // GJGCInfoBaseListViewController.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/11/21. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "GJGCBaseViewController.h" #import "GJGCInfoBaseListDataManager.h" #import "GJGCRefreshFooterView.h" #import "GJGCRefreshHeaderView.h" @interface GJGCInfoBaseListViewController : GJGCBaseViewController<GJGCInfoBaseListDataManagerDelegate, GJGCRefreshFooterViewDelegate, GJGCRefreshHeaderViewDelegate, UITableViewDataSource, UITableViewDelegate > @property (nonatomic,strong)UITableView *listTable; @property (nonatomic,strong)GJGCInfoBaseListDataManager *dataManager; - (void)initDataManager; - (void)startRefresh; - (void)startLoadMore; @end