| 54 | | +(void) initialize |
|---|
| 55 | | { |
|---|
| 56 | | QRY_MESSAGE = [[XPathQuery alloc] initWithPath:@"/presence/status"]; |
|---|
| 57 | | PRESSUBTYPE = [[NSDictionary alloc] initWithObjectsAndKeys: |
|---|
| 58 | | [NSNumber numberWithLong:JSUBSCRIBE], @"subscribe", |
|---|
| 59 | | [NSNumber numberWithLong:JSUBSCRIBED], "@subscribed", |
|---|
| 60 | | [NSNumber numberWithLong:JUNSUBSCRIBE], "@unsubscribed", |
|---|
| 61 | | [NSNumber numberWithLong:JUNSUBSCRIBED], "@unsubscribed", nil]; |
|---|
| 62 | | } |
|---|
| 63 | | |
|---|
| | 68 | static XPathQuery *QRY_MESSAGE = nil; |
|---|
| | 69 | static NSDictionary *PRESSUBTYPE = nil; |
|---|
| | 70 | |
|---|
| | 71 | if(!QRY_MESSAGE) |
|---|
| | 72 | QRY_MESSAGE = [[XPathQuery alloc] initWithPath:@"/presence/status"]; |
|---|
| | 73 | |
|---|
| | 74 | if(!PRESSUBTYPE) { |
|---|
| | 75 | PRESSUBTYPE = [[NSDictionary alloc] initWithObjectsAndKeys: |
|---|
| | 76 | [NSNumber numberWithLong:JSUBSCRIBE], @"subscribe", |
|---|
| | 77 | [NSNumber numberWithLong:JSUBSCRIBED], @"subscribed", |
|---|
| | 78 | [NSNumber numberWithLong:JUNSUBSCRIBE], @"unsubscribed", |
|---|
| | 79 | [NSNumber numberWithLong:JUNSUBSCRIBED], @"unsubscribed", nil]; |
|---|
| | 80 | } |
|---|
| | 81 | |
|---|