Add a class for handling JIDs.
This commit is contained in:
parent
b64ae746e6
commit
6dc9e5e217
5 changed files with 200 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
#import <XMPPJID.h>
|
||||
|
||||
@class XMPPConnection;
|
||||
@class XMPPIQ;
|
||||
|
@ -25,7 +26,7 @@
|
|||
OFXMLElementBuilder *elementBuilder;
|
||||
|
||||
/**
|
||||
* The username (local part of the JID) to connect with
|
||||
* The username to connect with
|
||||
*/
|
||||
OFString *username;
|
||||
|
||||
|
@ -44,6 +45,11 @@
|
|||
*/
|
||||
OFString *resource;
|
||||
|
||||
/**
|
||||
* The JID bound to this connection (this is determined by the server)
|
||||
*/
|
||||
XMPPJID *JID;
|
||||
|
||||
/**
|
||||
* The port to connect to
|
||||
*/
|
||||
|
@ -61,6 +67,7 @@
|
|||
@property (copy) OFString *password;
|
||||
@property (copy) OFString *server;
|
||||
@property (copy) OFString *resource;
|
||||
@property (readonly) XMPPJID *JID;
|
||||
@property (assign) short port;
|
||||
@property (assign) BOOL useTLS;
|
||||
@property (retain) id <XMPPConnectionDelegate> delegate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue