ifish/Ifish/AlibcTradeSDK-3.1.1.96/Frameworks/OpenMtopSDK.framework/Headers/TBSDKServerQueue.h

45 lines
1.4 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// '########'########::'######:'########:'##:::'##:
// ... ##..::##.... ##'##... ##:##.... ##:##::'##::
// ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##:::
// ::: ##::::########:. ######::##:::: ##:#####::::
// ::: ##::::##.... ##:..... ##:##:::: ##:##. ##:::
// ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##::
// ::: ##::::########:. ######::########::##::. ##:
// :::..::::........:::......::........::..::::..::
//
// Created by 亿刀/禚来强 on 13-1-28.
// Copyright (c) 2013年 Taobao. All rights reserved.
//
#import <Foundation/Foundation.h>
/** TBSDK的请求池。
*
* TBSDK的请求池是单例模式。保存了TBSDK的所有的网络请求
* 用户可以获取获取自己的网络请求,而不需要将网络请求保存为实例变量
*/
@interface TBSDKServerQueue : NSObject
+ (TBSDKServerQueue *)shareInstance;
//! 获取delegate_对应的符合TBSDKRequestQueueProtocol协议的对象。
- (NSArray *)getRequestForDelegate:(id)delegate_;
//! 退出符合TBSDKRequestQueueProtocol协议的对象的网络请求并把符合TBSDKRequestQueueProtocol协议的对象的delegate设置为nil。
- (void)cancelRequestNetworkAndClearDelegateForDelegate:(id)delegate_;
@end
@protocol TBSDKRequestQueueProtocol <NSObject>
@required
- (void)clearDelegatesAndCancel;
@optional
@property (nonatomic, weak) id delegate;
@end