Move namespaces to namespaces.h and add missing files to Xcode project.
This commit is contained in:
parent
d80aa353d3
commit
39d57946d9
9 changed files with 47 additions and 17 deletions
|
@ -19,6 +19,7 @@ SRCS = XMPPAuthenticator.m \
|
|||
XMPPStanza.m
|
||||
|
||||
INCLUDES = ${SRCS:.m=.h} \
|
||||
namespaces.h \
|
||||
ObjXMPP.h
|
||||
|
||||
include ../buildsys.mk
|
||||
|
|
|
@ -32,16 +32,6 @@
|
|||
@class XMPPRoster;
|
||||
@class XMPPRosterItem;
|
||||
|
||||
#define XMPP_NS_BIND @"urn:ietf:params:xml:ns:xmpp-bind"
|
||||
#define XMPP_NS_CLIENT @"jabber:client"
|
||||
#define XMPP_NS_ROSTER @"jabber:iq:roster"
|
||||
#define XMPP_NS_SASL @"urn:ietf:params:xml:ns:xmpp-sasl"
|
||||
#define XMPP_NS_STARTTLS @"urn:ietf:params:xml:ns:xmpp-tls"
|
||||
#define XMPP_NS_STANZAS @"urn:ietf:params:xml:ns:xmpp-stanzas"
|
||||
#define XMPP_NS_SESSION @"urn:ietf:params:xml:ns:xmpp-session"
|
||||
#define XMPP_NS_XMPP_STREAM @"urn:ietf:params:xml:ns:xmpp-streams"
|
||||
#define XMPP_NS_STREAM @"http://etherx.jabber.org/streams"
|
||||
|
||||
@protocol XMPPConnectionDelegate
|
||||
#ifndef XMPP_CONNECTION_M
|
||||
<OFObject>
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#import "XMPPRoster.h"
|
||||
#import "XMPPRosterItem.h"
|
||||
#import "XMPPExceptions.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPConnection
|
||||
+ connection
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
#import "XMPPMessage.h"
|
||||
#import "XMPPConnection.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPMessage
|
||||
+ message
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
#import "XMPPPresence.h"
|
||||
#import "XMPPConnection.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPPresence
|
||||
+ presence
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#import "XMPPConnection.h"
|
||||
#import "XMPPIQ.h"
|
||||
#import "XMPPJID.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPRoster
|
||||
- initWithConnection: (XMPPConnection*)conn
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import "XMPPConnection.h"
|
||||
#import "XMPPStanza.h"
|
||||
#import "XMPPJID.h"
|
||||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPStanza
|
||||
+ stanzaWithName: (OFString*)name
|
||||
|
|
31
src/namespaces.h
Normal file
31
src/namespaces.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2011, Jonathan Schleifer <js@webkeks.org>
|
||||
*
|
||||
* https://webkeks.org/hg/objxmpp/
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice is present in all copies.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define XMPP_NS_BIND @"urn:ietf:params:xml:ns:xmpp-bind"
|
||||
#define XMPP_NS_CLIENT @"jabber:client"
|
||||
#define XMPP_NS_ROSTER @"jabber:iq:roster"
|
||||
#define XMPP_NS_SASL @"urn:ietf:params:xml:ns:xmpp-sasl"
|
||||
#define XMPP_NS_STARTTLS @"urn:ietf:params:xml:ns:xmpp-tls"
|
||||
#define XMPP_NS_STANZAS @"urn:ietf:params:xml:ns:xmpp-stanzas"
|
||||
#define XMPP_NS_SESSION @"urn:ietf:params:xml:ns:xmpp-session"
|
||||
#define XMPP_NS_XMPP_STREAM @"urn:ietf:params:xml:ns:xmpp-streams"
|
||||
#define XMPP_NS_STREAM @"http://etherx.jabber.org/streams"
|
Loading…
Add table
Add a link
Reference in a new issue