Add storage to the connection and roster.
This commit is contained in:
parent
f777a11d7f
commit
af04bf7088
4 changed files with 49 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue