code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
#import "NSData+XMPP.h"
#import <CommonCrypto/CommonDigest.h>
@implementation NSData (XMPP)
static char encodingTable[64] = {
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
'g','h','i','j','k','l','m','n','o','... | zxq911-zxq | Categories/NSData+XMPP.m | Objective-C | bsd | 3,856 |
#import "XMPPCoreDataStorage.h"
@class XMPPJID;
@class XMPPStream;
/**
* The methods in this class are to be used ONLY by subclasses of XMPPCoreDataStorage.
**/
@interface XMPPCoreDataStorage (Protected)
#pragma mark Override Me
/**
* Override me, if needed, to provide customized behavior.
*
* This method is ... | zxq911-zxq | Extensions/CoreDataStorage/XMPPCoreDataStorageProtected.h | Objective-C | bsd | 10,705 |
#import "XMPPCoreDataStorage.h"
#import "XMPPStream.h"
#import "XMPPInternal.h"
#import "XMPPJID.h"
#import "XMPPLogging.h"
#import "NSNumber+XMPP.h"
#import <objc/runtime.h>
#import <libkern/OSAtomic.h>
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_VERBOSE;... | zxq911-zxq | Extensions/CoreDataStorage/XMPPCoreDataStorage.m | Objective-C | bsd | 20,820 |
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
/**
* This class provides an optional base class that may be used to implement
* a CoreDataStorage class for an xmpp extension (or perhaps any core data storage class).
*
* It operates on its own dispatch queue which allows it to easily provide stora... | zxq911-zxq | Extensions/CoreDataStorage/XMPPCoreDataStorage.h | Objective-C | bsd | 4,249 |
#import "TURNSocket.h"
#import "XMPP.h"
#import "XMPPLogging.h"
#import "GCDAsyncSocket.h"
#import "NSData+XMPP.h"
#import "NSNumber+XMPP.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = ... | zxq911-zxq | Extensions/XEP-0065/TURNSocket.m | Objective-C | bsd | 43,467 |
#import <Foundation/Foundation.h>
@class XMPPIQ;
@class XMPPJID;
@class XMPPStream;
@class GCDAsyncSocket;
/**
* TURNSocket is an implementation of XEP-0065: SOCKS5 Bytestreams.
*
* It is used for establishing an out-of-band bytestream between any two XMPP users,
* mainly for the purpose of file transfer.
**/
@in... | zxq911-zxq | Extensions/XEP-0065/TURNSocket.h | Objective-C | bsd | 1,761 |
#import <Foundation/Foundation.h>
@class XMPPStream;
@interface XMPPTransports : NSObject
{
XMPPStream *xmppStream;
}
- (id)initWithStream:(XMPPStream *)xmppStream;
@property (nonatomic, readonly) XMPPStream *xmppStream;
- (void)queryGatewayDiscoveryIdentityForLegacyService:(NSString *)service;
- (void)queryGate... | zxq911-zxq | Extensions/XEP-0100/XMPPTransports.h | Objective-C | bsd | 579 |
#import "XMPPTransports.h"
#import "XMPP.h"
@implementation XMPPTransports
@synthesize xmppStream;
- (id)initWithStream:(XMPPStream *)stream
{
if ((self = [super init]))
{
xmppStream = [stream retain];
}
return self;
}
- (void)dealloc
{
[xmppStream release];
[super dealloc];
}
/**
* Registration process
... | zxq911-zxq | Extensions/XEP-0100/XMPPTransports.m | Objective-C | bsd | 4,580 |
#import "XMPPCapsResourceCoreDataStorageObject.h"
#import "XMPPCapsCoreDataStorageObject.h"
@implementation XMPPCapsResourceCoreDataStorageObject
@dynamic jidStr;
@dynamic streamBareJidStr;
@dynamic haveFailed;
@dynamic failed;
@dynamic node;
@dynamic ver;
@dynamic ext;
@dynamic hashStr;
@dynamic hashAlgorithm;
... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapsResourceCoreDataStorageObject.m | Objective-C | bsd | 486 |
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPCapabilities.h"
#import "XMPPCoreDataStorage.h"
/**
* This class is an example implementation of XMPPCapabilitiesStorage using core data.
* You are free to substitute your own storage class.
**/
@interface XMPPCapabilitiesCoreDataStorage ... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapabilitiesCoreDataStorage.h | Objective-C | bsd | 1,186 |
#import "XMPPCapsCoreDataStorageObject.h"
#import "XMPPCapsResourceCoreDataStorageObject.h"
#import "XMPP.h"
@implementation XMPPCapsCoreDataStorageObject
@dynamic capabilities;
@dynamic hashStr;
@dynamic hashAlgorithm;
@dynamic capabilitiesStr;
@dynamic resources;
- (NSXMLElement *)capabilities
{
return [[[NSX... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapsCoreDataStorageObject.m | Objective-C | bsd | 510 |
#import "XMPPCapabilitiesCoreDataStorage.h"
#import "XMPPCapsCoreDataStorageObject.h"
#import "XMPPCapsResourceCoreDataStorageObject.h"
#import "XMPP.h"
#import "XMPPCoreDataStorageProtected.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_L... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapabilitiesCoreDataStorage.m | Objective-C | bsd | 17,587 |
#import <CoreData/CoreData.h>
@class XMPPCapsCoreDataStorageObject;
@interface XMPPCapsResourceCoreDataStorageObject : NSManagedObject
@property (nonatomic, retain) NSString * jidStr;
@property (nonatomic, retain) NSString * streamBareJidStr;
@property (nonatomic, assign) BOOL haveFailed;
@property (nonatomic, ret... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapsResourceCoreDataStorageObject.h | Objective-C | bsd | 666 |
#import <CoreData/CoreData.h>
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPCapsResourceCoreDataStorageObject;
@interface XMPPCapsCoreDataStorageObject : NSManagedObject
@property (nonatomic, retain) NSXMLElement *capabilities;
@property (nonatomic, retain) NSString * hashStr;
@property (nonatomic, r... | zxq911-zxq | Extensions/XEP-0115/CoreDataStorage/XMPPCapsCoreDataStorageObject.h | Objective-C | bsd | 776 |
#import "XMPP.h"
#import "XMPPLogging.h"
#import "XMPPCapabilities.h"
#import "NSData+XMPP.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_VERBOSE; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#en... | zxq911-zxq | Extensions/XEP-0115/XMPPCapabilities.m | Objective-C | bsd | 51,240 |
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPIQ;
@class XMPPJID;
@class XMPPStream;
@protocol XMPPCapabilitiesStorage;
@protocol XMPPCapabilitiesDelegate;
/**
* This class provides support for capabilities discovery.
*
* It collects our capab... | zxq911-zxq | Extensions/XEP-0115/XMPPCapabilities.h | Objective-C | bsd | 14,213 |
//
// XMPPRoomOccupant
// A chat room. XEP-0045 Implementation.
//
#import <Foundation/Foundation.h>
@class XMPPJID;
@interface XMPPRoomOccupant : NSObject
{
XMPPJID *jid;
NSString *nick;
NSString *role;
}
+ (XMPPRoomOccupant *)occupantWithJID:(XMPPJID *)aJid nick:(NSString *)aNick role:(NSString *)aRole;
- (id... | zxq911-zxq | Extensions/XEP-0045/XMPPRoomOccupant.h | Objective-C | bsd | 512 |
//
// XMPPRoom
// A chat room. XEP-0045 Implementation.
//
#import <Foundation/Foundation.h>
#import "XMPP.h"
#import "XMPPRoomOccupant.h"
@interface XMPPRoom : XMPPModule
{
NSString *roomName;
NSString *nickName;
NSString *subject;
NSString *invitedUser;
BOOL _isJoined;
NSMutableDictionary *occupants;
}
- (i... | zxq911-zxq | Extensions/XEP-0045/XMPPRoom.h | Objective-C | bsd | 1,499 |
//
// XMPPRoomOccupant
// A chat room. XEP-0045 Implementation.
//
#import "XMPPRoomOccupant.h"
@implementation XMPPRoomOccupant
+ (XMPPRoomOccupant *)occupantWithJID:(XMPPJID *)aJid nick:(NSString *)aNick role:(NSString *)aRole
{
return [[[XMPPRoomOccupant alloc] initWithJID:aJid nick:aNick role:aRole] autoreleas... | zxq911-zxq | Extensions/XEP-0045/XMPPRoomOccupant.m | Objective-C | bsd | 1,107 |
#import <Foundation/Foundation.h>
#import "XMPPMessage.h"
@interface XMPPMessage(XEP0045)
- (BOOL)isGroupChatMessage;
- (BOOL)isGroupChatMessageWithBody;
@end
| zxq911-zxq | Extensions/XEP-0045/XMPPMessage+XEP0045.h | Objective-C | bsd | 163 |
#import "XMPPRoom.h"
#import "XMPPMessage+XEP0045.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#endif
static NSStrin... | zxq911-zxq | Extensions/XEP-0045/XMPPRoom.m | Objective-C | bsd | 18,227 |
#import "XMPPMessage+XEP0045.h"
#import "NSXMLElement+XMPP.h"
@implementation XMPPMessage(XEP0045)
- (BOOL)isGroupChatMessage
{
return [[[self attributeForName:@"type"] stringValue] isEqualToString:@"groupchat"];
}
- (BOOL)isGroupChatMessageWithBody
{
if ([self isGroupChatMessage])
{
NSString *body = [[self el... | zxq911-zxq | Extensions/XEP-0045/XMPPMessage+XEP0045.m | Objective-C | bsd | 433 |
//
// XMPPvCardAvatarModule.h
// XEP-0153 vCard-Based Avatars
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// TODO: publish after upload vCard
/*
* XEP-0153 Section 4.2 rule 1
*
* However, a client MUST advertise an image if it has just uploaded the vCard with a n... | zxq911-zxq | Extensions/XEP-0153/XMPPvCardAvatarModule.m | Objective-C | bsd | 7,911 |
//
// XMPPvCardAvatarModule.h
// XEP-0153 vCard-Based Avatars
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
/*
* NOTE: Currently this implementation only supports downloading and caching avatars.
*/
#import <Foundation/Foundation.h>
#if !TARGET_OS_IPHONE
#impor... | zxq911-zxq | Extensions/XEP-0153/XMPPvCardAvatarModule.h | Objective-C | bsd | 2,333 |
#import "XMPPTime.h"
#import "XMPP.h"
#import "XMPPIDTracker.h"
#import "XMPPDateTimeProfiles.h"
#define INTEGRATE_WITH_CAPABILITIES 1
#if INTEGRATE_WITH_CAPABILITIES
#import "XMPPCapabilities.h"
#endif
#define DEFAULT_TIMEOUT 30.0 // seconds
//////////////////////////////////////////////////////////////////////... | zxq911-zxq | Extensions/XEP-0202/XMPPTime.m | Objective-C | bsd | 14,284 |
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPJID;
@class XMPPStream;
@class XMPPIQ;
@class XMPPIDTracker;
@protocol XMPPTimeDelegate;
@interface XMPPTime : XMPPModule
{
BOOL respondsToQueries;
XMPPIDTracker *queryTracker;
}
/**
* Whether or ... | zxq911-zxq | Extensions/XEP-0202/XMPPTime.h | Objective-C | bsd | 3,209 |
#import "XMPPReconnect.h"
#import "XMPPStream.h"
#import "XMPPLogging.h"
#import "NSXMLElement+XMPP.h"
#define IMPOSSIBLE_REACHABILITY_FLAGS 0xFFFFFFFF
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_VERBOSE;
#else
static const int xmppLogLevel = XMPP_LOG_L... | zxq911-zxq | Extensions/Reconnect/XMPPReconnect.m | Objective-C | bsd | 18,511 |
#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import "XMPPModule.h"
#define DEFAULT_XMPP_RECONNECT_DELAY 2.0
#define DEFAULT_XMPP_RECONNECT_TIMER_INTERVAL 20.0
@protocol XMPPReconnectDelegate;
/**
* XMPPReconnect handles automatically reconnecting to the xmpp server due to... | zxq911-zxq | Extensions/Reconnect/XMPPReconnect.h | Objective-C | bsd | 7,586 |
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPResource.h"
@class XMPPStream;
@class XMPPPresence;
@class XMPPUserCoreDataStorageObject;
@interface XMPPResourceCoreDataStorageObject : NSManagedObject <XMPPResource>
@property (nonatomic, retain) XMPPJID *jid;
@property (nonatomic, retai... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPResourceCoreDataStorageObject.h | Objective-C | bsd | 1,222 |
#import "XMPP.h"
#import "XMPPLogging.h"
#import "XMPPRosterCoreDataStorage.h"
#import "XMPPUserCoreDataStorageObject.h"
#import "XMPPResourceCoreDataStorageObject.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#else
static const int xmppLogLevel = ... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPResourceCoreDataStorageObject.m | Objective-C | bsd | 5,647 |
#import "XMPPRosterCoreDataStorage.h"
#import "XMPPGroupCoreDataStorageObject.h"
#import "XMPPUserCoreDataStorageObject.h"
#import "XMPPResourceCoreDataStorageObject.h"
#import "XMPPRosterPrivate.h"
#import "XMPPCoreDataStorageProtected.h"
#import "XMPP.h"
#import "XMPPLogging.h"
#import "NSNumber+XMPP.h"
// Log level... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPRosterCoreDataStorage.m | Objective-C | bsd | 14,948 |
#import "XMPP.h"
#import "XMPPRosterCoreDataStorage.h"
#import "XMPPUserCoreDataStorageObject.h"
#import "XMPPResourceCoreDataStorageObject.h"
#import "XMPPGroupCoreDataStorageObject.h"
#import "NSNumber+XMPP.h"
@interface XMPPUserCoreDataStorageObject ()
@property(nonatomic,retain) XMPPJID *primitiveJid;
@property(n... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPUserCoreDataStorageObject.m | Objective-C | bsd | 12,658 |
//
// XMPPGroupCoreDataStorageObject.h
//
// Created by Eric Chamberlain on 3/20/11.
// Copyright (c) 2011 RF.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class XMPPUserCoreDataStorageObject;
@interface XMPPGroupCoreDataStorageObject : NSManagedObject {
@private
... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPGroupCoreDataStorageObject.h | Objective-C | bsd | 704 |
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPRoster.h"
#import "XMPPCoreDataStorage.h"
/**
* This class is an example implementation of XMPPRosterStorage using core data.
* You are free to substitute your own roster storage class.
**/
@interface XMPPRosterCoreDataStorage : XMPPCoreD... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPRosterCoreDataStorage.h | Objective-C | bsd | 1,144 |
//
// XMPPGroupCoreDataStorageObject.m
//
// Created by Eric Chamberlain on 3/20/11.
// Copyright (c) 2011 RF.com. All rights reserved.
//
#import "XMPPGroupCoreDataStorageObject.h"
#import "XMPPUserCoreDataStorageObject.h"
@implementation XMPPGroupCoreDataStorageObject
//////////////////////////////////////////... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPGroupCoreDataStorageObject.m | Objective-C | bsd | 4,374 |
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPUser.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPStream;
@class XMPPGroupCoreDataStorageObject;
@class XMPPResourceCoreDataStorageObject;
@interface XMPPUserCoreDataStorageObject : NSManagedObject <XMPPUser>
{
NSInteger... | zxq911-zxq | Extensions/Roster/CoreDataStorage/XMPPUserCoreDataStorageObject.h | Objective-C | bsd | 2,055 |
#import "XMPP.h"
#import "XMPPElement+Delay.h"
#import "XMPPRosterMemoryStoragePrivate.h"
@implementation XMPPResourceMemoryStorage
- (id)initWithPresence:(XMPPPresence *)aPresence
{
if((self = [super init]))
{
jid = [[aPresence from] retain];
presence = [aPresence retain];
presenceDate = [[presence delaye... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPResourceMemoryStorage.m | Objective-C | bsd | 5,110 |
#import <Foundation/Foundation.h>
#import "XMPPRoster.h"
@class XMPPUserMemoryStorage;
/**
* This class is an example implementation of XMPPRosterStorage using core data.
* You are free to substitute your own storage class.
**/
@interface XMPPRosterMemoryStorage : NSObject <XMPPRosterStorage>
{
XMPPRoster *parent... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPRosterMemoryStorage.h | Objective-C | bsd | 1,904 |
#import "XMPPUserMemoryStorage.h"
#import "XMPPResourceMemoryStorage.h"
/**
* The following methods are designed to be invoked ONLY from
* within the XMPPRosterMemoryStorage implementation.
*
* Warning: XMPPUserMemoryStorage and XMPPResourceMemoryStorage are not explicitly thread-safe.
* Only copies that are no ... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPRosterMemoryStoragePrivate.h | Objective-C | bsd | 948 |
#import "XMPP.h"
#import "XMPPRosterPrivate.h"
#import "XMPPRosterMemoryStorage.h"
#import "XMPPRosterMemoryStoragePrivate.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLo... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPRosterMemoryStorage.m | Objective-C | bsd | 16,410 |
#import <Foundation/Foundation.h>
#import "XMPPResource.h"
@class XMPPJID;
@class XMPPIQ;
@class XMPPPresence;
@interface XMPPResourceMemoryStorage : NSObject <XMPPResource, NSCopying, NSCoding>
{
XMPPJID *jid;
XMPPPresence *presence;
NSDate *presenceDate;
}
// See the XMPPResource protocol for available metho... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPResourceMemoryStorage.h | Objective-C | bsd | 330 |
#import "XMPP.h"
#import "XMPPRosterMemoryStoragePrivate.h"
@interface XMPPUserMemoryStorage (PrivateAPI)
- (void)recalculatePrimaryResource;
@end
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
//////////////////////////////////... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPUserMemoryStorage.m | Objective-C | bsd | 11,966 |
#import <Foundation/Foundation.h>
#import "XMPPUser.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPJID;
@class XMPPPresence;
@class XMPPResourceMemoryStorage;
@interface XMPPUserMemoryStorage : NSObject <XMPPUser, NSCopying, NSCoding>
{
XMPPJID *jid;
NSMutableDictionary *itemAttributes;
#if TARGE... | zxq911-zxq | Extensions/Roster/MemoryStorage/XMPPUserMemoryStorage.h | Objective-C | bsd | 538 |
#import "XMPPRoster.h"
#import "XMPP.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#endif
enum XMPPRosterFlags
{
kAut... | zxq911-zxq | Extensions/Roster/XMPPRoster.m | Objective-C | bsd | 16,471 |
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
#import "XMPPUser.h"
#import "XMPPResource.h"
#import "XMPPvCardAvatarModule.h"
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPJID;
@class XMPPStream;
@class XMPPPresence;
@protocol XMPPRosterStorage;
@protocol XMPPRosterDelegate;
/**
* Add XMPPR... | zxq911-zxq | Extensions/Roster/XMPPRoster.h | Objective-C | bsd | 4,458 |
#import <Foundation/Foundation.h>
#import "XMPPRoster.h"
@interface XMPPRoster (PrivateInternalAPI)
/**
* The XMPPRosterStorage classes use the same delegate(s) as their parent XMPPRoster.
* This method allows these classes to access the delegate(s).
*
* Note: If the storage class operates on a different queue t... | zxq911-zxq | Extensions/Roster/XMPPRosterPrivate.h | Objective-C | bsd | 566 |
#import <Foundation/Foundation.h>
@class XMPPJID;
@class XMPPIQ;
@class XMPPPresence;
@protocol XMPPResource <NSObject>
- (XMPPJID *)jid;
- (XMPPPresence *)presence;
- (NSDate *)presenceDate;
- (NSComparisonResult)compare:(id <XMPPResource>)another;
@end
| zxq911-zxq | Extensions/Roster/XMPPResource.h | Objective-C | bsd | 262 |
#import <Foundation/Foundation.h>
#if !TARGET_OS_IPHONE
#import <Cocoa/Cocoa.h>
#endif
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@class XMPPJID;
@class XMPPIQ;
@class XMPPPresence;
@protocol XMPPResource;
@protocol XMPPUser <NSObject>
#if TARGET_OS_IPHONE
@property (nonatomic, retain) UIImage * photo;
#el... | zxq911-zxq | Extensions/Roster/XMPPUser.h | Objective-C | bsd | 994 |
#import <Foundation/Foundation.h>
#import "XMPPElement.h"
@interface XMPPElement (XEP0203)
- (BOOL)wasDelayed;
- (NSDate *)delayedDeliveryDate;
@end
| zxq911-zxq | Extensions/XEP-0203/XMPPElement+Delay.h | Objective-C | bsd | 153 |
#import "XMPPElement+Delay.h"
#import "XMPPDateTimeProfiles.h"
#import "NSXMLElement+XMPP.h"
@implementation XMPPElement (XEP0203)
- (BOOL)wasDelayed
{
NSXMLElement *delay;
delay = [self elementForName:@"delay" xmlns:@"urn:xmpp:delay"];
if (delay)
{
return YES;
}
delay = [self elementForName:@"delay" xml... | zxq911-zxq | Extensions/XEP-0203/XMPPElement+Delay.m | Objective-C | bsd | 1,969 |
//
// XMPPPubSub.h
//
// Created by Duncan Robertson [duncan@whomwah.com]
//
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
@class XMPPStream;
@class XMPPJID;
@class XMPPIQ;
@class XMPPMessage;
@interface XMPPPubSub : XMPPModule
{
XMPPJID *serviceJID;
}
- (id)initWithServiceJID:(XMPPJID *)aServiceJID;
... | zxq911-zxq | Extensions/XEP-0060/XMPPPubSub.h | Objective-C | bsd | 1,249 |
//
// XMPPPubSub.m
//
// Created by Duncan Robertson [duncan@whomwah.com]
//
#import "XMPPPubSub.h"
#import "XMPP.h"
#define NS_PUBSUB @"http://jabber.org/protocol/pubsub"
#define NS_PUBSUB_EVENT @"http://jabber.org/protocol/pubsub#event"
#define NS_PUBSUB_CONFIG @"http://jabber.org/protocol/pubsub#no... | zxq911-zxq | Extensions/XEP-0060/XMPPPubSub.m | Objective-C | bsd | 11,615 |
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
#import "XMPPPing.h"
@class XMPPJID;
/**
* The XMPPAutoPing module sends pings on a designated interval to the target.
* The target may simply be the server, or a specific resource.
*
* The module only sends pings as needed.
* If the xmpp stream is receiv... | zxq911-zxq | Extensions/XEP-0199/XMPPAutoPing.h | Objective-C | bsd | 2,598 |
#import "XMPPAutoPing.h"
#import "XMPPPing.h"
#import "XMPP.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#endif
@interfac... | zxq911-zxq | Extensions/XEP-0199/XMPPAutoPing.m | Objective-C | bsd | 8,468 |
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
@class XMPPJID;
@class XMPPStream;
@class XMPPIQ;
@class XMPPIDTracker;
@protocol XMPPPingDelegate;
@interface XMPPPing : XMPPModule
{
BOOL respondsToQueries;
XMPPIDTracker *pingTracker;
}
/**
* Whether or not the module should respond to incoming ping que... | zxq911-zxq | Extensions/XEP-0199/XMPPPing.h | Objective-C | bsd | 1,621 |
#import "XMPPPing.h"
#import "XMPP.h"
#import "XMPPIDTracker.h"
#define DEFAULT_TIMEOUT 30.0 // seconds
#define INTEGRATE_WITH_CAPABILITIES 1
#if INTEGRATE_WITH_CAPABILITIES
#import "XMPPCapabilities.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////... | zxq911-zxq | Extensions/XEP-0199/XMPPPing.m | Objective-C | bsd | 7,903 |
//
// XMPPIQ+JabberRPC.h
// XEP-0009
//
// Created by Eric Chamberlain on 5/16/10.
//
#import <Foundation/Foundation.h>
#import "XMPPIQ.h"
@interface XMPPIQ(JabberRPC)
/**
* Creates and returns a new autoreleased XMPPIQ.
* This is the only method you normally need to call.
**/
+ (XMPPIQ *)rpcTo:(XMPPJID *)ji... | zxq911-zxq | Extensions/XEP-0009/XMPPIQ+JabberRPC.h | Objective-C | bsd | 2,124 |
//
// XMPPIQ+JabberRPC.m
// XEP-0009
//
// Created by Eric Chamberlain on 5/16/10.
//
#import "XMPPIQ+JabberRPC.h"
#import "NSData+XMPP.h"
#import "XMPP.h"
@implementation XMPPIQ(JabberRPC)
+(XMPPIQ *)rpcTo:(XMPPJID *)jid methodName:(NSString *)method parameters:(NSArray *)parameters {
// Send JabberRPC elemen... | zxq911-zxq | Extensions/XEP-0009/XMPPIQ+JabberRPC.m | Objective-C | bsd | 6,515 |
//
// XMPPJabberRPCModule.m
// XEP-0009
//
// Originally created by Eric Chamberlain on 5/16/10.
//
#import "XMPPJabberRPCModule.h"
#import "XMPP.h"
#import "XMPPIQ+JabberRPC.h"
#import "XMPPIQ+JabberRPCResonse.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
... | zxq911-zxq | Extensions/XEP-0009/XMPPJabberRPCModule.m | Objective-C | bsd | 8,698 |
//
// XMPPIQ+JabberRPCResonse.m
// XEP-0009
//
// Created by Eric Chamberlain on 5/25/10.
//
#import "XMPPIQ+JabberRPCResonse.h"
#import "NSData+XMPP.h"
#import "NSXMLElement+XMPP.h"
#import "XMPPJabberRPCModule.h"
#import "XMPPLogging.h"
// Log levels: off, error, warn, info, verbose
#if DEBUG
static const in... | zxq911-zxq | Extensions/XEP-0009/XMPPIQ+JabberRPCResonse.m | Objective-C | bsd | 7,074 |
//
// XMPPIQ+JabberRPCResonse.h
// XEP-0009
//
// Created by Eric Chamberlain on 5/25/10.
//
#import "XMPPIQ.h"
typedef enum {
JabberRPCElementTypeArray,
JabberRPCElementTypeDictionary,
JabberRPCElementTypeMember,
JabberRPCElementTypeName,
JabberRPCElementTypeInteger,
JabberRPCElementTypeDo... | zxq911-zxq | Extensions/XEP-0009/XMPPIQ+JabberRPCResonse.h | Objective-C | bsd | 1,336 |
//
// XMPPJabberRPCModule.h
// XEP-0009
//
// Originally created by Eric Chamberlain on 5/16/10.
//
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
extern NSString *const XMPPJabberRPCErrorDomain;
@class XMPPJID;
@class XMPPStream;
@class XMPPIQ;
@protocol XMPPJabberRPCModuleDelegate;
@interface XMPPJa... | zxq911-zxq | Extensions/XEP-0009/XMPPJabberRPCModule.h | Objective-C | bsd | 1,235 |
//
// XMPPStreamFacebook.h
//
// Created by Eric Chamberlain on 10/13/10.
// Copyright 2010 RF.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FBConnect.h"
#import "XMPPStream.h"
@interface XMPPStreamFacebook : XMPPStream <FBRequestDelegate>
{
Facebook *facebook;
FBRequest *facebookRe... | zxq911-zxq | Extensions/X-FACEBOOK-PLATFORM/XMPPStreamFacebook.h | Objective-C | bsd | 867 |
//
// XMPPStreamFacebook.m
//
// Created by Eric Chamberlain on 10/13/10.
// Copyright 2010 RF.com. All rights reserved.
//
#import "XMPPStreamFacebook.h"
#import "XMPPInternal.h"
#import "XMPPLogging.h"
#import "GCDAsyncSocket.h"
#import "NSData+XMPP.h"
#import "NSXMLElement+XMPP.h"
/**
* Seeing a return stateme... | zxq911-zxq | Extensions/X-FACEBOOK-PLATFORM/XMPPStreamFacebook.m | Objective-C | bsd | 16,354 |
//
// XMPPvCardTempCoreDataStorageObject.h
// XEP-0054 vCard-temp
//
// Oringally created by Eric Chamberlain on 3/18/11.
//
// This class is so that we don't load the vCardTemp each time we need to touch the XMPPvCardCoreDataStorageObject.
// The vCardTemp abstraction also makes it easier to eventually add suppor... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardTempCoreDataStorageObject.h | Objective-C | bsd | 687 |
//
// XMPPvCardCoreDataStorageObject.h
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class XMPPJID;
@class XMPPvCardTemp;
@class XMPPvCardTempCoreDataStorageObject;
@class XMPPvCardAvatarCoreDataStorageObject;
... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorageObject.h | Objective-C | bsd | 1,828 |
//
// XMPPvCardCoreDataStorageObject.m
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import "XMPPvCardCoreDataStorageObject.h"
#import "XMPPvCardTempCoreDataStorageObject.h"
#import "XMPPvCardAvatarCoreDataStorageObject.h"
#import "XMPPJID.h"
#import "XMPPStream.h"
#import "NS... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorageObject.m | Objective-C | bsd | 5,210 |
//
// XMPPvCardAvatarCoreDataStorageObject.m
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import "XMPPvCardAvatarCoreDataStorageObject.h"
#import "XMPPvCardCoreDataStorageObject.h"
@implementation XMPPvCardAvatarCoreDataStorageObject
@dynamic photoData;
@dynamic vCard;
@en... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardAvatarCoreDataStorageObject.m | Objective-C | bsd | 322 |
//
// XMPPvCardCoreDataStorage.m
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import "XMPPvCardCoreDataStorage.h"
#import "XMPPvCardCoreDataStorageObject.h"
#import "XMPPvCardTempCoreDataStorageObject.h"
#import "XMPPvCardAvatarCoreDataStorageObject.h"
#import "XMPP.h"
#import... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorage.m | Objective-C | bsd | 7,118 |
//
// XMPPvCardAvatarCoreDataStorageObject.h
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
// This class is so that we don't load the photoData each time we need to touch the XMPPvCardCoreDataStorageObject.
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardAvatarCoreDataStorageObject.h | Objective-C | bsd | 548 |
//
// XMPPvCardCoreDataStorage.h
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPCoreDataStorage.h"
#import "XMPPvCardTempModule.h"
#import "XMPPvCardAvatarModule.h"
/**
* This class is an example impl... | zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorage.h | Objective-C | bsd | 1,397 |
//
// XMPPvCardTempCoreDataStorageObject.m
// XEP-0054 vCard-temp
//
// Originally created by Eric Chamberlain on 3/18/11.
//
#import "XMPPvCardTempCoreDataStorageObject.h"
#import "XMPPvCardCoreDataStorageObject.h"
@implementation XMPPvCardTempCoreDataStorageObject
@dynamic vCardTemp;
@dynamic vCard;
@end
| zxq911-zxq | Extensions/XEP-0054/CoreDataStorage/XMPPvCardTempCoreDataStorageObject.m | Objective-C | bsd | 316 |
//
// XMPPvCardTempLabel.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPvCardTempAdrTypes.h"
@interface XMPPvCardTempLabel : XMPPvCard... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempLabel.h | Objective-C | bsd | 458 |
//
// XMPPvCardTempEmail.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPvCardTempBase.h"
@interface XMPPvCardTempEmail : XMPPvCardTemp... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempEmail.h | Objective-C | bsd | 770 |
//
// XMPPvCardTemp.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTemp.h"
#import <objc/runtime.h>
#import "XMPPLogging.h"
#import "NSData+XMPP.h"
#import "XMPPDat... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTemp.m | Objective-C | bsd | 20,339 |
//
// XMPPvCardTemp.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "XMPPIQ.h"
#import "XMPPJID.h"
#impo... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTemp.h | Objective-C | bsd | 3,750 |
//
// XMPPvCardTempTel.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPvCardTempBase.h"
@interface XMPPvCardTempTel : XMPPvCardTempBase... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempTel.h | Objective-C | bsd | 1,247 |
//
// XMPPvCardTempAdrTypes.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempAdrTypes.h"
@implementation XMPPvCardTempAdrTypes
#pragma mark -
#pragma mark Gette... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempAdrTypes.m | Objective-C | bsd | 1,722 |
//
// XMPPvCardTempModule.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/17/11.
// Copyright 2011 RF.com. All rights reserved.
//
#import "XMPP.h"
#import "XMPPLogging.h"
#import "XMPPvCardTempModule.h"
// Log levels: off, error, warn, info, verbose
// Log flags: trace
#if DEBUG
static const in... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempModule.m | Objective-C | bsd | 5,465 |
//
// XMPPvCardTempBase.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempBase.h"
#import <objc/runtime.h>
@implementation XMPPvCardTempBase
///////////////////... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempBase.m | Objective-C | bsd | 1,433 |
//
// XMPPvCardTempTel.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempTel.h"
#import "XMPPLogging.h"
#import <objc/runtime.h>
#if DEBUG
static const int xmppL... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempTel.m | Objective-C | bsd | 3,928 |
//
// XMPPvCardTempEmail.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempEmail.h"
#import "XMPPLogging.h"
#import <objc/runtime.h>
#if DEBUG
static const int x... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempEmail.m | Objective-C | bsd | 2,659 |
//
// XMPPvCardTempAdr.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPvCardTempAdrTypes.h"
@interface XMPPvCardTempAdr : XMPPvCardTemp... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempAdr.h | Objective-C | bsd | 755 |
//
// XMPPvCardTempLabel.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempLabel.h"
#import "XMPPLogging.h"
#import <objc/runtime.h>
#if DEBUG
static const int x... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempLabel.m | Objective-C | bsd | 2,311 |
//
// XMPPvCardTempAdrTypes.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPvCardTempBase.h"
@interface XMPPvCardTempAdrTypes : XMPPvCa... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempAdrTypes.h | Objective-C | bsd | 804 |
//
// XMPPvCardTempModule.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/17/11.
// Copyright 2011 RF.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMPPModule.h"
#import "XMPPvCardTemp.h"
@class XMPPJID;
@class XMPPStream;
@protocol XMPPvCardTempModuleStorage;
@interfa... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempModule.h | Objective-C | bsd | 3,063 |
//
// XMPPvCardTempBase.h
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSXMLElement+XMPP.h"
#define XMPP_VCARD_SET_EMPTY_CHILD(Set, Name) ... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempBase.h | Objective-C | bsd | 2,866 |
//
// XMPPvCardTempAdr.m
// XEP-0054 vCard-temp
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "XMPPvCardTempAdr.h"
#import "XMPPLogging.h"
#import <objc/runtime.h>
#if DEBUG
static const int xmppL... | zxq911-zxq | Extensions/XEP-0054/XMPPvCardTempAdr.m | Objective-C | bsd | 2,856 |
#import "XMPPDateTimeProfiles.h"
#import "NSNumber+XMPP.h"
@interface XMPPDateTimeProfiles (PrivateAPI)
+ (NSDate *)parseDateTime:(NSString *)dateTimeStr withMandatoryTimeZone:(BOOL)mandatoryTZ;
@end
@implementation XMPPDateTimeProfiles
/**
* The following acronyms and characters are used from XEP-0082 to represe... | zxq911-zxq | Extensions/XEP-0082/XMPPDateTimeProfiles.m | Objective-C | bsd | 7,441 |
//
// NSDate+XMPPDateTimeProfiles.m
//
// NSDate category to implement XEP-0082.
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import "NSDate+XMPPDateTimeProfiles.h"
#import "XMPPDateTimeProfiles.h"
@interf... | zxq911-zxq | Extensions/XEP-0082/NSDate+XMPPDateTimeProfiles.m | Objective-C | bsd | 1,700 |
#import <Foundation/Foundation.h>
#import "NSDate+XMPPDateTimeProfiles.h"
@interface XMPPDateTimeProfiles : NSObject
/**
* The following methods attempt to parse the given string following XEP-0082.
* They return nil if the given string doesn't follow the spec.
**/
+ (NSDate *)parseDate:(NSString *)dateStr;
+ (NSD... | zxq911-zxq | Extensions/XEP-0082/XMPPDateTimeProfiles.h | Objective-C | bsd | 468 |
//
// NSDate+XMPPDateTimeProfiles.h
//
// NSDate category to implement XEP-0082.
//
// Created by Eric Chamberlain on 3/9/11.
// Copyright 2011 RF.com. All rights reserved.
// Copyright 2010 Martin Morrison. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate(XMPPDateTimeProfiles)
+ (NS... | zxq911-zxq | Extensions/XEP-0082/NSDate+XMPPDateTimeProfiles.h | Objective-C | bsd | 578 |
#import "XMPPPresence.h"
#import "NSXMLElement+XMPP.h"
#import <objc/runtime.h>
@implementation XMPPPresence
+ (void)initialize
{
// We use the object_setClass method below to dynamically change the class from a standard NSXMLElement.
// The size of the two classes is expected to be the same.
//
// If a develo... | zxq911-zxq | Core/XMPPPresence.m | Objective-C | bsd | 2,696 |
#import <Foundation/Foundation.h>
#import "GCDMulticastDelegate.h"
@class XMPPStream;
/**
* XMPPModule is the base class that all extensions/modules inherit.
* They automatically get:
*
* - A dispatch queue.
* - A multicast delegate that automatically invokes added delegates.
*
* The module also automaticall... | zxq911-zxq | Core/XMPPModule.h | Objective-C | bsd | 996 |
#import "XMPPParser.h"
#import <libxml/parserInternals.h>
#if TARGET_OS_IPHONE
#import "DDXMLPrivate.h"
#endif
// When the xmpp parser invokes a delegate method, such as xmppParser:didReadElement:,
// it exposes itself to the possibility of exceptions mid-parse.
// This aborts the current run loop,
// and thus caus... | zxq911-zxq | Core/XMPPParser.m | Objective-C | bsd | 21,826 |
/**
* In order to provide fast and flexible logging, this project uses Cocoa Lumberjack.
*
* The Google Code page has a wealth of documentation if you have any questions.
* http://code.google.com/p/cocoalumberjack/
*
* Here's what you need to know concerning how logging is setup for XMPPFramework:
*
* There ... | zxq911-zxq | Core/XMPPLogging.h | Objective-C | bsd | 8,224 |
#import "XMPPIQ.h"
#import "XMPPJID.h"
#import "NSXMLElement+XMPP.h"
#import <objc/runtime.h>
@implementation XMPPIQ
+ (void)initialize
{
// We use the object_setClass method below to dynamically change the class from a standard NSXMLElement.
// The size of the two classes is expected to be the same.
//
// If ... | zxq911-zxq | Core/XMPPIQ.m | Objective-C | bsd | 3,713 |
#import "XMPPElement.h"
#import "XMPPJID.h"
#import "NSXMLElement+XMPP.h"
@implementation XMPPElement
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Encoding, Decoding
//////////////////////////////////////////////////////////////... | zxq911-zxq | Core/XMPPElement.m | Objective-C | bsd | 1,814 |
#import "XMPPJID.h"
#import "LibIDN.h"
@implementation XMPPJID
+ (BOOL)validateDomain:(NSString *)domain
{
// Domain is the only required part of a JID
if ((domain == nil) || ([domain length] == 0))
return NO;
// If there's an @ symbol in the domain it probably means user put @ in their username
NSRange inval... | zxq911-zxq | Core/XMPPJID.m | Objective-C | bsd | 9,106 |
#import <Foundation/Foundation.h>
#import "XMPPElement.h"
/**
* The XMPPMessage class represents a <message> element.
* It extends XMPPElement, which in turn extends NSXMLElement.
* All <message> elements that go in and out of the
* xmpp stream will automatically be converted to XMPPMessage objects.
*
* This cl... | zxq911-zxq | Core/XMPPMessage.h | Objective-C | bsd | 1,019 |