-
Notifications
You must be signed in to change notification settings - Fork 8
/
DrupalPlugin.h
46 lines (34 loc) · 1.32 KB
/
DrupalPlugin.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
//
// DrupalPlugin.h
//
// Copyright 2011 Jeff Linwood.
// MIT License
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif
#import "DIOSUser.h"
#import "DIOSConnect.h"
@interface DrupalPlugin : PGPlugin {
DIOSUser *currentUser;
DIOSConnect *currentSession;
}
@property(nonatomic,retain) DIOSUser *currentUser;
@property(nonatomic,retain) DIOSConnect *currentSession;
//user/system connect methods
- (void) openAnonymousSession:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) login:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) logout:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
//node methods
- (void) nodeGet:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) nodeSave:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) nodeDelete:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) nodeGetIndex:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
//file methods
- (void) fileSave:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
//view methods
- (void) viewGet:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end