-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathReblogDeliverer.h
67 lines (59 loc) · 1.97 KB
/
ReblogDeliverer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* @file ReblogDeliverer.h
* @brief ReblogDeliverer class declaration
* @author Masayuki YAMAYA
* @date 2008-03-03
*/
#import "DelivererBase.h"
/**
* Deliverer concrete class for Tumblr service
* Tumblr's page can be used only
*/
@interface ReblogDeliverer : DelivererBase
{
NSString * postID_;
NSString * reblogKey_;
}
/// PostID for Reblog
@property (nonatomic, retain) NSString * postID;
/// Key for Reblog
@property (nonatomic, retain) NSString * reblogKey;
/**
* Initialize object
* creates an object inside DelivererContext.
* @param[in] document 現在表示しているビューの DOMHTMLDocumentオブジェクト
* @param[in] targetElement 選択していた要素の情報
* @param[in] postID ポストID
* @param[in] reblogKey Reblogキー
*/
- (id)initWithDocument:(DOMHTMLDocument *)document target:(NSDictionary *)targetElement postID:(NSString *)postID reblogKey:(NSString *)key;
/**
* Initialize object
* creates an object inside DelivererContext.
* reblogKey is set to nil.
* @param[in] document 現在表示しているビューの DOMHTMLDocumentオブジェクト
* @param[in] targetElement 選択していた要素の情報
* @param[in] postID ポストID
*/
- (id)initWithDocument:(DOMHTMLDocument *)document target:(NSDictionary *)targetElement postID:(NSString *)postID;
/**
* Initialize object
* @param[in] context DelivererContext object
* @param[in] postID ポストID
* @param[in] reblogKey Reblogキー
*/
- (id)initWithContext:(DelivererContext *)context postID:(NSString *)postID reblogKey:(NSString *)rk;
/**
* Initialize object
* reblogKey is set to nil.
* @param[in] context DelivererContext object
* @param[in] postID ポストID
*/
- (id)initWithContext:(DelivererContext *)context postID:(NSString *)postID;
/**
* Tokens of Reblog from iframe.
* @param[in] document DOMHTMLDocument object of Tumblr page.
* @return Dictionary that contains the tokens.
*/
+ (NSDictionary *)reblogTokensFromIFrame:(DOMHTMLDocument *)document;
@end