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
|
#import <ObjFW/ObjFW.h>
/**
* \brief A class for easy handling of JIDs
*/
@interface XMPPJID: OFObject
{
/**
* The JID's localpart
*/
OFString *node;
/**
* The JID's domainpart
*/
OFString *domain;
/**
* The JID's resourcepart
*/
OFString *resource;
}
@property (copy) OFString *node;
@property (copy) OFString *domain;
@property (copy) OFString *resource;
/**
* Creates a new XMPPJID
*
* \return A new autoreleased XMPPJID
*/
+ JID;
/**
* Creates a new XMPPJID from a OFString
*
* \param str The string to parse into a JID object
* \return A new autoreleased XMPPJID
*/
+ JIDWithString: (OFString*)str;
/**
* Initializes an already allocated XMPPJID using a OFString
*
* \param str The string to parse into a JID object
* \return A initialized XMPPJID
*/
- initWithString: (OFString*)str;
/**
* \return A OFString containing the bare JID
*/
- (OFString*)bareJID;
/**
* \return A OFString containing the full JID
*/
- (OFString*)fullJID;
@end
|
|
<
|
<
<
<
|
<
<
<
|
<
|
|
|
|
|
|
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
|
#import <ObjFW/ObjFW.h>
/**
* \brief A class for easy handling of JIDs.
*/
@interface XMPPJID: OFObject
{
/// The JID's localpart
OFString *node;
/// The JID's domainpart
OFString *domain;
/// The JID's resourcepart
OFString *resource;
}
@property (copy) OFString *node;
@property (copy) OFString *domain;
@property (copy) OFString *resource;
/**
* Creates a new autoreleased XMPPJID.
*
* \return A new autoreleased XMPPJID
*/
+ JID;
/**
* Creates a new autoreleased XMPPJID from a string.
*
* \param str The string to parse into a JID object
* \return A new autoreleased XMPPJID
*/
+ JIDWithString: (OFString*)str;
/**
* Initializes an already allocated XMPPJID with a string.
*
* \param str The string to parse into a JID object
* \return A initialized XMPPJID
*/
- initWithString: (OFString*)str;
/**
* \return An OFString containing the bare JID
*/
- (OFString*)bareJID;
/**
* \return An OFString containing the full JID
*/
- (OFString*)fullJID;
@end
|