35 lines
821 B
Objective-C
35 lines
821 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface NSData (XMPP)
|
|
|
|
- (NSData *)xmpp_md5Digest;
|
|
|
|
- (NSData *)xmpp_sha1Digest;
|
|
|
|
- (NSString *)xmpp_hexStringValue;
|
|
|
|
- (NSString *)xmpp_base64Encoded;
|
|
- (NSData *)xmpp_base64Decoded;
|
|
|
|
- (BOOL)xmpp_isJPEG;
|
|
- (BOOL)xmpp_isPNG;
|
|
- (NSString *)xmpp_imageType;
|
|
|
|
@end
|
|
|
|
#ifndef XMPP_EXCLUDE_DEPRECATED
|
|
|
|
#define XMPP_DEPRECATED($message) __attribute__((deprecated($message)))
|
|
|
|
@interface NSData (XMPPDeprecated)
|
|
- (NSData *)md5Digest XMPP_DEPRECATED("Use -xmpp_md5Digest");
|
|
- (NSData *)sha1Digest XMPP_DEPRECATED("Use -xmpp_sha1Digest");
|
|
- (NSString *)hexStringValue XMPP_DEPRECATED("Use -xmpp_hexStringValue");
|
|
- (NSString *)base64Encoded XMPP_DEPRECATED("Use -xmpp_base64Encoded");
|
|
- (NSData *)base64Decoded XMPP_DEPRECATED("Use -xmpp_base64Decoded");
|
|
@end
|
|
|
|
#undef XMPP_DEPRECATED
|
|
|
|
#endif
|