Add storage to the connection and roster.

This commit is contained in:
Jonathan Schleifer 2012-02-06 14:32:20 +01:00
parent f777a11d7f
commit af04bf7088
4 changed files with 49 additions and 1 deletions

View file

@ -36,6 +36,8 @@
#import <ObjOpenSSL/SSLInvalidCertificateException.h>
#import <ObjOpenSSL/X509Certificate.h>
#import <ObjFW/OFInvalidArgumentException.h>
#import "XMPPConnection.h"
#import "XMPPCallback.h"
#import "XMPPSRVLookup.h"
@ -1056,6 +1058,19 @@
return port;
}
- (void)setDataStorage: (id <XMPPStorage>)dataStorage_
{
if (streamOpen)
@throw [OFInvalidArgumentException exceptionWithClass: isa];
dataStorage = dataStorage_;
}
- (id <XMPPStorage>)dataStorage
{
return dataStorage;
}
- (void)setLanguage: (OFString*)language_
{
OF_SETTER(language, language_, YES, YES)