Separate server (where to connect to) and domain (what that server hosts)

This commit is contained in:
Florian Zeitz 2011-05-27 02:17:47 +02:00
parent ec3e12b62a
commit 901108dd1c
3 changed files with 83 additions and 21 deletions

View file

@ -67,7 +67,7 @@
OFTCPSocket *sock;
OFXMLParser *parser, *oldParser;
OFXMLElementBuilder *elementBuilder, *oldElementBuilder;
OFString *username, *password, *server, *resource;
OFString *username, *password, *server, *domain, *resource;
XMPPJID *JID;
uint16_t port;
id <XMPPConnectionDelegate, OFObject> delegate;
@ -79,7 +79,7 @@
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *username, *password, *server, *resource;
@property (copy) OFString *username, *password, *server, *domain, *resource;
@property (copy, readonly) XMPPJID *JID;
@property (assign) uint16_t port;
@property (retain) id <XMPPConnectionDelegate> delegate;
@ -139,6 +139,8 @@
- (OFString*)password;
- (void)setServer: (OFString*)server;
- (OFString*)server;
- (void)setDomain: (OFString*)domain;
- (OFString*)domain;
- (void)setResource: (OFString*)resource;
- (OFString*)resource;
- (XMPPJID*)JID;