code
string
repo_name
string
path
string
language
string
license
string
size
int64
// // MojoDatabase.h // MojoDB // // Created by Craig Jolicoeur on 10/8/10. // Copyright 2010 Mojo Tech, LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> @interface MojoDatabase : NSObject { NSString *pathToDatabase; BOOL logging; sqlite3 *database; } @property (nonatomic, re...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/MojoDatabase/MojoDatabase.h
Objective-C
oos
932
// // AppDatabase.h // groove-iphone // // Created by Craig Jolicoeur on 5/5/11. // Copyright 2011 Mojo Tech, LLC. All rights reserved. // #import "MojoDatabase.h" #import "MojoModel.h" @interface AppDatabase : MojoDatabase { } -(id)initWithMigrations; -(id)initWithMigrations:(BOOL)loggingEnabled; - (BOOL)checkT...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/MojoDatabase/AppDatabase.h
Objective-C
oos
386
// // MojoModel.m // MojoDB // // Created by Craig Jolicoeur on 10/8/10. // Copyright 2010 Mojo Tech, LLC. All rights reserved. // #import "MojoModel.h" #import "MojoDatabase.h" static MojoDatabase *database = nil; static NSMutableDictionary *tableCache = nil; @interface MojoModel(PrivateMethods) -(void)insert;...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/MojoDatabase/MojoModel.m
Objective-C
oos
5,854
// // MojoModel.h // MojoDB // // Created by Craig Jolicoeur on 10/8/10. // Copyright 2010 Mojo Tech, LLC. All rights reserved. // #import <Foundation/Foundation.h> @class MojoDatabase; @interface MojoModel : NSObject { NSUInteger primaryKey; BOOL savedInDatabase; } @property (nonatomic) NSUInteger primaryKey...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/MojoDatabase/MojoModel.h
Objective-C
oos
1,078
// // AppDatabase.m // groove-iphone // // Created by Craig Jolicoeur on 5/5/11. // Copyright 2011 Mojo Tech, LLC. All rights reserved. // #import "AppDatabase.h" NSString *const kDatabaseName = @"MojoDatabase.sqlite3"; @interface AppDatabase(PrivateMethods) -(void)runMigrations; -(NSUInteger)databaseVersion; -(...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/MojoDatabase/AppDatabase.m
Objective-C
oos
3,023
#import <Foundation/Foundation.h> #import "XMPP.h" #define _XMPP_MESSAGE_ARCHIVING_H @protocol XMPPMessageArchivingStorage; /** * This class provides support for storing message history. * The functionality is formalized in XEP-0136. **/ @interface XMPPMessageArchiving : XMPPModule { @protected __strong id <X...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/XMPPMessageArchiving.h
Objective-C
oos
3,791
#import "XMPPMessageArchiving.h" #import "XMPPFramework.h" #import "XMPPLogging.h" #import "NSNumber+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, error, warn, info, verbose // Log flags: trace #if DEBUG ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/XMPPMessageArchiving.m
Objective-C
oos
11,848
#import "XMPPMessageArchiving_Contact_CoreDataObject.h" @interface XMPPMessageArchiving_Contact_CoreDataObject () @property (nonatomic, strong) XMPPJID * primitiveBareJid; @property (nonatomic, strong) NSString * primitiveBareJidStr; @end @implementation XMPPMessageArchiving_Contact_CoreDataObject @dynamic bareJ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving_Contact_CoreDataObject.m
Objective-C
oos
2,159
#import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #import "XMPP.h" @interface XMPPMessageArchiving_Contact_CoreDataObject : NSManagedObject @property (nonatomic, strong) XMPPJID * bareJid; // Transient (proper type, not on disk) @property (nonatomic, strong) NSString * bareJidStr; // Shadow (bina...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving_Contact_CoreDataObject.h
Objective-C
oos
1,297
#import <Foundation/Foundation.h> #import "XMPPCoreDataStorage.h" #import "XMPPMessageArchiving.h" #import "XMPPMessageArchiving_Message_CoreDataObject.h" #import "XMPPMessageArchiving_Contact_CoreDataObject.h" @interface XMPPMessageArchivingCoreDataStorage : XMPPCoreDataStorage <XMPPMessageArchivingStorage> { /* I...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchivingCoreDataStorage.h
Objective-C
oos
2,510
#import "XMPPMessageArchiving_Message_CoreDataObject.h" @interface XMPPMessageArchiving_Message_CoreDataObject () @property(nonatomic,strong) XMPPMessage * primitiveMessage; @property(nonatomic,strong) NSString * primitiveMessageStr; @property(nonatomic,strong) XMPPJID * primitiveBareJid; @property(nonatomic,strong...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving_Message_CoreDataObject.m
Objective-C
oos
3,931
#import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #import "XMPP.h" @interface XMPPMessageArchiving_Message_CoreDataObject : NSManagedObject @property (nonatomic, strong) XMPPMessage * message; // Transient (proper type, not on disk) @property (nonatomic, strong) NSString * messageStr; // Shadow (bina...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving_Message_CoreDataObject.h
Objective-C
oos
1,933
#import "XMPPMessageArchivingCoreDataStorage.h" #import "XMPPCoreDataStorageProtected.h" #import "XMPPLogging.h" #import "XMPPElement+Delay.h" #import "XMPPMessage+XEP_0085.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log lev...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchivingCoreDataStorage.m
Objective-C
oos
15,042
#import <Foundation/Foundation.h> #import "XMPPElement.h" @interface XMPPElement (XEP0203) - (BOOL)wasDelayed; - (NSDate *)delayedDeliveryDate; @end
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0203/XMPPElement+Delay.h
Objective-C
oos
153
#import "XMPPElement+Delay.h" #import "XMPPDateTimeProfiles.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @implementation XMPPElement (XEP0203) - (BOOL)wasDelayed { NSXMLElement *delay; delay =...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/XEP-0203/XMPPElement+Delay.m
Objective-C
oos
2,075
#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> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert projec...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/CoreDataStorage/XMPPCoreDataStorage.m
Objective-C
oos
26,150
#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...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/CoreDataStorage/XMPPCoreDataStorage.h
Objective-C
oos
5,357
#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 /** * If your subclass needs to do anything for init, it can do so easily by overrid...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Extensions/CoreDataStorage/XMPPCoreDataStorageProtected.h
Objective-C
oos
13,238
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPPStream.h" @interface XMPPDigestMD5Authentication : NSObject <XMPPSASLAuthentication> // This class implements the XMPPSASLAuthentication protocol. // // See XMPPSASLAuthentication.h for more information. @end ///////////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Digest-MD5/XMPPDigestMD5Authentication.h
Objective-C
oos
655
#import "XMPPDigestMD5Authentication.h" #import "XMPP.h" #import "XMPPLogging.h" #import "XMPPInternal.h" #import "NSData+XMPP.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, error,...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Digest-MD5/XMPPDigestMD5Authentication.m
Objective-C
oos
9,293
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPPStream.h" @interface XMPPDeprecatedPlainAuthentication : NSObject <XMPPSASLAuthentication> // This class implements the XMPPSASLAuthentication protocol. // // See XMPPSASLAuthentication.h for more information. @end /////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Deprecated-Plain/XMPPDeprecatedPlainAuthentication.h
Objective-C
oos
673
#import "XMPPDeprecatedPlainAuthentication.h" #import "XMPP.h" #import "XMPPInternal.h" #import "XMPPLogging.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, error, warn, info, verbo...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Deprecated-Plain/XMPPDeprecatedPlainAuthentication.m
Objective-C
oos
4,091
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPPStream.h" @interface XMPPXFacebookPlatformAuthentication : NSObject <XMPPSASLAuthentication> /** * You should use this init method (as opposed the one defined in the XMPPSASLAuthentication protocol). **/ - (id)initWithStream:(XMPPStre...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/X-Facebook-Platform/XMPPXFacebookPlatformAuthentication.h
Objective-C
oos
1,995
#import "XMPPXFacebookPlatformAuthentication.h" #import "XMPP.h" #import "XMPPLogging.h" #import "XMPPInternal.h" #import "NSData+XMPP.h" #import <objc/runtime.h> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, er...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/X-Facebook-Platform/XMPPXFacebookPlatformAuthentication.m
Objective-C
oos
9,182
#import "XMPPPlainAuthentication.h" #import "XMPP.h" #import "XMPPLogging.h" #import "XMPPInternal.h" #import "NSData+XMPP.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, error, war...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Plain/XMPPPlainAuthentication.m
Objective-C
oos
2,554
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPPStream.h" @interface XMPPPlainAuthentication : NSObject <XMPPSASLAuthentication> // This class implements the XMPPSASLAuthentication protocol. // // See XMPPSASLAuthentication.h for more information. @end ///////////////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Plain/XMPPPlainAuthentication.h
Objective-C
oos
643
#import "XMPPAnonymousAuthentication.h" #import "XMPP.h" #import "XMPPLogging.h" #import "XMPPInternal.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off, error, warn, info, verbose #if...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Anonymous/XMPPAnonymousAuthentication.m
Objective-C
oos
3,198
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPP.h" @interface XMPPAnonymousAuthentication : NSObject <XMPPSASLAuthentication> - (id)initWithStream:(XMPPStream *)stream; // This class implements the XMPPSASLAuthentication protocol. // // See XMPPSASLAuthentication.h for more infor...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Anonymous/XMPPAnonymousAuthentication.h
Objective-C
oos
1,438
#import "XMPPDeprecatedDigestAuthentication.h" #import "XMPP.h" #import "XMPPInternal.h" #import "XMPPLogging.h" #import "NSData+XMPP.h" #import "NSXMLElement+XMPP.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels: off,...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Deprecated-Digest/XMPPDeprecatedDigestAuthentication.m
Objective-C
oos
4,386
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "XMPPStream.h" @interface XMPPDeprecatedDigestAuthentication : NSObject <XMPPSASLAuthentication> // This class implements the XMPPSASLAuthentication protocol. // // See XMPPSASLAuthentication.h for more information. @end ////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/Deprecated-Digest/XMPPDeprecatedDigestAuthentication.h
Objective-C
oos
676
#import <Foundation/Foundation.h> #if TARGET_OS_IPHONE #import "DDXML.h" #endif @class XMPPStream; enum XMPPHandleAuthResponse { XMPP_AUTH_FAIL, // Authentication failed. // The delegate will be informed via xmppStream:didNotAuthenticate: XMPP_AUTH_SUCCESS, // Authentication succeeded...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Authentication/XMPPSASLAuthentication.h
Objective-C
oos
3,525
// // This file is for XMPPStream and various internal components. // #import "XMPPStream.h" #import "XMPPModule.h" // Define the various states we'll use to track our progress enum XMPPStreamState { STATE_XMPP_DISCONNECTED, STATE_XMPP_RESOLVING_SRV, STATE_XMPP_CONNECTING, STATE_XMPP_OPENING, STATE_XMPP_NEGOTIA...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPInternal.h
Objective-C
oos
2,455
#import <Foundation/Foundation.h> #if TARGET_OS_IPHONE #import "DDXML.h" #endif @interface XMPPParser : NSObject - (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq; - (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq parserQueue:(dispatch_queue_t)pq; - (void)setDelegate:(id...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPParser.h
Objective-C
oos
1,162
#import "XMPPModule.h" #import "XMPPStream.h" #import "XMPPLogging.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif /** * Does ARC support support GCD objects? * It does if the minimum deployment target is iOS 6+ or Mac OS X 10.8+...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPModule.m
Objective-C
oos
4,915
#import "XMPPParser.h" #import "XMPPLogging.h" #import <libxml/parser.h> #import <libxml/parserInternals.h> #if TARGET_OS_IPHONE #import "DDXMLPrivate.h" #endif #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif /** * Does ARC suppor...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPParser.m
Objective-C
oos
24,298
#import "XMPPMessage.h" #import "XMPPJID.h" #import "NSXMLElement+XMPP.h" #import <objc/runtime.h> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @implementation XMPPMessage + (void)initialize { // We use the object_setClass meth...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPMessage.m
Objective-C
oos
2,908
#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...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPModule.h
Objective-C
oos
1,004
#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...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPMessage.h
Objective-C
oos
1,091
// // Core classes // #import "XMPPJID.h" #import "XMPPStream.h" #import "XMPPElement.h" #import "XMPPIQ.h" #import "XMPPMessage.h" #import "XMPPPresence.h" #import "XMPPModule.h" // // Authentication // #import "XMPPSASLAuthentication.h" #import "XMPPDigestMD5Authentication.h" #import "XMPPPlainAuthentication.h...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPP.h
Objective-C
oos
557
#import "XMPPJID.h" #import "LibIDN.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @implementation XMPPJID + (BOOL)validateDomain:(NSString *)domain { // Domain is the only required part of a JID if ((domain == nil) || ([domai...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPJID.m
Objective-C
oos
13,398
/** * In order to provide fast and flexible logging, this project uses Cocoa Lumberjack. * * The GitHub project page has a wealth of documentation if you have any questions. * https://github.com/robbiehanson/CocoaLumberjack * * Here's what you need to know concerning how logging is setup for XMPPFramework: * ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPLogging.h
Objective-C
oos
8,950
#import <Foundation/Foundation.h> enum XMPPJIDCompareOptions { XMPPJIDCompareUser = 1, // 001 XMPPJIDCompareDomain = 2, // 010 XMPPJIDCompareResource = 4, // 100 XMPPJIDCompareBare = 3, // 011 XMPPJIDCompareFull = 7, // 111 }; typedef enum XMPPJIDCompareOptions XMPPJIDCompareOptions; @interface ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPJID.h
Objective-C
oos
2,092
#import <Foundation/Foundation.h> #import "XMPPSASLAuthentication.h" #import "GCDAsyncSocket.h" #import "GCDMulticastDelegate.h" #if TARGET_OS_IPHONE #import "DDXML.h" #endif @class XMPPSRVResolver; @class XMPPParser; @class XMPPJID; @class XMPPIQ; @class XMPPMessage; @class XMPPPresence; @class XMPPModule; @class ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPStream.h
Objective-C
oos
39,690
#import <Foundation/Foundation.h> #if TARGET_OS_IPHONE #import "DDXML.h" #endif @class XMPPJID; /** * The XMPPElement provides the base class for XMPPIQ, XMPPMessage & XMPPPresence. * * This class extends NSXMLElement. * The NSXML classes (NSXMLElement & NSXMLNode) provide a full-featured library for working ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPElement.h
Objective-C
oos
618
#import "XMPPPresence.h" #import "XMPPJID.h" #import "NSXMLElement+XMPP.h" #import <objc/runtime.h> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @implementation XMPPPresence + (void)initialize { // We use the object_setClass me...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPPresence.m
Objective-C
oos
2,807
#import "XMPPElement.h" #import "XMPPJID.h" #import "NSXMLElement+XMPP.h" #import <objc/runtime.h> @implementation XMPPElement //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #pragma mark Encoding, Decoding ////////////////////////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPElement.m
Objective-C
oos
2,669
#import <Foundation/Foundation.h> #import "XMPPElement.h" /** * The XMPPPresence class represents a <presence> element. * It extends XMPPElement, which in turn extends NSXMLElement. * All <presence> elements that go in and out of the * xmpp stream will automatically be converted to XMPPPresence objects. * * Thi...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPPresence.h
Objective-C
oos
1,098
#import <Foundation/Foundation.h> #import "XMPPElement.h" /** * The XMPPIQ class represents an <iq> element. * It extends XMPPElement, which in turn extends NSXMLElement. * All <iq> elements that go in and out of the * xmpp stream will automatically be converted to XMPPIQ objects. * * This class exists to provi...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPIQ.h
Objective-C
oos
3,251
#import "XMPP.h" #import "XMPPParser.h" #import "XMPPLogging.h" #import "XMPPInternal.h" #import "XMPPSRVResolver.h" #import "NSData+XMPP.h" #import <objc/runtime.h> #import <libkern/OSAtomic.h> #if TARGET_OS_IPHONE // Note: You may need to add the CFNetwork Framework to your project #import <CFNetwork/CFNetwork....
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPStream.m
Objective-C
oos
115,409
#import "XMPPIQ.h" #import "XMPPJID.h" #import "NSXMLElement+XMPP.h" #import <objc/runtime.h> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @implementation XMPPIQ + (void)initialize { // We use the object_setClass method below t...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Core/XMPPIQ.m
Objective-C
oos
5,146
#import <Foundation/Foundation.h> @class DDListEnumerator; struct DDListNode { void * element; struct DDListNode * prev; struct DDListNode * next; }; typedef struct DDListNode DDListNode; /** * The DDList class is designed as a simple list class. * It can store objective-c objects as well as non-objective-c po...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/DDList.h
Objective-C
oos
1,534
// // XMPPSRVResolver.m // // Originally created by Eric Chamberlain on 6/15/10. // Based on SRVResolver by Apple, Inc. // #import "XMPPSRVResolver.h" #import "XMPPLogging.h" #include <dns_util.h> #include <stdlib.h> #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/XMPPSRVResolver.m
Objective-C
oos
18,823
// // XMPPSRVResolver.h // // Originally created by Eric Chamberlain on 6/15/10. // Based on SRVResolver by Apple, Inc. // #import <Foundation/Foundation.h> #import <dns_sd.h> extern NSString *const XMPPSRVResolverErrorDomain; @interface XMPPSRVResolver : NSObject { __unsafe_unretained id delegate; dispatch...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/XMPPSRVResolver.h
Objective-C
oos
2,443
#import <Foundation/Foundation.h> @interface LibIDN : NSObject /** * Preps a node identifier for use in a JID. * If the given node is invalid, this method returns nil. * * See the XMPP RFC (3920) for details. * * Note: The prep properly converts the string to lowercase, as per the RFC. **/ + (NSString *)prepN...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/LibIDN.h
Objective-C
oos
756
#import <Foundation/Foundation.h> @protocol XMPPTrackingInfo; /** * A common operation in XMPP is to send some kind of request with a unique id, * and wait for the response to come back. * The most common example is sending an IQ of type='get' with a unique id, and then awaiting the response. * * In order to p...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/XMPPIDTracker.h
Objective-C
oos
4,856
/* File: RFImageToDataTransformer.m Abstract: A value transformer, which transforms a UIImage or NSImage object into an NSData object. Based on Apple's UIImageToDataTransformer Copyright (C) 2010 Apple Inc. All Rights Reserved. Copyright (C) 2011 RF.com All Rights Reserved. */ #import "RFImageToDataTran...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/RFImageToDataTransformer.m
Objective-C
oos
888
#import "GCDMulticastDelegate.h" #import <libkern/OSAtomic.h> #if __has_feature(objc_arc_weak) && !TARGET_OS_IPHONE #import <AppKit/AppKit.h> #endif #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif /** * Does ARC support support GCD ...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/GCDMulticastDelegate.m
Objective-C
oos
17,286
#import "LibIDN.h" #import "stringprep.h" @implementation LibIDN + (NSString *)prepNode:(NSString *)node { if(node == nil) return nil; // Each allowable portion of a JID MUST NOT be more than 1023 bytes in length. // We make the buffer just big enough to hold a null-terminated string of this length. char buf[...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/LibIDN.m
Objective-C
oos
1,371
#import "DDList.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif @interface DDListEnumerator (PrivateAPI) - (id)initWithList:(DDListNode *)list reverse:(BOOL)reverse; @end ////////////////////////////////////////////////////////...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/DDList.m
Objective-C
oos
5,507
#import "XMPPIDTracker.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif /** * Does ARC support support GCD objects? * It does if the minimum deployment target is iOS 6+ or Mac OS X 10.8+ **/ #if TARGET_OS_IPHONE // Compiling fo...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/XMPPIDTracker.m
Objective-C
oos
5,522
#import <Foundation/Foundation.h> @class GCDMulticastDelegateEnumerator; /** * This class provides multicast delegate functionality. That is: * - it provides a means for managing a list of delegates * - any method invocations to an instance of this class are automatically forwarded to all delegates * * For exam...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/GCDMulticastDelegate.h
Objective-C
oos
2,078
/* File: RFImageToDataTransformer.h Abstract: A value transformer, which transforms a UIImage or NSImage object into an NSData object. Based on Apple's UIImageToDataTransformer Copyright (C) 2010 Apple Inc. All Rights Reserved. Copyright (C) 2011 RF.com All Rights Reserved. */ #import <Foundation/Founda...
zwyxmpp-demo
trunk/XMPPDemo/xmpp/Utilities/RFImageToDataTransformer.h
Objective-C
oos
398
// // RegisterViewController.h // XMPPDemo // // Created by robin on 12-8-31. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @class ZWYAppDelegate; @interface RegisterViewController : UIViewController { UITextField *user; UITextField *password; UITextField *r...
zwyxmpp-demo
trunk/XMPPDemo/RegisterViewController.h
Objective-C
oos
784
// // ChatTableViewCell.h // XMPPClient // #import "ChatTableViewCell.h" static const CGFloat margin = 2; static const CGFloat titleHeight = 24; static const CGFloat bubbleMargin = 10; static const CGFloat NAME_FONT_SIZE = 17; static const CGFloat DATE_FONT_SIZE = 12; static const CGFloat CONTENT_FONT_SIZE = 15; ...
zwyxmpp-demo
trunk/XMPPDemo/ChatTableViewCell.m
Objective-C
oos
7,786
// // ZWYDetailViewController.h // XMPPDemo // // Created by robin on 12-8-11. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> //@class ZWYAppDelegate; @interface ZWYDetailViewController : UIViewController <UISplitViewControllerDelegate, UITableViewDelegate, UITableViewDa...
zwyxmpp-demo
trunk/XMPPDemo/ZWYDetailViewController.h
Objective-C
oos
1,217
// // MessageModel.h // iPhoneXMPP // // Created by System Administrator on 5/2/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "MojoModel.h" @interface ChatMessage : MojoModel @property NSUInteger direction; // 0: come from other, 1: send by self...
zwyxmpp-demo
trunk/XMPPDemo/ChatMessage.h
Objective-C
oos
484
// // NSString+Date.m // JabberClient // // Created by cesarerocchi on 9/12/11. // Copyright 2011 studiomagnolia.com. All rights reserved. // #import "NSString+Utils.h" @implementation NSString (Utils) + (NSString *) getCurrentTime { NSDate *nowUTC = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFo...
zwyxmpp-demo
trunk/XMPPDemo/NSString+Utils.m
Objective-C
oos
1,044
// // NSString+Date.h // JabberClient // // Created by cesarerocchi on 9/12/11. // Copyright 2011 studiomagnolia.com. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Utils) + (NSString *) getCurrentTime; - (NSString *) substituteEmoticons; @end
zwyxmpp-demo
trunk/XMPPDemo/NSString+Utils.h
Objective-C
oos
285
// // main.m // XMPPDemo // // Created by robin on 12-8-11. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> #import "ZWYAppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([ZWYAppDel...
zwyxmpp-demo
trunk/XMPPDemo/main.m
Objective-C
oos
346
// // AddBuddyViewController.m // XMPPDemo // // Created by robin on 12-8-30. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import "AddBuddyViewController.h" #import "ZWYAppDelegate.h" @implementation AddBuddyViewController @synthesize userJid; @synthesize appDelegate; @synthesize nickName; @...
zwyxmpp-demo
trunk/XMPPDemo/AddBuddyViewController.m
Objective-C
oos
1,997
// // RegisterViewController.m // XMPPDemo // // Created by robin on 12-8-31. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import "RegisterViewController.h" #import "ZWYAppDelegate.h" @implementation RegisterViewController @synthesize user; @synthesize password; @synthesize rePassword; @synt...
zwyxmpp-demo
trunk/XMPPDemo/RegisterViewController.m
Objective-C
oos
3,358
// // ZWYDetailViewController.m // XMPPDemo // // Created by robin on 12-8-11. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import "ZWYDetailViewController.h" #import "MessageCell.h" #import "Statics.h" #import "ZWYAppDelegate.h" #import "ChatMessage.h" #import "ChatTableViewCell.h" #import "...
zwyxmpp-demo
trunk/XMPPDemo/ZWYDetailViewController.m
Objective-C
oos
10,803
// // Statics.h // XmppDemo // // Created by 夏 华 on 12-7-13. // Copyright (c) 2012年 无锡恩梯梯数据有限公司. All rights reserved. // #import <Foundation/Foundation.h> static NSString *USERID = @"userId"; static NSString *PASS= @"pass"; static NSString *SERVER = @"server"; @interface Statics : NSObject +(NSString *)getCurre...
zwyxmpp-demo
trunk/XMPPDemo/Statics.h
Objective-C
oos
362
// // AddBuddyViewController.h // XMPPDemo // // Created by robin on 12-8-30. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @class ZWYAppDelegate; @interface AddBuddyViewController : UIViewController { UITextField *userJid; UITextField *nickName; UITextFiel...
zwyxmpp-demo
trunk/XMPPDemo/AddBuddyViewController.h
Objective-C
oos
650
// // MessageModel.m // iPhoneXMPP // // Created by System Administrator on 5/2/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import "ChatMessage.h" @implementation ChatMessage @synthesize direction; @synthesize sender; @synthesize receiver; @synthesize content; @synthesize time; @end
zwyxmpp-demo
trunk/XMPPDemo/ChatMessage.m
Objective-C
oos
317
// // MessageCell.m // XMPPDemo // // Created by robin on 12-8-13. // Copyright (c) 2012年 __MyCompanyName__. All rights reserved. // #import "MessageCell.h" @implementation MessageCell @synthesize senderAndTimeLabel; @synthesize messageContentView; @synthesize bgImageView; -(id)initWithStyle:(UITableViewCellSt...
zwyxmpp-demo
trunk/XMPPDemo/MessageCell.m
Objective-C
oos
2,170
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/JITBConfiguration.scala
Scala
lgpl
888
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/JITBCliParserException.scala
Scala
lgpl
889
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/math/TwipsMath.scala
Scala
lgpl
923
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/JITBException.scala
Scala
lgpl
880
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/JITBCliParser.scala
Scala
lgpl
1,476
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-jitb/src/main/scala/apparat/jitb/JITB.scala
Scala
lgpl
10,366
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-playerglobal/src/main/scala/jitb/util/ShaderUtil.scala
Scala
lgpl
7,796
/* * This file is part of Apparat. * * Apparat is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Apparat is distribute...
zyccie-apparat
apparat-playerglobal/src/main/scala/jitb/util/TextureUtil.scala
Scala
lgpl
1,171
package jitb.events; import flash.events.Event; import flash.events.IEventDispatcher; import java.util.LinkedList; import java.util.Queue; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.locks.ReentrantLock; /...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/events/EventSystem.java
Java
lgpl
3,572
package jitb.display; import flash.display.DisplayObject; import flash.display.Stage; import flash.events.Event; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; /** * @author Joa Ebert */ public final class DisplaySystem { private static final Object lock = new Object(); priv...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/display/DisplaySystem.java
Java
lgpl
1,150
package jitb.display; import flash.display.Shader; import flash.display.ShaderData; import flash.utils.ByteArray; import jitb.util.ShaderUtil; import org.lwjgl.opengl.ARBShaderObjects; /** * @author Joa Ebert */ public final class GLSLShader extends Shader { private final String _vertexShader; private final Strin...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/display/GLSLShader.java
Java
lgpl
1,508
package jitb.display; import flash.events.IEventDispatcher; /** * @author Joa Ebert */ public interface IDisplayObject extends IEventDispatcher { public void JITB$renderDisplayObject(); }
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/display/IDisplayObject.java
Java
lgpl
193
package jitb.media; import flash.media.Sound; import flash.media.SoundTransform; import javazoom.jl.decoder.*; import java.io.InputStream; /** * @author Joa Ebert */ public final class JLayerSoundSource implements ISoundSource { private final Bitstream _bitstream; private final Decoder _decoder; private Sample...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/media/JLayerSoundSource.java
Java
lgpl
2,673
package jitb.media; import flash.events.SampleDataEvent; import flash.media.Sound; import flash.media.SoundTransform; import flash.utils.ByteArray; import jitb.events.EventSystem; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.concurrent.locks.ReentrantLock; /** * @author Joa Ebert */ public...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/media/AS3SoundSource.java
Java
lgpl
3,748
package jitb.media; import flash.media.SoundTransform; /** * @author Joa Ebert */ public interface ISoundSource { /** * Called before this ISoundSource starts playback. */ void setup(); /** * Called when playback stops. */ void tearDown(); /** * Called when this ISoundSource is no longer required. ...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/media/ISoundSource.java
Java
lgpl
1,558
package jitb.media; import javax.sound.sampled.*; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantReadWriteLock; /** * The SoundSystem class is a manager fo...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/media/SoundSystem.java
Java
lgpl
7,809
package jitb.util; import jitb.lang.AVM; import java.io.File; /** * @author Joa Ebert */ public final class PathUtil { public static String createPath(final String pathname) { final String basePath = AVM.basePath(); final char separatorChar; if(null == basePath || pathname.indexOf('/') == 0 || pathname.ind...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/util/PathUtil.java
Java
lgpl
725
package jitb.util; import org.w3c.dom.Document; import org.w3c.dom.Node; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import java.io.StringWriter; ...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/util/XMLUtil.java
Java
lgpl
1,347
package jitb.util; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; /** * @author Joa Ebert */ public final class ByteBufferInputStream extends InputStream { private ByteBuffer buffer; public ByteBufferInputStream( ByteBuffer buffer){ this.buffer = buffer; } public synchro...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/util/ByteBufferInputStream.java
Java
lgpl
611
package jitb.errors; /** * @author Joa Ebert */ public class JITBException extends RuntimeException { public JITBException(final String message) { super(message); } public JITBException(final Throwable cause) { super(cause); } public JITBException(final String message, final Throwable cause) { super(mes...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/errors/JITBException.java
Java
lgpl
380
package jitb.errors; /** * @author Joa Ebert */ public final class Throw extends RuntimeException { public final Object value; public Throw(final Object value) { this.value = value; } @Override public String toString() { return null == value ? "null" : value.toString(); } }
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/errors/Throw.java
Java
lgpl
290
package jitb.errors; import jitb.lang.TypeError; /** * @author Joa Ebert */ public final class ErrorUtil { public final static String E_1009 = "Cannot access a property or method of a null object reference."; public final static String E_1034 = "Type Coercion failed: cannot convert %s to %s."; public final stati...
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/errors/ErrorUtil.java
Java
lgpl
1,023
package jitb.errors; /** * @author Joa Ebert */ public final class Require { public static void nonNull(final String parameter, final Object value) { if(null == value) { ErrorUtil.flashThrow(ErrorUtil.error2007(parameter)); } } private Require() {} }
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/errors/Require.java
Java
lgpl
265
package jitb.errors; /** * @author Joa Ebert */ public final class MissingImplementationException extends JITBException { public MissingImplementationException(final String method) { super("Missing implementation of "+method+"."); } }
zyccie-apparat
apparat-playerglobal/src/main/java/jitb/errors/MissingImplementationException.java
Java
lgpl
242