RSSKit-0.4004075500017500000012000000000001177352165200117255ustar00multixusersRSSKit-0.4/System004075500017500000012000000000001177352172700132145ustar00multixusersRSSKit-0.4/System/Library004075500017500000012000000000001177352172700146205ustar00multixusersRSSKit-0.4/System/Library/Makefiles004075500017500000012000000000001177352172700165205ustar00multixusersRSSKit-0.4/System/Library/Makefiles/tar-exclude-list010064400017500000012000000000121156174020300216610ustar00multixusersCVS *.svn RSSKit-0.4/CVS004075500017500000012000000000001177352165200123605ustar00multixusersRSSKit-0.4/CVS/Root010064400017500000012000000000631156173456500133050ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/CVS/Repository010064400017500000012000000000201156173456500145320ustar00multixusersgap/libs/RSSKit RSSKit-0.4/CVS/Entries010064400017500000012000000046271177352165200140010ustar00multixusers/AUTHORS/1.1/Sat Mar 14 22:26:29 2009// /Atom03Parser.h/1.1/Sat Mar 14 22:26:29 2009// /Atom03Parser.m/1.1/Sat Mar 14 22:26:29 2009// /Atom10Parser.h/1.1/Sat Mar 14 22:26:29 2009// /Atom10Parser.m/1.1/Sat Mar 14 22:26:30 2009// /AtomParser.h/1.1/Sat Mar 14 22:26:30 2009// /AtomParser.m/1.1/Sat Mar 14 22:26:30 2009// /COPYING/1.1/Sat Mar 14 22:26:30 2009// /DOMParser.h/1.2/Tue Jul 14 19:38:01 2009// /DublinCore.h/1.1/Sat Mar 14 22:26:30 2009// /DublinCore.m/1.1/Sat Mar 14 22:26:31 2009// /FeedParser.h/1.1/Sat Mar 14 22:26:31 2009// /FeedParser.m/1.1/Sat Mar 14 22:26:31 2009// /GNUmakefile.postamble/1.1/Sat Mar 14 22:26:31 2009// /GNUmakefile.preamble/1.1/Sat Mar 14 22:26:31 2009// /GNUstep.h/1.3/Wed Sep 29 23:51:56 2010// /INSTALL/1.1/Sat Mar 14 22:26:31 2009// /INTRO/1.1/Sat Mar 14 22:26:31 2009// /NewRSSArticleListener.h/1.1/Sat Mar 14 22:26:31 2009// /README/1.1/Sat Mar 14 22:26:31 2009// /RFC822Dates.m/1.1/Sat Mar 14 22:26:32 2009// /RSS10Parser.h/1.1/Sat Mar 14 22:26:32 2009// /RSS10Parser.m/1.1/Sat Mar 14 22:26:32 2009// /RSS20Parser.h/1.1/Sat Mar 14 22:26:32 2009// /RSS20Parser.m/1.1/Sat Mar 14 22:26:32 2009// /RSSArticle.m/1.3/Tue Sep 14 22:01:54 2010// /RSSArticleCreationListener.h/1.1/Sat Mar 14 22:26:33 2009// /RSSArticleCreationListener.m/1.3/Thu Feb 4 14:56:18 2010// /RSSFeed+Fetching.h/1.1/Sat Mar 14 22:26:33 2009// /RSSFeed+Fetching.m/1.3/Fri Mar 4 17:26:21 2011// /RSSFeed+Storage.h/1.2/Tue Dec 15 21:46:23 2009// /RSSKit.h/1.1/Sat Mar 14 22:26:34 2009// /RSSKit_Prefix.pch/1.1/Sun Oct 11 19:59:56 2009// /RSSLinks.h/1.1/Sat Mar 14 22:26:34 2009// /RSSLinks.m/1.1/Sat Mar 14 22:26:34 2009// /TODO/1.1/Sat Mar 14 22:26:34 2009// /doxygen/1.1/Sat Mar 14 22:26:34 2009// D/Documentation//// D/English.lproj//// D/RSSKit-T.xcodeproj//// D/RSSKit.xcode//// D/Tests//// /RSSArticle.h/1.5/Wed Aug 17 10:01:54 2011// /RSSArticleProtocol.h/1.5/Wed Aug 17 10:01:54 2011// /RSSFeed.h/1.4/Wed Aug 17 10:01:54 2011// /RSSFeedProtocol.h/1.4/Wed Aug 17 10:01:54 2011// /RSSFeed+Storage.m/1.4/Wed Mar 28 08:02:44 2012// /RSSFeed.m/1.5/Wed Mar 28 08:02:44 2012// /DOMParser.m/1.2/Wed Jun 6 08:13:25 2012// /RSSArticle+Storage.h/1.3/Wed Jun 6 08:13:26 2012// /RSSArticle+Storage.m/1.5/Wed Jun 6 08:13:26 2012// /RSSFactory.h/1.2/Wed Jun 6 08:13:26 2012// /RSSFactory.m/1.4/Wed Jun 6 08:13:26 2012// /ChangeLog/1.11/Thu Jun 28 09:54:13 2012// /GNUmakefile/1.4/Thu Jun 28 09:54:13 2012// /Info.plist/1.2/Sat Jun 30 06:58:50 2012// RSSKit-0.4/CVS/Template010064400017500000012000000000001177352165200141200ustar00multixusersRSSKit-0.4/Documentation004075500017500000012000000000001177352166000145355ustar00multixusersRSSKit-0.4/Documentation/CVS004075500017500000012000000000001177352166000151705ustar00multixusersRSSKit-0.4/Documentation/CVS/Root010064400017500000012000000000631156173456600161170ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/Documentation/CVS/Repository010064400017500000012000000000361156173456600173530ustar00multixusersgap/libs/RSSKit/Documentation RSSKit-0.4/Documentation/CVS/Entries010064400017500000012000000000131177352166000165720ustar00multixusersD/html//// RSSKit-0.4/Documentation/CVS/Template010064400017500000012000000000001177352165200167310ustar00multixusersRSSKit-0.4/Documentation/html004075500017500000012000000000001156173456600155075ustar00multixusersRSSKit-0.4/Documentation/html/CVS004075500017500000012000000000001156173456600161425ustar00multixusersRSSKit-0.4/Documentation/html/CVS/Root010064400017500000012000000000631156173456600170630ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/Documentation/html/CVS/Repository010064400017500000012000000000431156173456600203150ustar00multixusersgap/libs/RSSKit/Documentation/html RSSKit-0.4/Documentation/html/CVS/Entries010064400017500000012000000021471156173456600175560ustar00multixusers/DOMParser_8h-source.html/1.1/Sat Mar 14 22:26:34 2009// /DublinCore_8h-source.html/1.1/Sat Mar 14 22:26:35 2009// /FeedFetching_8h-source.html/1.1/Sat Mar 14 22:26:35 2009// /RSSArticle_8h-source.html/1.1/Sat Mar 14 22:26:35 2009// /RSSFeed_8h-source.html/1.1/Sat Mar 14 22:26:35 2009// /RSSKit_8h-source.html/1.1/Sat Mar 14 22:26:35 2009// /annotated.html/1.1/Sat Mar 14 22:26:35 2009// /categoryRSSFeed(Fetching)-members.html/1.1/Sat Mar 14 22:26:35 2009// /categoryRSSFeed(Fetching).html/1.1/Sat Mar 14 22:26:35 2009// /deprecated.html/1.1/Sat Mar 14 22:26:35 2009// /doxygen.css/1.1/Sat Mar 14 22:26:35 2009// /doxygen.png/1.1/Sat Mar 14 22:26:36 2009// /files.html/1.1/Sat Mar 14 22:26:36 2009// /functions.html/1.1/Sat Mar 14 22:26:36 2009// /functions_func.html/1.1/Sat Mar 14 22:26:36 2009// /index.html/1.1/Sat Mar 14 22:26:36 2009// /interfaceRSSArticle-members.html/1.1/Sat Mar 14 22:26:36 2009// /interfaceRSSArticle.html/1.1/Sat Mar 14 22:26:36 2009// /interfaceRSSFeed-members.html/1.1/Sat Mar 14 22:26:36 2009// /interfaceRSSFeed.html/1.1/Sat Mar 14 22:26:36 2009// /pages.html/1.1/Sat Mar 14 22:26:37 2009// D RSSKit-0.4/Documentation/html/CVS/Template010064400017500000012000000000001177352165200176750ustar00multixusersRSSKit-0.4/Documentation/html/DOMParser_8h-source.html010064400017500000012000000176231115702743200221370ustar00multixusers RSSKit: DOMParser.h Source File

DOMParser.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #import <Foundation/Foundation.h>
00021 
00022 @protocol XMLTextOrNode;
00023 @class XMLNode;
00024 
00025 @protocol XMLTextOrNode <NSObject>
00026 -(NSString*) contentAndNextContents;
00027 -(NSString*) content;
00028 -(void) _setNext: (id<XMLTextOrNode>) node;
00029 -(XMLNode*) nextElement;
00030 @end
00031 
00032 @interface XMLText : NSObject <XMLTextOrNode>
00033 {
00034   NSString* _content;
00035   id<XMLTextOrNode> _next;
00036 }
00037 
00038 -(NSString*) contentAndNextContents;
00039 -(NSString*) content;
00040 -(void) _setNext: (id<XMLTextOrNode>) node;
00041 -(XMLNode*) nextElement;
00042 
00043 -(id)init;
00044 -(id)initWithString: (NSString*) str;
00045 
00046 -(void)dealloc;
00047 @end
00048 
00049 
00050 @interface XMLNode : NSObject <XMLTextOrNode>
00051 {
00052   NSString* _name;
00053   NSString* _namespace;
00054   
00055   XMLNode* _child;
00056   id<XMLTextOrNode> _next;
00057   
00058   id<XMLTextOrNode> _current;
00059   XMLNode* _parent;
00060   
00061   NSDictionary* _attributes;
00062 }
00063 
00064 -(XMLNode*) firstChildElement;
00065 
00066 -(XMLNode*) nextElement;
00067 
00068 -(NSString*) name;
00069 
00070 -(NSString*) contentAndNextContents;
00071 -(NSString*) content;
00072 
00073 -(NSDictionary*) attributes;
00074 
00075 -(NSString*) namespace;
00076 
00077 -(id) initWithName: (NSString*) name
00078          namespace: (NSString*) namespace
00079         attributes: (NSDictionary*) attributes
00080             parent: (XMLNode*) parent;
00081 
00082 -(void) dealloc;
00083 
00084 - (void) _setNext: (id <XMLTextOrNode>) node;
00085 
00086 - (void) appendTextOrNode: (id<XMLTextOrNode>) aThing
00087                fromParser: (NSXMLParser*) aParser;
00088 
00089 @end
00090 
00091 @interface XMLNode (NSXMLParserDelegateEventAdditions)
00092 - (void) parser: (NSXMLParser*)aParser
00093   didEndElement: (NSString*)anElementName
00094    namespaceURI: (NSString*)aNamespaceURI
00095   qualifiedName: (NSString*)aQualifierName;
00096 
00097 - (void) parser: (NSXMLParser*)aParser
00098 didStartElement: (NSString*)anElementName
00099    namespaceURI: (NSString*)aNamespaceURI
00100   qualifiedName: (NSString*)aQualifierName
00101      attributes: (NSDictionary*)anAttributeDict;
00102 
00103 - (void)    parser: (NSXMLParser*)aParser
00104  parseErrorOccured: (NSError*)parseError;
00105 
00106 - (void) parser: (NSXMLParser*)aParser
00107 foundCharacters: (NSString*)aString;
00108 
00109 @end

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/DublinCore_8h-source.html010064400017500000012000000066541115702743300223740ustar00multixusers RSSKit: DublinCore.h Source File

DublinCore.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 // Dublin Core Header
00021 
00022 
00023 // For the date format, please consider taking a look at
00024 // http://www.w3.org/TR/NOTE-datetime
00025 
00026 #import <Foundation/Foundation.h>
00027 
00028 NSDate* parseDublinCoreDate( NSString* dateStr );
00029 
00030 extern NSString* dc_error;
00031 

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/FeedFetching_8h-source.html010064400017500000012000000034621115702743300226530ustar00multixusers RSSKit: FeedFetching.h Source File
Main Page | Class List | File List | Class Members | Related Pages

FeedFetching.h

00001 // -*-objc-*-
00002 
00003 #import "RSSFeed.h"
00004 
00010 @interface RSSFeed (Fetching)
00011 
00016 -(enum RSSFeedError) lastError;
00017 
00018 // get the document from the http server
00019 -(enum RSSFeedError) setError: (enum RSSFeedError) err;
00020 
00028 -(enum RSSFeedError) fetch;
00029 
00030 @end

Generated on Sun Nov 27 01:23:51 2005 for RSSKit by  doxygen 1.4.4
RSSKit-0.4/Documentation/html/RSSArticle_8h-source.html010064400017500000012000000157061115702743300223170ustar00multixusers RSSKit: RSSArticle.h Source File

RSSArticle.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 
00021 #import <objc/objc.h>
00022 #import <Foundation/Foundation.h>
00023 
00024 @class RSSArticle;
00025 
00026 #import "RSSFeed.h"
00027 
00031 @interface RSSArticle : NSObject <NSCoding>
00032 {
00033 @private
00034   NSString*  headline;
00035   NSString*  url;
00036   NSString*  description;
00037   NSDate*    date;
00038   
00040   NSMutableArray* links;
00041   
00042   RSSFeed*   feed;
00043 }
00044 
00051 -init;
00052 
00066 -initWithHeadline: (NSString*) myHeadline
00067               url: (NSString*) myUrl
00068       description: (NSString*) myDescription
00069              date: (NSDate*)   myDate;
00070 
00084 -initWithHeadline: (NSString*) myHeadline
00085               url: (NSString*) myUrl
00086       description: (NSString*) myDescription
00087              time: (unsigned int) myTime;
00088 
00089 
00090 -(void) dealloc;
00091 
00092 
00093 // NSCoding methods
00094 
00096 -(id)initWithCoder: (NSCoder*)coder;
00097 
00099 -(void)encodeWithCoder: (NSCoder*)coder;
00100 
00101 // end of NSCoding methods
00102 
00104 -(NSString*)headline;
00105 
00107 -(NSString*)url;
00108 
00110 -(NSString*)description;
00111 
00121 -(void)addLink:(NSURL*) anURL;
00122 
00128 -(void)setLinks:(NSMutableArray*) someLinks;
00129 
00138 -(NSArray*) links;
00139 
00147 -(NSDate*) date;
00148 
00149 -(void)feed:(RSSFeed*)aFeed;
00150 
00167 -(RSSFeed*)feed;
00168 
00169 
00170 // Equality and hash codes
00171 - (unsigned) hash;
00172 - (BOOL) isEqual: (id)anObject;
00173 
00174 @end

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/RSSFeed_8h-source.html010064400017500000012000000323741115702743300215770ustar00multixusers RSSKit: RSSFeed.h Source File

RSSFeed.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #import <objc/objc.h>
00021 #import <Foundation/Foundation.h>
00022 
00023 @class RSSFeed;
00024 
00025 
00026 #import "RSSArticle.h"
00027 
00031 enum RSSFeedError
00032   {
00033     RSSFeedErrorNoError = 0,         
00034     RSSFeedErrorNoFetcherError,      
00035     RSSFeedErrorMalformedURL,        
00036     RSSFeedErrorDomainNotKnown,      
00037     RSSFeedErrorServerNotReachable,  
00038     RSSFeedErrorDocumentNotPresent,  
00039     RSSFeedErrorMalformedRSS         
00040   };
00041 
00045 enum RSSFeedStatus
00046   {
00047     RSSFeedIsFetching,
00048     RSSFeedIsIdle
00049   };
00050 
00054 @protocol RSSFeedDelegate;
00055 
00107 @interface RSSFeed : NSObject <NSCoding>
00108 {
00109 @protected
00110   NSDate*           lastRetrieval;
00111   BOOL              clearFeedBeforeFetching;
00112   NSArray*          articles;
00113   enum RSSFeedError lastError;
00114   NSString*         feedName;
00115   NSURL*            feedURL;
00116   Class             articleClass;
00117   
00118   enum RSSFeedStatus status;
00119   NSRecursiveLock*  lock;
00120   
00121   id<RSSFeedDelegate> _delegate;
00122 }
00123 
00124 
00125 +feed;
00126 +feedWithURL: (NSURL*) aURL;
00127 
00128 -init;
00129 
00135 -initWithURL: (NSURL*) aURL;
00136 
00137 
00141 -(NSString*) description;
00142 
00143 // ----------------------------------------------------------------------
00144 // The RSSFeed's delegate
00145 // ----------------------------------------------------------------------
00146 
00147 -(void)setDelegate: (id<RSSFeedDelegate>)aDelegate;
00148 -(id<RSSFeedDelegate>)delegate;
00149 
00150 // ----------------------------------------------------------------------
00151 // NSCoding methods
00152 // ----------------------------------------------------------------------
00153 
00154 -(id)initWithCoder: (NSCoder*)coder;
00155 -(void)encodeWithCoder: (NSCoder*)coder;
00156 
00157 
00158 // ----------------------------------------------------------------------
00159 // Status access
00160 // ----------------------------------------------------------------------
00161 
00169 - (enum RSSFeedStatus) status;
00170 
00171 
00172 // ----------------------------------------------------------------------
00173 // Access to the articles
00174 // ----------------------------------------------------------------------
00175 
00188 - (RSSArticle*) articleAtIndex: (int) index;
00189 
00193 - (unsigned int) count;
00194 
00198 - (NSEnumerator*) articleEnumerator;
00199 
00205 - (void) removeArticle: (RSSArticle*) article;
00206 
00207 
00208 
00209 // ----------------------------------------------------------------------
00210 // Access to the preferences
00211 // ----------------------------------------------------------------------
00212 
00216 - (NSString*) feedName;
00217 
00222 - (NSURL*) feedURL;
00223 
00224 
00225 
00226 // --------------------------------------------------------------------
00227 // Equality and hash codes
00228 // --------------------------------------------------------------------
00229 - (unsigned) hash;
00230 - (BOOL) isEqual: (id)anObject;
00231 
00232 
00233 // --------------------------------------------------------------------
00234 // Accessor and Mutator for the automatic clearing
00235 // --------------------------------------------------------------------
00236 
00244 - (void) setAutoClear: (BOOL) autoClear;
00245 
00246 
00251 - (BOOL) autoClear;
00252 
00253 
00257 - (void) clearArticles;
00258 
00259 
00260 
00261 // ------------------------------------------------------------------
00262 // Extensions that make subclassing RSSFeed and RSSArticle easier.
00263 // ------------------------------------------------------------------
00264 
00271 -(void) setArticleClass:(Class)aClass;
00272 
00279 -(Class) articleClass;
00280 
00281 
00282 // ------------------------------------------------------------------
00283 // Dirtyness, now implemented via the date of last retrieval
00284 // ------------------------------------------------------------------
00285 
00292 -(NSDate*) lastRetrieval;
00293 
00294 
00298 -(void) newArticleFound: (RSSArticle*) anArticle;
00299 
00300 @end
00301 
00302 
00303 
00304 /*
00305  * FIXME: Hide this interface in some other header file
00306  * so that programmers don't get confused.
00307  */
00308 
00309 @interface RSSFeed (Private)
00310 
00317 -(BOOL) _submitArticles: (NSArray*) newArticles;
00318 
00319 @end
00320 
00321 
00327 @protocol RSSFeedDelegate <NSObject>
00328 
00332 - (void) feed: (RSSFeed*) aFeed
00333  addedArticle: (RSSArticle*) anArticle;
00334 
00335 @end

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/RSSKit_8h-source.html010064400017500000012000000060001115702743300214460ustar00multixusers RSSKit: RSSKit.h Source File

RSSKit.h

00001 /*  -*-objc-*-
00002  *
00003  *  GNUstep RSS Kit
00004  *  Copyright (C) 2006 Guenther Noack
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 2 as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #import <RSSKit/RSSFeed.h>
00021 #import <RSSKit/RSSFeed+Fetching.h>
00022 #import <RSSKit/RSSArticle.h>

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/annotated.html010064400017500000012000000037271115702743300204240ustar00multixusers RSSKit: Class List

RSSKit Class List

Here are the classes, structs, unions and interfaces with brief descriptions:
NSObject(NewRSSArticleListener)
RSSArticle
RSSFeed
RSSFeed(Fetching)
< RSSFeedDelegate >

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/categoryRSSFeed(Fetching)-members.html010064400017500000012000000035111115702743300246500ustar00multixusers RSSKit: Member List

RSSFeed(Fetching) Member List

This is the complete list of members for RSSFeed(Fetching), including all inherited members.

fetchRSSFeed(Fetching)
lastErrorRSSFeed(Fetching)


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/categoryRSSFeed(Fetching).html010064400017500000012000000106421115702743300232230ustar00multixusers RSSKit: RSSFeed(Fetching) Category Reference

RSSFeed(Fetching) Category Reference

#import <RSSFeed+Fetching.h>

List of all members.

Public Member Functions

(enum RSSFeedError) - lastError
(enum RSSFeedError) - fetch


Detailed Description

The ,,Fetching'' category of RSSFeed contains methods for the RSSFeed class, which are responsible for fetching and parsing feeds.


Member Function Documentation

- (enum RSSFeedError) fetch  
 

Fetches the feed from the web (using NSURL).

Returns:
An error number (of type enum RSSFeedError)
See also:
NSURL

RSSFeedError

- (enum RSSFeedError) lastError  
 

Returns the last error. Guaranteed to return the last fetching result.


The documentation for this category was generated from the following file:
Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/deprecated.html010064400017500000012000000022601115702743300205360ustar00multixusers RSSKit: Deprecated List

Deprecated List

Member [RSSArticle initWithHeadline:url:description:time:]


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/doxygen.css010064400017500000012000000160461115702743300177460ustar00multixusersBODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { font-family: Geneva, Arial, Helvetica, sans-serif; } BODY,TD { font-size: 90%; } H1 { text-align: center; font-size: 160%; } H2 { font-size: 120%; } H3 { font-size: 100%; } CAPTION { font-weight: bold } DIV.qindex { width: 100%; background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; padding: 2px; line-height: 140%; } DIV.nav { width: 100%; background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; padding: 2px; line-height: 140%; } DIV.navtab { background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } TD.navtab { font-size: 70%; } A.qindex { text-decoration: none; font-weight: bold; color: #1A419D; } A.qindex:visited { text-decoration: none; font-weight: bold; color: #1A419D } A.qindex:hover { text-decoration: none; background-color: #ddddff; } A.qindexHL { text-decoration: none; font-weight: bold; background-color: #6666cc; color: #ffffff; border: 1px double #9295C2; } A.qindexHL:hover { text-decoration: none; background-color: #6666cc; color: #ffffff; } A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } A.el { text-decoration: none; font-weight: bold } A.elRef { font-weight: bold } A.code:link { text-decoration: none; font-weight: normal; color: #0000FF} A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF} A.codeRef:link { font-weight: normal; color: #0000FF} A.codeRef:visited { font-weight: normal; color: #0000FF} A:hover { text-decoration: none; background-color: #f2f2ff } DL.el { margin-left: -1cm } .fragment { font-family: Fixed, monospace; font-size: 95%; } PRE.fragment { border: 1px solid #CCCCCC; background-color: #f5f5f5; margin-top: 4px; margin-bottom: 4px; margin-left: 2px; margin-right: 8px; padding-left: 6px; padding-right: 6px; padding-top: 4px; padding-bottom: 4px; } DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } TD.md { background-color: #F4F4FB; font-weight: bold; } TD.mdPrefix { background-color: #F4F4FB; color: #606060; font-size: 80%; } TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; } TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; } DIV.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold; } DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% } BODY { background: white; color: black; margin-right: 20px; margin-left: 20px; } TD.indexkey { background-color: #e8eef2; font-weight: bold; padding-right : 10px; padding-top : 2px; padding-left : 10px; padding-bottom : 2px; margin-left : 0px; margin-right : 0px; margin-top : 2px; margin-bottom : 2px; border: 1px solid #CCCCCC; } TD.indexvalue { background-color: #e8eef2; font-style: italic; padding-right : 10px; padding-top : 2px; padding-left : 10px; padding-bottom : 2px; margin-left : 0px; margin-right : 0px; margin-top : 2px; margin-bottom : 2px; border: 1px solid #CCCCCC; } TR.memlist { background-color: #f0f0f0; } P.formulaDsp { text-align: center; } IMG.formulaDsp { } IMG.formulaInl { vertical-align: middle; } SPAN.keyword { color: #008000 } SPAN.keywordtype { color: #604020 } SPAN.keywordflow { color: #e08000 } SPAN.comment { color: #800000 } SPAN.preprocessor { color: #806020 } SPAN.stringliteral { color: #002080 } SPAN.charliteral { color: #008080 } .mdTable { border: 1px solid #868686; background-color: #F4F4FB; } .mdRow { padding: 8px 10px; } .mdescLeft { padding: 0px 8px 4px 8px; font-size: 80%; font-style: italic; background-color: #FAFAFA; border-top: 1px none #E0E0E0; border-right: 1px none #E0E0E0; border-bottom: 1px none #E0E0E0; border-left: 1px none #E0E0E0; margin: 0px; } .mdescRight { padding: 0px 8px 4px 8px; font-size: 80%; font-style: italic; background-color: #FAFAFA; border-top: 1px none #E0E0E0; border-right: 1px none #E0E0E0; border-bottom: 1px none #E0E0E0; border-left: 1px none #E0E0E0; margin: 0px; } .memItemLeft { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memItemRight { padding: 1px 8px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplItemLeft { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplItemRight { padding: 1px 8px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplParams { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; color: #606060; background-color: #FAFAFA; font-size: 80%; } .search { color: #003399; font-weight: bold; } FORM.search { margin-bottom: 0px; margin-top: 0px; } INPUT.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } TD.tiny { font-size: 75%; } a { color: #1A41A8; } a:visited { color: #2A3798; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #84b0c7; } TH.dirtab { background: #e8eef2; font-weight: bold; } HR { height: 1px; border: none; border-top: 1px solid black; } RSSKit-0.4/Documentation/html/doxygen.png010064400017500000012000000024011115702743400177310ustar00multixusers‰PNG  IHDRd-ok>ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<]PLTEǾÏ"&©ÈÎï¶»ÖÓÚú“¢Þ ¬à¶Âõ‡§ÕÙêÉÊÎáâæ{ŽÔ¡ëˆ™× ²ø§¬¹ÀÀ±ÝÝÎùùéõõçëëåED9×ÖËhg]_X<@:#mhUÿÿÿÝÀ1tRNSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÍvÿIDATxÚbC£: d#„„………h` @¡X",***LKˆ.–], ºX@t± €èb @ÑÅ€BµD„6–š%""´° € ˜% ˆ™B:H¢ˆ²Áf@• ˆRPy"K`\PbC(!II!h©…ëƒ(ñ„Ä!ꈬC„Ä…àl!0[X\J\$TMˆ(’>a$S„ Ù@ Ш@R.$‚¬LJBR¢‰AÌG1 ¬ Â(FȃÔPhhÁTÀ¢„%!`€&q°%u P ¹¢ ¬ € ¹CT$B¢à|‚ºW„¤Àl £!B`R$( …Ĉ‘’ž@AÅ%ĤÄ%@,(—ʂڱ%$ÁââRPmB U`1IˆYB  99€\1 yCCCÿf"[N 'Ü=TGÈ’øl8˜^Kû5<êSæRɤ”%î@@ à›Ê b1 qÅAXHˆ¸&ØB’R y n˜P„Ìã–4A €€j¹€€>Ü ˜ t!˜+(.ÈÅWQ±A2ÜÜMUÜ‚’’‚‚â `1 %`19€F< 3cZÄ`óe!\ˆ DÈ+. 83‹³Àä¸!lYYA -6‚EJŠ¢V €@©žXXX 4„å Ê@86Ð`RdB´€4I "Ý "–@xrÊŒ‚H€AÊ`—f ÉȰCŒ"XV0ɲ³C b@2…¬H ¬È“ p)!(ì‚ 0Ž4ˆ)(%RÁÎ ¶$€TÊ€¥Àþb‡b,säÐ@7À üѰ‚Òî?f¥Ö—\PIx!I´¦"”Ȉ’3¨ QY˜ÿt^^ÛØgv- }>WJOAV`$&#”¦8ùøø8€\FF ›SFJ$ÂÆ€ÐƊС䈉ÀÀ 4ª…Èäå -Á§‡ €H²…—ŸŸŸf ?ðâ5„ €k1Âd‰,ŒÃ ³ƒ“€.€"­F™ËË€àñ‚½ÁIÈ€"±Ù4ÉH gx|‚f©m)))9´. aMDƒ& ºX@t± €èb @ÑÅ€¢‹%DKˆ.–], ºX@t± €èb @€d`‚ɽSµOIEND®B`‚RSSKit-0.4/Documentation/html/files.html010064400017500000012000000057631115702743400175540ustar00multixusers RSSKit: File Index

RSSKit File List

Here is a list of all documented files with brief descriptions:
Atom03Parser.h [code]
Atom10Parser.h [code]
AtomParser.h [code]
DOMParser.h [code]
DublinCore.h [code]
FeedParser.h [code]
GNUstep.h [code]
NewRSSArticleListener.h [code]
RSS10Parser.h [code]
RSS20Parser.h [code]
RSSArticle.h [code]
RSSArticleCreationListener.h [code]
RSSFeed+Fetching.h [code]
RSSFeed.h [code]
RSSKit.h [code]

Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/functions.html010064400017500000012000000154561115702743400204620ustar00multixusers RSSKit: Class Members

Here is a list of all documented class members with links to the class documentation for each member:

- a -

- c -

- d -

- e -

- f -

- h -

- i -

- l -

- n -

- r -

- s -

- u -


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/index.html010064400017500000012000000017251115702743400175530ustar00multixusers RSSKit: Main Page

RSSKit Documentation

0.6.1


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/functions_func.html010064400017500000012000000153331115702743400214670ustar00multixusers RSSKit: Class Members - Functions

 

- a -

- c -

- d -

- e -

- f -

- h -

- i -

- l -

- n -

- r -

- s -

- u -


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/interfaceRSSArticle-members.html010064400017500000012000000106631115702743400237310ustar00multixusers RSSKit: Member List

RSSArticle Member List

This is the complete list of members for RSSArticle, including all inherited members.

addLink:RSSArticle
dateRSSArticle
descriptionRSSArticle
encodeWithCoder:RSSArticle
feedRSSArticle
headlineRSSArticle
initRSSArticle
initWithCoder:RSSArticle
initWithHeadline:url:description:date:RSSArticle
initWithHeadline:url:description:time:RSSArticle
isEqual:RSSArticle
linksRSSArticle
setLinks:RSSArticle
urlRSSArticle


Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/interfaceRSSArticle.html010064400017500000012000000526741115702743400223110ustar00multixusers RSSKit: RSSArticle Class Reference

RSSArticle Class Reference

#import <RSSArticle.h>

List of all members.

Public Member Functions

(id) - init
(id) - initWithHeadline:url:description:date:
(id) - initWithHeadline:url:description:time:
(id) - initWithCoder:
 Deserializes a RSSArticle object from a NSCoder.
(void) - encodeWithCoder:
 Serializes a RSSArticle object to a NSCoder.
(NSString *) - headline
(NSString *) - url
(NSString *) - description
(void) - addLink:
(void) - setLinks:
(NSArray *) - links
(NSDate *) - date
(RSSFeed *) - feed
(BOOL) - isEqual:


Detailed Description

An object of this class represents an article in an RSS Feed.


Member Function Documentation

- (void) addLink: (NSURL *)  anURL  
 

Adds a new link to this article. This is a NSURL object, which usually has the "type" property set to an NSString which represents the resource's MIME type. You may also specify the "rel" property, which should be one of "enclosure", "related", "alternate", "via".

- (NSDate*) date  
 

Returns the date of the publication of the article. If the source feed of this article didn't contain information about this date, the fetching date is usually returned.

Returns:
The date of the publication of the article

- (NSString*) description  
 

Returns:
The full text, an excerpt or a summary from the article

- (RSSFeed*) feed  
 

Returns the source feed of this article.

Warning:
It's not guaranteed that this object actually exists. Be aware of segmentation faults!
If you want to make sure the object exists, you have to follow these rules:

  • Don't retain any article!
  • Don't call the (undocumented) feed: (Colon!) method.

Returns:
The source feed of this article

- (NSString*) headline  
 

Returns:
The headline of the article

- (id) init  
 

Standard initializer. You shouldn't use this. Better use initWithHeadline:url:description:date:

See also:
- initWithHeadline:url:description:date:

- (id) initWithHeadline: (NSString *)  myHeadline
url: (NSString *)  myUrl
description: (NSString *)  myDescription
date: (NSDate *)  myDate
 
 

Designated initializer for the RSSArticle class.

Don't create RSSArticle objects yourself. Create a RSSFeed object and let it fetch the articles for you!

Parameters:
myHeadline A NSString containing the headline of the article.
myUrl A NSString containing the URL of the full version of the article.
myDescription An excerpt of the article text or the full text.
myDate The date as NSDate object on which this article was posted.
See also:
RSSFeed

- (id) initWithHeadline: (NSString *)  myHeadline
url: (NSString *)  myUrl
description: (NSString *)  myDescription
time: (unsigned int)  myTime
 
 

Old designated initializer for the RSSArticle class. Only here for compatibility reasons. This method is likely to be dropped in future versions.

Deprecated:
Parameters:
myHeadline A NSString containing the headline of the article.
myUrl A NSString containing the URL of the full version of the article.
myDescription An excerpt of the article text or the full text.
myTime The date (in seconds since 1970) on which this article was posted.

- (BOOL) isEqual: (id)  anObject  
 

RSS Articles are equal if both the article headlines and the article URLs are equal. If they are equal is tested by calling the isEqual: method on those.

- (NSArray*) links  
 

Returns an NSArray containing NSURL objects or nil, if there are none. The contained NSURL objects often have the "type" and "rel" properties set. See the documentation for addLink: for details.

Returns:
The links of the article.

- (void) setLinks: (NSMutableArray *)  someLinks  
 

Replaces the list of links with a new one. See the documentation for addLink: for details. Hint: The parameter may also be nil.

- (NSString*) url  
 

Returns:
Te URL of the full version of the article (as NSString*)


The documentation for this class was generated from the following files:
Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/Documentation/html/interfaceRSSFeed-members.html010064400017500000012000000077451115702743400232200ustar00multixusers RSSKit: Member List
Main Page | Class List | File List | Class Members | Related Pages

RSSFeed Member List

This is the complete list of members for RSSFeed, including all inherited members.

articleAtIndex:RSSFeed
articleClassRSSFeed
articleEnumeratorRSSFeed
autoClearRSSFeed
clearArticlesRSSFeed
countRSSFeed
descriptionRSSFeed
feedNameRSSFeed
feedURLRSSFeed
fetchRSSFeed(Fetching)
initWithURL:RSSFeed
lastRetrievalRSSFeed
removeArticle:RSSFeed
setArticleClass:RSSFeed
setAutoClear:RSSFeed
statusRSSFeed


Generated on Sun Nov 27 01:23:51 2005 for RSSKit by  doxygen 1.4.4
RSSKit-0.4/Documentation/html/interfaceRSSFeed.html010064400017500000012000000510221115702743400215530ustar00multixusers RSSKit: RSSFeed Class Reference
Main Page | Class List | File List | Class Members | Related Pages

RSSFeed Class Reference

#import <RSSFeed.h>

List of all members.

Public Member Functions

(id) - initWithURL:
(NSString *) - description
(enum RSSFeedStatus) - status
(RSSArticle *) - articleAtIndex:
(unsigned int) - count
(NSEnumerator *) - articleEnumerator
(void) - removeArticle:
(NSString *) - feedName
(NSURL *) - feedURL
(void) - setAutoClear:
(BOOL) - autoClear
(void) - clearArticles
(void) - setArticleClass:
(Class) - articleClass
(NSDate *) - lastRetrieval


Detailed Description

Objects of this class represent a RSS/ATOM feed, which is basically just a source for new articles. When creating a RSSFeed object, you'll just have to provide it with the URL, where the feed can be downloaded from.

This is the generic way to read feeds:

See also:
- initWithURL: (RSSFeed)

- fetch (RSSFeed(Fetching))

- setAutoClear: (RSSFeed)

RSSArticle

NSURL


Member Function Documentation

- (RSSArticle*) articleAtIndex: (int)  index  
 

Lets you access the individual articles in the feed. Often used in conjunction with the count method. Also take a look at the example in the description of this class. (RSSFeed)

Parameters:
index of the article to get
Returns:
Article number index
See also:
RSSArticle

- count

RSSFeed

- (Class) articleClass  
 

Returns the class of the article objects. This will be a subtype of RSSArticle.

Returns:
the article class

- (NSEnumerator*) articleEnumerator  
 

Returns:
an enumerator for the articles in this feed

- (BOOL) autoClear  
 

Returns:
YES, if the automatic clearing of the article list is enabled for this feed. NO otherwise.

- (void) clearArticles  
 

Clears the list of articles.

- (unsigned int) count  
 

Returns:
the number of articles in this feed.

- (NSString*) description  
 

Returns:
Description of the Feed (the feed name)

- (NSString*) feedName  
 

Returns:
The name of the feed

- (NSURL*) feedURL  
 

Returns:
the URL where the feed can be downloaded from (as NSURL object)
See also:
NSURL

- (id) initWithURL: (NSURL *)  aURL  
 

Designated initializer.

Parameters:
aURL The URL where the feed can be downloaded from.

- (NSDate*) lastRetrieval  
 

Returns the date of last retrieval of this feed. If the feed hasn't been retrieved yet, this method returns nil.

Returns:
The date of last retrieval as a NSDate pointer.

- (void) removeArticle: (RSSArticle *)  article  
 

Deletes an article from the feed.

Parameters:
article The index of the article to delete.

- (void) setArticleClass: (Class)  aClass  
 

Sets the class of the article objects. This needs to be a subtype of RSSArticle.

Parameters:
aClass The class newly created article objects should have.

- (void) setAutoClear: (BOOL)  autoClear  
 

Lets you decide if the feed should be cleared before new articles are downloaded.

Parameters:
autoClear YES, if the feed should clear its article list before fetching new articles. NO otherwise

- (enum RSSFeedStatus) status  
 

Accessor for the status of the feed. This can be used by a multithreaded GUI to indicate if a feed is currently fetching...

Returns:
either RSSFeedIsFetching or RSSFeedIsIdle


The documentation for this class was generated from the following file:
Generated on Sun Nov 27 01:23:51 2005 for RSSKit by  doxygen 1.4.4
RSSKit-0.4/Documentation/html/pages.html010064400017500000012000000020561115702743500175420ustar00multixusers RSSKit: Page Index

RSSKit Related Pages

Here is a list of all related documentation pages:
Generated on Thu Aug 3 00:51:27 2006 for RSSKit by  doxygen 1.4.6
RSSKit-0.4/AUTHORS010064400017500000012000000000561115702742500130450ustar00multixusers Günther Noack RSSKit-0.4/Atom03Parser.h010064400017500000012000000015521115702742500143700ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "AtomParser.h" @interface Atom03Parser : AtomParser // nothing new here @end RSSKit-0.4/Atom03Parser.m010064400017500000012000000061511115702742500143750ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "Atom03Parser.h" #import "DublinCore.h" @implementation Atom03Parser -(void)parseWithRootNode: (XMLNode*)root { XMLNode* toplevelnode; XMLNode* secondlevelnode; for ( toplevelnode = [root firstChildElement]; toplevelnode != nil; toplevelnode = [toplevelnode nextElement] ) { if ([[toplevelnode name] isEqualToString: @"title"]) { [self foundFeedName: [toplevelnode content]]; } else if ([[toplevelnode name] isEqualToString: @"entry"]) { [self startArticle]; for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [self setHeadline: [secondlevelnode content]]; } // FIXME: ATOM 0.3 specifies different storage // modes like Base64, plain ASCII etc. Implement these! else if ([[secondlevelnode name] isEqualToString: @"summary"]) { [self setSummary: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"content"]) { register NSString* tmp = (NSString*) [[secondlevelnode attributes] objectForKey: @"type"]; if (tmp == nil || [tmp isEqualToString: @"text"] || [tmp isEqualToString: @"html"] || [tmp isEqualToString: @"text/html"] || [tmp isEqualToString: @"text/plain"]) [self setContent: [secondlevelnode content]]; else { if ([tmp isEqualToString: @"application/xhtml+xml"] || [tmp isEqualToString: @"xhtml"]) { [self setContent: [self stringFromHTMLAtNode: secondlevelnode]]; } } } /* * FIXME: is 'updated' instead of 'issued' * also included in ATOM 0.3? (it is in 1.0) */ else if ([[secondlevelnode name] isEqualToString: @"issued"]) { [self setDateFromString: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"link"]) { [self addLinkWithURL: [[secondlevelnode attributes] objectForKey: @"href"] andRel: [[secondlevelnode attributes] objectForKey: @"rel"] andType: [[secondlevelnode attributes] objectForKey: @"type"] ]; } } [self commitArticle]; } } [self finished]; } @end RSSKit-0.4/Atom10Parser.h010064400017500000012000000015511115702742500143650ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "AtomParser.h" @interface Atom10Parser : AtomParser // nothing new here @end RSSKit-0.4/Atom10Parser.m010064400017500000012000000061141115702742600143730ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "Atom10Parser.h" #import "DublinCore.h" @implementation Atom10Parser -(void)parseWithRootNode: (XMLNode*)root { XMLNode* toplevelnode; XMLNode* secondlevelnode; for ( toplevelnode = [root firstChildElement]; toplevelnode != nil; toplevelnode = [toplevelnode nextElement] ) { if ([[toplevelnode name] isEqualToString: @"title"]) { [self foundFeedName: [toplevelnode content]]; } else if ([[toplevelnode name] isEqualToString: @"entry"]) { [self startArticle]; for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [self setHeadline: [secondlevelnode content]]; } // FIXME: ATOM 0.3 specifies different storage // modes like Base64, plain ASCII etc. Implement these! // 1.0, too? else if ([[secondlevelnode name] isEqualToString: @"summary"]) { [self setSummary: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"content"]) { register NSString* tmp = (NSString*) [[secondlevelnode attributes] objectForKey: @"type"]; if (tmp == nil || [tmp isEqualToString: @"text"] || [tmp isEqualToString: @"html"] || [tmp isEqualToString: @"text/html"] || [tmp isEqualToString: @"text/plain"]) [self setContent: [secondlevelnode content]]; else { if ([tmp isEqualToString: @"application/xhtml+xml"] || [tmp isEqualToString: @"xhtml"]) { [self setContent: [self stringFromHTMLAtNode: secondlevelnode]]; } } } else if ([[secondlevelnode name] isEqualToString: @"issued"] || [[secondlevelnode name] isEqualToString: @"updated"]) { [self setDateFromString: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"link"]) { [self addLinkWithURL: [[secondlevelnode attributes] objectForKey: @"href"] andRel: [[secondlevelnode attributes] objectForKey: @"rel"] andType: [[secondlevelnode attributes] objectForKey: @"type"] ]; } } [self commitArticle]; } } [self finished]; } @end RSSKit-0.4/AtomParser.h010064400017500000012000000015471115702742600142320ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "FeedParser.h" @interface AtomParser : FeedParser // nothing new here @end RSSKit-0.4/AtomParser.m010064400017500000012000000062661115702742600142420ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "AtomParser.h" @implementation AtomParser /* -(void)parseWithRootNode: (XMLNode*)root { RSSArticleCreationListener* creator; XMLNode* toplevelnode; XMLNode* secondlevelnode; creator = AUTORELEASE([[RSSArticleCreationListener alloc] initWithFeed: self]); for ( toplevelnode = [root firstChildElement]; toplevelnode != nil; toplevelnode = [toplevelnode nextElement] ) { if ([[toplevelnode name] isEqualToString: @"title"]) { RELEASE(feedName); feedName = RETAIN([toplevelnode content]); } else if ([[toplevelnode name] isEqualToString: @"entry"]) { [creator startArticle]; for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [creator setHeadline: [secondlevelnode content]]; } // FIXME: ATOM 0.3 specifies different storage // modes like Base64, plain ASCII etc. Implement these! else if ([[secondlevelnode name] isEqualToString: @"summary"]) { [creator setSummary: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"content"]) { register NSString* tmp = (NSString*) [[secondlevelnode attributes] objectForKey: @"type"]; if (tmp == nil || [tmp isEqualToString: @"text"] || [tmp isEqualToString: @"html"]) [creator setContent: [secondlevelnode content]]; else { if ([tmp isEqualToString: @"application/xhtml+xml"] || [tmp isEqualToString: @"xhtml"]) { [creator setContent: [self stringFromHTMLAtNode: secondlevelnode]]; } } } / * * FIXME: is 'updated' instead of 'issued' * also included in ATOM 0.3? (it is in 1.0) * / else if ([[secondlevelnode name] isEqualToString: @"issued"]) { [creator setDateFromString: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"link"]) { [creator addLinkWithURL: [[secondlevelnode attributes] objectForKey: @"href"] andRel: [[secondlevelnode attributes] objectForKey: @"rel"] andType: [[secondlevelnode attributes] objectForKey: @"type"] ]; } } [creator commitArticle]; } } [creator finished]; return RSSFeedErrorNoError; } */ @end RSSKit-0.4/COPYING010064400017500000012000000635001115702742600130340ustar00multixusers GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library 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 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! RSSKit-0.4/ChangeLog010064400017500000012000000221121177302470500135460ustar00multixusers2012-06-13 Yavor Doganov * GNUmakefile Fix compiling with LDFLAGS=-Wl,--no-undefined 2012-05-15 Riccardo Mottola * DOMParser.m Fix warnings. * RSSArticle+Storage.h * RSSArticle+Storage.m * RSSFactory.h * RSSFactory.m Declare conforming to RSSMutableArticle since RSSArticle really is and setFeed is used on it. 2012-03-27 Riccardo Mottola * RSSArticle+Storage.m * RSSFeed+Storage.m * RSSFeed.m NSUInteger as index 2011-07-01 Riccardo Mottola * RSSArticle.h * RSSArticleProtocol.h Remove unnecessary declarations. * RSSArticle.h * RSSArticleProtocol.h * RSSFeed.h * RSSFeedProtocol.h Clean up protocol definitions. 2011-03-04 Riccardo Mottola * RSSFeed+Fetching.m: Add detection of RSS version 0.92 2010-09-14 Riccardo Mottola * GNUstep.h: added define for NSUInteger for old macs * RSSArticle.[h,m], * RSSFeed.[h,m] : change signature of hash to NSUInteger July-13-2009 Riccardo Mottola * Removed several c99-isms May-01-2007 Yen-Ju Chen * Turn into framework Feb-19-2007 Yen-Ju Chen * Format README in reStructuedText Feb-17-2007 Guenther Noack * RSSArticleCreationListener.m: Parse english dates, even in other locales Feb-12-2007 Guenther Noack * RSSFeed.m: * RSSFeed+Storage.m: * RSSArticle.m: Memory leaks fixed Jan-30-2007 Guenther Noack * RSSFeed.m: Fixed bug that feeds couldn't be compared for equality with non-feed objects. Jan-21-2007 Guenther Noack * RSSFeed+Fetching.m: Fixed bug where freshly created articles didn't know their parent feed. * FeedParser.m: Updated a FIXME Jan-13-2007 Guenther Noack * INTRO: Added a small note concerning the way how to obtain the Grr development version as a programming example for RSSKit. Dec-6-2006 Guenther Noack * ATOM 0.3, 1.0: Accept text/plain and text/html as types, too Nov-27-2006 Guenther Noack * DOMParser: CDATA support added * RSSArticleCreationListener: more date formats added * ChangeLog file: Cleaned up a bit (added my name to old entries where I was the only contributor) * GNUmakefile: Made the etoile.make include 'weak' (presence of it is no longer required in order to compile) Nov-26-2006 Guenther Noack * RSSArticle: -description method now returns the headline. Please use the -content method to retrieve the article content now. This breaks compatibility with old Grr versions but makes more sense. * RSSFeed delegate: Removed (not used by Mollusk nor Grr) * RSSFeed: performance improvements when autoclear is off * RSSFeed protocol: Added autoclear accessor methods Nov-12-2006 Yen-Ju Chen * Process namespace for XMLParser. It is essential for atom 1.0. * Avoid add nil RSSLink into array. Nov-11-2006 Guenther Noack * Fixed namespace bug (namespaces were accidentally ignored before) * Improved date parsing Nov-11-2006 Yen-Ju Chen * Try to fix random failed fetching issue by more safe guard. Nov-10-2006 Yen-Ju Chen * Try to improve memory usage by properly retain and release. Nov-09-2006 Guenther Noack * Removed some deprecated methods from RSSFeed class * Added -articleSet and -articleCount method to RSSFeed protocol and class * Added support for some more itunes-Namespace (=Podcast) features. (Why doesn't the namespace work any more?) Nov-08-2006 Guenther Noack * Fixed enclosure-link bug Nov-06-2006 Yen-Ju Chen * Compile on Cocoa. * Post notification if fatching failed. Nov-05-2006 Guenther Noack * Removed some deprecated methods * Dropped NSCoding serialization methods (not used by anyone at the moment and they were broken anyway since the intro- duction of the RSSLink class). Please use the methods in the Storage categories instead. * Added Factory class Nov-04-2006 Guenther Noack * Removed lock from RSSFeed class. (The lock is left from a first try with multithreading and never really did what it was supposed to do.) * Put RSSFeed and RSSArticle protocols in seperate files. Nov-03-2006 Yen-Ju Chen * Compile on Cocoa. Nov-03-2006 Guenther Noack * Protocols (interfaces) for RSSFeed and RSSArticle * Fixed RSSFeed storage, so that restored articles have the correct parent feed. * Deprecated -status method in feed in favor of -isFetching, which is much more suitable for a boolean return value. (There was only RSSFeedIsFetching and RSSFeedIsIdle.) Nov-02-2006 Guenther Noack * Added code for RSSFeed storage Nov-01-2006 Guenther Noack * Fixed creation of articles without proper 'alternate' link. Nov-01-2006 Yen-Ju Chen * Compile on Cocoa. * Fix missing url to article. Oct-30-2006 Guenther Noack * Fixed URL loading bug for the storage * Added RSSLink class and subclasses (see RSSLinks.h). These classes replace NSURL for the storage of links from articles. Oct-29-2006 Yen-Ju Chen * Tidy up a little. Oct-25-2006 Yen-Ju Chen * Merge back from branch. Oct-22-2006 Yen-Ju Chen * Support loading feed in background. Oct-21-2006 Yen-Ju Chen * Initial branch. * Compile on Cocoa. Oct-9-2006 Guenther Noack Added code to store articles as property lists Sep-26-2006 Quentin Mathe * GNUmakefile: Modified to include 'etoile.make'. Sep-25-2006 Guenther Noack Relicensed to LGPL Jul-7-2006 to Jul-11-2006 Guenther Noack Fixed compile error submitted by YunSong Hwang (Thank you!) For everybody who knows the RSSKit code, here are the changes I did in restructuring: In the old version anything related to parsing was in the RSSFeed+Fetching category. The file for this category also included the class RSSArticleCreationListener which accepts the different article components (Title, Content, Links etc.) and puts them together after that. When the parser (in RSSFeed) told the instance of RSSArticleCreationListener to '-finish', it submitted the collected articles back to the feed. The new version is more taken apart now: * RSSArticleCreationListener now has its own .m and .h files. The class was also renamed to RSSArticleConstructor to avoid naming confusion with the planned protocol that accepts newly created articles from it. * The parsers are now located in their own classes. Here's the class hierarchy: - RSSArticleConstructor - FeedParser - AtomParser - Atom03Parser - Atom10Parser - RSS10Parser - RSS20Parser Note that the feed parser classes inherit from the Article- Constructor, so that they don't have to do an extra instantiation for it. (There was a 1:1 relation between the parser and the constructor anyway.) Jun-30-2006 Guenther Noack * I started to build classes for the different RSS types. Should have done that long ago; RSSFeed+Fetching just got much too big. ;-) Besides the size of the 'Fetching' category file, I also want to decouple the existence of a RSSFeed object from the ability to parse RSS files. In the long run, the RSSFeed class will play a minor role in the Grr application, too. Sidenote: This version is completely b0rken! It may compile but will not parse any feeds. May-26-2006 Guenther Noack * Tests run now. I built tests for RDF (RSS 1.0) files. Others still need to be built. It's a pity that the UnitKit GUI's Nib is b0rken. :-/ May-26-2006 Yen-Ju Chen * Fix Tests. Mar-30-2006 Guenther Noack * RSSFeed: Added a delegate to the RSSFeed. (Completely untested) The delegate will be notified for every new article that has been added to the feed. This may be useful for more easy coding of small applications (e.g. AppCasting stuff) Mar-18-2006 Guenther Noack * FeedFetching.* renamed to RSSFeed+Fetching.* * Added RSS2.0 enclosure support (a.k.a. Podcasts). Mar-14-2006 Yen-Ju Chen * GNUstep.h: New Make it compile on mac and fix some compilation warnings.. Jan-16-2006 Guenther Noack Version 0.6.1-2 Got ATOM working again. Needed to restructure and extend the DOM classes a bit. Implementing HTML parsing with it should be trivial to do now. :-) Nov-27-2005 Guenther Noack Stable release 0.6 Main 'feature' added: - Finally threw away the last code using the GSXML* classes, so now it uses NSSAXParser and is thum *fully OSX compatible* :-) Aug-19-2005 Guenther Noack Another Pre-Release Version 0.5pre4 - Support for the ATOM 1.0 draft, as published by the IETF. - Support for Podcasting information (for ATOM 1.0 only ATM :->) If you want to use the podcasting features, call 'links' on an RSSArticle. This returns an array of NSURL objects. Call propertyForKey:@"type" and propertyForKey:@"rel" on those to get additional information to the URL. (This is a nightly hack, still not tested.) Jul-23-2005 Guenther Noack Pre-Release Version 0.5pre2 interface mostly compatible to old releases. The 'dirty' flag is deprecated, we now save the date of the last retrieval. You can supply a feed with a class type which should be used to create new RSSArticle objects. This must be derivated from RSSArticle. Apr-12-2005 Guenther Noack Initial release Version 0.4 only small bugfixes Mar-26-2005 Guenther Noack Preview release Version, umm, 0.1 RSSKit-0.4/DOMParser.h010064400017500000012000000052511122715723100137410ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import @class XMLNode; @protocol XMLTextOrNode -(NSString*) contentAndNextContents; -(NSString*) content; -(void) _setNext: (id) node; -(XMLNode*) nextElement; @end @interface XMLText : NSObject { NSString* _content; id _next; } -(NSString*) contentAndNextContents; -(NSString*) content; -(void) _setNext: (id) node; -(XMLNode*) nextElement; -(id)init; -(id)initWithString: (NSString*) str; -(void)dealloc; @end @interface XMLNode : NSObject { NSString* _name; NSString* _namespace; XMLNode* _child; id _next; id _current; XMLNode* _parent; NSDictionary* _attributes; } -(XMLNode*) firstChildElement; -(XMLNode*) nextElement; -(NSString*) name; -(NSString*) contentAndNextContents; -(NSString*) content; -(NSDictionary*) attributes; -(NSString*) namespace; -(id) initWithName: (NSString*) name namespace: (NSString*) namespace attributes: (NSDictionary*) attributes parent: (XMLNode*) parent; -(void) dealloc; - (void) _setNext: (id ) node; - (void) appendTextOrNode: (id) aThing fromParser: (NSXMLParser*) aParser; @end @interface XMLNode (NSXMLParserDelegateEventAdditions) - (void) parser: (NSXMLParser*)aParser didEndElement: (NSString*)anElementName namespaceURI: (NSString*)aNamespaceURI qualifiedName: (NSString*)aQualifierName; - (void) parser: (NSXMLParser*)aParser didStartElement: (NSString*)anElementName namespaceURI: (NSString*)aNamespaceURI qualifiedName: (NSString*)aQualifierName attributes: (NSDictionary*)anAttributeDict; - (void) parser: (NSXMLParser*)aParser parseErrorOccured: (NSError*)parseError; - (void) parser: (NSXMLParser*)aParser foundCharacters: (NSString*)aString; - (void) parser: (NSXMLParser*)aParser foundCDATA: (NSData*)CDATABlock; @end RSSKit-0.4/DOMParser.m010064400017500000012000000151261176361044500137560ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * 2012 Free Software Foundation * * Authors: Guenther Noack * Riccardo Mottola * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "DOMParser.h" #import "GNUstep.h" //#define DEBUG 1 @implementation XMLText -(NSString*) contentAndNextContents { return [NSString stringWithFormat: @"%@%@", ( (_content==nil) ? @"" : _content ), ( (_next==nil) ? @"" : [_next contentAndNextContents])]; } -(NSString*) content { return ( (_content==nil) ? @"" : _content ); } -(void) _setNext: (id) node { ASSIGN(_next, node); } -(XMLNode*) nextElement { // !!! If you change this, change it in XMLNode, too! // XXX: Write a macro // we only return *XML elements* here, *not* contents! if ([_next isKindOfClass: [XMLText class]]) { return [_next nextElement]; } else { return AUTORELEASE(RETAIN(_next)); } } /** * @deprecated * Please don't call init on XMLText objects. It won't work. * Instead, use initWithString: */ -(id)init { [self release]; return nil; } -(id)initWithString: (NSString*) str { self = [super init]; if (self != nil) { ASSIGN(_content, str); } return self; } -(void)dealloc { DESTROY(_next); DESTROY(_content); [super dealloc]; } @end @implementation XMLNode -(XMLNode*) firstChildElement { if (_child == nil) return nil; if ([[_child class] isSubclassOfClass: [XMLNode class]]) { return AUTORELEASE(RETAIN(_child)); } else { return [_child nextElement]; } } -(XMLNode*) nextElement { // !!! If you change this, change it in XMLText, too! // XXX: Write a macro // we only return *XML elements* here, *not* contents! if ([_next isKindOfClass: [XMLText class]]) { return [_next nextElement]; } else { return AUTORELEASE(RETAIN(_next)); } } -(NSString*) name { return AUTORELEASE(RETAIN(_name)); } -(NSString*) contentAndNextContents { NSString* result; // XXX: attributes are still not shown here! Do we need it? if (_child == nil) { result = [NSString stringWithFormat: @"<%@/>%@", _name, (_next==nil?@"":[_next contentAndNextContents])]; } else { result = [NSString stringWithFormat: @"<%@>%@%@", _name, [_child contentAndNextContents], _name, (_next==nil?@"":[_next contentAndNextContents])]; } return result; } -(NSString*) content { NSString* result; // XXX: attributes are still not shown here! Do we need it? if (_child == nil) { result = @""; } else { result = [_child contentAndNextContents]; } return result; } -(NSDictionary*) attributes { return AUTORELEASE(RETAIN(_attributes)); } -(NSString*) namespace { return AUTORELEASE(RETAIN(_namespace)); } -(id) initWithName: (NSString*) name namespace: (NSString*) namespace attributes: (NSDictionary*) attributes parent: (XMLNode*) parent; { self = [super init]; if (self != nil) { ASSIGN(_name, name); ASSIGN(_namespace, namespace); ASSIGN(_parent, parent); ASSIGN(_attributes, attributes); } return self; } -(void) dealloc { DESTROY(_child); DESTROY(_next); DESTROY(_namespace); DESTROY(_name); DESTROY(_current); DESTROY(_parent); DESTROY(_attributes); [super dealloc]; } - (void) _setNext: (id) node { #ifdef DEBUG NSLog(@"_setNext: %@ --> %@", self, node); #endif ASSIGN(_next, node); } - (void) appendTextOrNode: (id) aThing fromParser: (NSXMLParser*) aParser { #ifdef DEBUG NSLog(@"appendTextOrNode: %@ at: %@", aThing, [self name]); #endif if (_child == nil) { ASSIGN(_child, aThing); } if (_current == nil) { ASSIGN(_current, aThing); } else { [_current _setNext: aThing]; ASSIGN(_current, aThing); } if ([[aThing class] isSubclassOfClass: [XMLNode class]]) { [aParser setDelegate: aThing]; } } @end @implementation XMLNode (NSXMLParserDelegateEventAdditions) - (void) parser: (NSXMLParser*)aParser didEndElement: (NSString*)anElementName namespaceURI: (NSString*)aNamespaceURI qualifiedName: (NSString*)aQualifierName { #ifdef DEBUG NSLog(@"closing XML node %@", anElementName); #endif if (![anElementName isEqualToString: _name]) { NSLog(@"badly nested XML elements!"); } if (_parent != nil) { [aParser setDelegate: _parent]; DESTROY(_parent); } } - (void) parser: (NSXMLParser*)aParser didStartElement: (NSString*)anElementName namespaceURI: (NSString*)aNamespaceURI qualifiedName: (NSString*)aQualifierName attributes: (NSDictionary*)anAttributeDict { XMLNode *item = [[XMLNode alloc] initWithName: anElementName namespace: aNamespaceURI attributes: anAttributeDict parent: self ]; #ifdef DEBUG NSLog(@"starting XML node %@ (NS=%@)", anElementName, aNamespaceURI); #endif [self appendTextOrNode: item fromParser: aParser]; DESTROY(item); } - (void) parser: (NSXMLParser*)aParser parseErrorOccured: (NSError*)parseError { NSLog(@"XML-DOM Parser: %@ at line %d, col %d", [parseError localizedDescription], [aParser lineNumber], [aParser columnNumber]); } - (void) parser: (NSXMLParser*)aParser foundCharacters: (NSString*)aString { XMLText *text = [[XMLText alloc] initWithString: aString]; [self appendTextOrNode: text fromParser: aParser]; DESTROY(text); } - (void) parser: (NSXMLParser*)aParser foundCDATA: (NSData*)CDATABlock { // FIXME: Find out how to retieve the XML file's encoding from here! // At the moment, I'm just using UTF8 here, as it's the most commonly // used encoding in RSS feeds (and XML in general). NSString* blockContents = [[NSString alloc] initWithData: CDATABlock encoding: NSUTF8StringEncoding]; [blockContents autorelease]; // delegate to the foundCharacters method. [self parser: aParser foundCharacters: blockContents]; } @end RSSKit-0.4/DublinCore.h010064400017500000012000000017751115702742600142060ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Dublin Core Header // For the date format, please consider taking a look at // http://www.w3.org/TR/NOTE-datetime #import NSDate* parseDublinCoreDate( NSString* dateStr ); extern NSString* dc_error; RSSKit-0.4/DublinCore.m010064400017500000012000000126641115702742700142130ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Dublin Core Module // Written by Guenther Noack // For the date format, please consider taking a look at // http://www.w3.org/TR/NOTE-datetime #import "DublinCore.h" //#define DEBUG 1 // ------------------------------------------------------------- // G L O B A L V A R I A B L E S // index always points to the *next* character // this is a global variable so that you can find out where it failed. int position; NSString* dc_error; // ------------------------------------------------------------- // M A C R O S #define nextIsNumber (isdigit(str[position])) #define breakMethod(reason) \ { \ free(str); \ dc_error = reason; \ return nil; \ } #define eatNextNumber(item) \ { \ (item) = (item)*10 + (str[position]-(unichar)'0'); \ position++; \ } #define indexOutOfBounds (position>=length) #define eatNextNumberOrBreak(item) \ { \ if (indexOutOfBounds) \ breakMethod(@"index out of bounds"); \ \ if (nextIsNumber) \ eatNextNumber((item)) \ else \ breakMethod(@"not a number"); \ } #define eatNextNumberOrBreakTimes(item,n) \ { \ for(i=0;i<(n);i++) \ { \ eatNextNumberOrBreak((item)); \ } \ } #define eat(character,retval) \ { \ if (indexOutOfBounds) \ return retval; \ \ if (str[position]!=character) \ breakMethod(@"expected something else"); \ \ position++; \ } #define successReturnValue \ [ NSCalendarDate \ dateWithYear: ((year!=0)?year:2005) \ month: ((month!=0)?month:1) \ day: ((dayOfMonth!=0)?dayOfMonth:1) \ hour: hours \ minute: minutes \ second: seconds \ timeZone: timeZone ] #define eatOrSucceed(character) \ eat(character,successReturnValue); #define eatOrDie(character) \ eat(character,nil); // ------------------------------------------------------------- // D A T E P A R S E R NSDate* parseDublinCoreDate( NSString* dateStr ) { unichar* str; int length; int i; // just for small loops int year =0; int month =0; int dayOfMonth =0; int hours =0; int minutes =0; int seconds =0; int deciseconds =0; NSTimeZone* timeZone = nil; int tzHrs =0; int tzMins =0; int tzSign =0; length = [dateStr length]; str = (unichar*) malloc(length*sizeof(unichar)); [dateStr getCharacters: str]; // reset position position = 0; eatNextNumberOrBreakTimes(year,4); eatOrSucceed('-'); eatNextNumberOrBreakTimes(month,2); eatOrSucceed('-'); eatNextNumberOrBreakTimes(dayOfMonth,2); eatOrSucceed('T'); eatNextNumberOrBreakTimes(hours,2); eatOrDie(':'); eatNextNumberOrBreakTimes(minutes,2); // Optional Seconds if (indexOutOfBounds) breakMethod(@"out of bounds where seconds or TZD should follow"); if (str[position] == (unichar)':') { position++; eatNextNumberOrBreakTimes(seconds,2); if (indexOutOfBounds) breakMethod(@"out of bounds where deciseconds or TZD should follow"); if (str[position] == (unichar)'.') { position++; eatNextNumberOrBreak(deciseconds); } } // Time Zone if (indexOutOfBounds) breakMethod(@"out of bounds where time zone definition should follow"); if (str[position] == (unichar)'-') { eatOrDie('-'); tzSign = -1; // GOTO PARSETZDREST } else if (str[position] == (unichar)'+') { eatOrDie('+'); tzSign = 1; // GOTO PARSETZDREST } // putting together the time zone if (tzSign != 0) { // PARSETZDREST: eatNextNumberOrBreakTimes(tzHrs,2); eatOrDie(':'); eatNextNumberOrBreakTimes(tzMins,2); timeZone = [NSTimeZone timeZoneForSecondsFromGMT: tzSign * ((tzHrs*60 + tzMins)*60)]; } else { NSString* subStr = [dateStr substringFromIndex: position]; timeZone = [NSTimeZone timeZoneWithAbbreviation: subStr]; } /* Process is done. It should be safe to free str */ free(str); return successReturnValue; } RSSKit-0.4/FeedParser.h010064400017500000012000000023231115702742700141670ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "DOMParser.h" #import "RSSArticleCreationListener.h" @interface FeedParser : RSSArticleComposer { } // instantiation +(id) parser; +(id) parserWithDelegate: (id)aDelegate; -(id) init; // parsing -(void) parseWithRootNode: (XMLNode*) root; // helper methods -(NSString*) stringFromHTMLAtNode: (XMLNode*) root; /** * Gets called when a feed title has been found in the feed. */ -(void) foundFeedName: (NSString*) feedName; @end RSSKit-0.4/FeedParser.m010064400017500000012000000034501115702742700141760ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "FeedParser.h" #import "GNUstep.h" @implementation FeedParser // instantiation +(id) parser { return AUTORELEASE([[self alloc] init]); } +(id) parserWithDelegate: (id)aDelegate { FeedParser* p = AUTORELEASE([[self alloc] init]); [p setDelegate: aDelegate]; return p; } -(id) init { if ((self = [super init]) != nil) { delegate = nil; } return self; } // parsing -(void) parseWithRootNode: (XMLNode*) root { NSLog(@"XXX: called -parseWithRootNode: in FeedParser. It should have been called in a subclass!"); } // helper methods // FIXME: Delete this method and find a good way to remove any HTML parsing ideas from RSSKit. // It's better to do that in the application. -(NSString*) stringFromHTMLAtNode: (XMLNode*) root { return AUTORELEASE(RETAIN([root content])); } /** * Gets called when a feed title has been found in the feed. */ -(void) foundFeedName: (NSString*) feedName { if ([delegate respondsToSelector: @selector(setFeedName:)]) { [delegate setFeedName: feedName]; } } @end RSSKit-0.4/GNUmakefile010064400017500000012000000025501177302470500140520ustar00multixusers include $(GNUSTEP_MAKEFILES)/common.make # Compile with gmake coverage=yes, if you want to have coverage analysis output ifeq ($(coverage), yes) ADDITIONAL_FLAGS += -fprofile-arcs -ftest-coverage ADDITIONAL_OBJC_LIBS += -lgcov endif srcdir = . VERSION = 0.4 PACKAGE_NAME = RSSKit # The library to be compiled FRAMEWORK_NAME = RSSKit # Additional libraries RSSKit_LIBRARIES_DEPEND_UPON += $(OBJC_LIBS) $(FND_LIBS) # The Objective-C source files to be compiled RSSKit_OBJC_FILES = \ RSSArticle.m \ RSSArticle+Storage.m \ RSSFeed.m \ RSSFeed+Fetching.m \ RSSFeed+Storage.m \ DublinCore.m \ DOMParser.m \ FeedParser.m \ RSS10Parser.m \ RSS20Parser.m \ AtomParser.m \ Atom03Parser.m \ Atom10Parser.m \ RSSArticleCreationListener.m \ RSSFactory.m \ RSSLinks.m RSSKit_HEADER_FILES = \ RSSArticle.h \ RSSArticle+Storage.h \ RSSArticleProtocol.h \ RSSFeed.h \ RSSFeedProtocol.h \ RSSFeed+Fetching.h \ RSSFeed+Storage.h \ DublinCore.h \ RSSKit.h \ DOMParser.h \ FeedParser.h \ RSS10Parser.h \ RSS20Parser.h \ AtomParser.h \ Atom03Parser.h \ Atom10Parser.h \ RSSArticleCreationListener.h \ NewRSSArticleListener.h \ RSSFactory.h \ RSSLinks.h RSSKit_HEADER_FILES_DIR = . include $(GNUSTEP_MAKEFILES)/aggregate.make include $(GNUSTEP_MAKEFILES)/framework.make -include GNUmakefile.preamble -include GNUmakefile.local -include GNUmakefile.postamble RSSKit-0.4/GNUmakefile.postamble010064400017500000012000000011531115702742700160350ustar00multixusers # Things to do before compiling # before-all:: # Things to do after compiling # after-all:: # Things to do before installing # before-install:: # Things to do after installing # after-install:: # Things to do before uninstalling # before-uninstall:: # Things to do after uninstalling # after-uninstall:: # Things to do before cleaning # before-clean:: # Things to do after cleaning # after-clean:: # Things to do before distcleaning # before-distclean:: # Things to do after distcleaning # after-distclean:: # Things to do before checking # before-check:: # Things to do after checking # after-check:: RSSKit-0.4/GNUmakefile.preamble010064400017500000012000000007421115702742700156410ustar00multixusers# Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS += # Additional flags to pass to the Objective-C compiler ADDITIONAL_OBJCFLAGS += -Wall -Wno-import # Additional flags to pass to the C compiler ADDITIONAL_CFLAGS += -Wall # Additional include directories the compiler should search ADDITIONAL_INCLUDE_DIRS += # Additional LDFLAGS to pass to the linker ADDITIONAL_LDFLAGS += # Additional library directories the linker should search ADDITIONAL_LIB_DIRS += RSSKit-0.4/GNUstep.h010064400017500000012000000047241145075043400135000ustar00multixusers/* GNUstep.h - macros to make easier to port gnustep apps to macos-x Copyright (C) 2001 Free Software Foundation, Inc. Written by: Nicola Pero Date: March, October 2001 This file is part of GNUstep. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __GNUSTEP_GNUSTEP_H_INCLUDED_ #define __GNUSTEP_GNUSTEP_H_INCLUDED_ #ifndef GNUSTEP #if !defined( MAC_OS_X_VERSION_10_5 ) #define NSUInteger unsigned #endif #define AUTORELEASE(object) [object autorelease] #define TEST_AUTORELEASE(object) ({ if (object) [object autorelease]; }) #define RELEASE(object) [object release] #define TEST_RELEASE(object) ({ if (object) [object release]; }) #define RETAIN(object) [object retain] #define TEST_RETAIN(object) ({ if (object) [object retain]; }) #define ASSIGN(object,value) ({\ id __value = (id)(value); \ id __object = (id)(object); \ if (__value != __object) \ { \ if (__value != nil) \ { \ [__value retain]; \ } \ object = __value; \ if (__object != nil) \ { \ [__object release]; \ } \ } \ }) #define ASSIGNCOPY(object,value) ASSIGN(object, [[value copy] autorelease]); #define DESTROY(object) ({ \ if (object) \ { \ id __o = object; \ object = nil; \ [__o release]; \ } \ }) #define CREATE_AUTORELEASE_POOL(X) \ NSAutoreleasePool *(X) = [NSAutoreleasePool new] #define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil] #define _(X) NSLocalizedString (X, nil) #define __(X) X #define NSLocalizedStaticString(X, Y) X #endif /* GNUSTEP */ #endif /* __GNUSTEP_GNUSTEP_H_INCLUDED_ */ RSSKit-0.4/INSTALL010064400017500000012000000011061115702742700130250ustar00multixusers ============== RSSKit INSTALL ============== Required software ----------------- You need to have the GNUstep core libraries installed in order to compile and use RSSKit. The core packages are, at a minimum: * gnustep-make * gnustep-base * gnustep-gui * gnustep-back See for further information. Build and Install ----------------- Steps to build: * make install Trouble ------- Give us feedback! Tell us what you like; tell us what you think could be better. Send bug reports and patches to . RSSKit-0.4/INTRO010064400017500000012000000010621115702742700126130ustar00multixusers INTRODUCTION ------------ Sorry, this was so completely deprecated that I figured out deleting it is a better idea. Here's how to understand RSSKit: Read the RSSArticleProtocol.h, RSSFeedProtocol.h, RSSFactory.h files. They will give you a hint on how to use RSSKit. You can write your own concrete factory to make use of RSSArticle subclassing easier. Look at the Grr development version Grrr for an example on how to do this. It will be available in the Etoile SVN by the end of February 2007. Until then, just write me a mail: guenther@unix-ag.uni-kl.de RSSKit-0.4/Info.plist010064400017500000012000000013171177352165200137530ustar00multixusers CFBundleDevelopmentRegion English CFBundleExecutable RSSKit CFBundleIconFile CFBundleIdentifier com.yourcompany.yourcocoaframework CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType FMWK CFBundleSignature ???? CFBundleVersion 0.4 NSPrincipalClass RSSKit-0.4/NewRSSArticleListener.h010064400017500000012000000025001115702742700162770ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSArticle.h" /** * This protocol is intended to be implemented by classes which want to * be notified of articles found when parsing RSS feeds. */ @interface NSObject (NewRSSArticleListener) /** * This method gets called when a new article has been found. */ -(void) newArticleFound: (id) anArticle; /** * Returns the class of the article objects. This needs to be a subclass * of RSSArticle. * * @return the article class */ -(Class) articleClass; /** * Gets called when a feed title has been found in a feed. */ -(void) feedTitleFound: (NSString*) aTitle; @end RSSKit-0.4/README010064400017500000012000000007161115702742700126620ustar00multixusers====== RSSKit ====== :Author: Buenther Noack :License: LGPL license (see COPYING document) :Version: 0.6.1 RSSKit is a simple library for reading the different types of RSS file formats. It is mainly used by RSSReader.app and will hopefully soon be used by PlopFolio by Ludovic Marcotte. Build and Install ----------------- Read INSTALL document. Developer notes =============== Dependency --------- None. Contribute ---------- Read TODO document. RSSKit-0.4/RFC822Dates.m010064400017500000012000000021401115702743000137720ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import NSString* days[7] = { @"Mon", @"Tue", @"Wed", @"Thu", @"Fri", @"Sat", @"Sun" }; unichar* str; int position; int length; NSDate* parseRFC822Date ( NSString* dateStr ) { length = [dateStr length]; str = (unichar*) malloc(length*sizeof(unichar)); [dateStr getCharacters: str]; } RSSKit-0.4/RSS10Parser.h010064400017500000012000000015231115702743000141270ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "FeedParser.h" @interface RSS10Parser: FeedParser @end RSSKit-0.4/RSS10Parser.m010064400017500000012000000050631115702743000141370ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSS10Parser.h" #import "DublinCore.h" #define URI_PURL_DUBLINCORE @"http://purl.org/dc/elements/1.1/" @implementation RSS10Parser - (void) parseWithRootNode: (XMLNode*) root { XMLNode* toplevelnode; XMLNode* secondlevelnode; for ( toplevelnode = [root firstChildElement]; toplevelnode != nil; toplevelnode = [toplevelnode nextElement] ) { if ([[toplevelnode name] isEqualToString: @"channel"]) { for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [self foundFeedName: [secondlevelnode content]]; } /* you could add here: link, description, image, * items, textinput */ } } else if ([[toplevelnode name] isEqualToString: @"item"]) { [self startArticle]; for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [self setHeadline: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"description"]) { [self setSummary: [secondlevelnode content]]; } else if ([[secondlevelnode name] isEqualToString: @"link"]) { [self addLinkWithURL: [secondlevelnode content] andRel: @"alternate"]; } else if ([[secondlevelnode name] isEqualToString: @"date"] && [[secondlevelnode namespace] isEqualToString: URI_PURL_DUBLINCORE]) { [self setDateFromString: [secondlevelnode content]]; } } [self commitArticle]; } } [self finished]; } @end RSSKit-0.4/RSS20Parser.h010064400017500000012000000015231115702743000141300ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "FeedParser.h" @interface RSS20Parser: FeedParser @end RSSKit-0.4/RSS20Parser.m010064400017500000012000000072451115702743000141440ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSS20Parser.h" #import "DublinCore.h" #define URI_PURL_CONTENT @"http://purl.org/rss/1.0/modules/content/" #define URI_PODCAST @"http://www.itunes.com/dtds/podcast-1.0.dtd" #define URI_PURL_DUBLINCORE @"http://purl.org/dc/elements/1.1/" @implementation RSS20Parser - (void) parseWithRootNode: (XMLNode*) root { XMLNode* toplevelnode; XMLNode* secondlevelnode; XMLNode* thirdlevelnode; for ( toplevelnode = [root firstChildElement]; toplevelnode != nil; toplevelnode = [toplevelnode nextElement] ) { if ([[toplevelnode name] isEqualToString: @"channel"]) { for (secondlevelnode = [toplevelnode firstChildElement]; secondlevelnode != nil; secondlevelnode = [secondlevelnode nextElement] ) { if ([[secondlevelnode name] isEqualToString: @"title"]) { [self foundFeedName: [secondlevelnode content]]; } // FIXME: Add support for tags: link, // language,managingEditor,webMaster else if ([[secondlevelnode name] isEqualToString: @"item"]) { [self startArticle]; for (thirdlevelnode =[secondlevelnode firstChildElement]; thirdlevelnode != nil; thirdlevelnode =[thirdlevelnode nextElement]) { if ([[thirdlevelnode name] isEqualToString: @"title"]) { [self setHeadline: [thirdlevelnode content]]; } else if ([[thirdlevelnode name] isEqualToString: @"link"]) { [self addLinkWithURL: [thirdlevelnode content]]; } else if ([[thirdlevelnode name] isEqualToString: @"description"]) { [self setSummary: [thirdlevelnode content]]; } else if ([[thirdlevelnode name] isEqualToString: @"pubDate"]) { [self setDateFromString: [thirdlevelnode content]]; } else if ([[thirdlevelnode name] isEqualToString: @"enclosure"]) { [self addLinkWithURL: [[thirdlevelnode attributes] objectForKey: @"url"] andRel: @"enclosure" andType: [[thirdlevelnode attributes] objectForKey: @"type"] ]; } else if ([[thirdlevelnode name] isEqualToString: @"summary"] && [[thirdlevelnode namespace] isEqualToString: URI_PODCAST]) { [self setContent: [thirdlevelnode content]]; } else if ([[thirdlevelnode name] isEqualToString: @"encoded"]) { if ([[thirdlevelnode namespace] isEqualToString: URI_PURL_CONTENT]) { [self setContent: [thirdlevelnode content]]; } } else if ([[thirdlevelnode name] isEqualToString: @"date"] && [[thirdlevelnode namespace] isEqualToString: URI_PURL_DUBLINCORE]) { [self setDateFromString: [thirdlevelnode content]]; } } [self commitArticle]; } } } } [self finished]; } @end RSSKit-0.4/RSSArticle+Storage.h010064400017500000012000000027651176361044600155360ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * 2012 The Free Software Foundation * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSArticle.h" @interface RSSArticle (Storage) /** * Returns the article with the URL anURL from the storage */ +(id)articleFromStorageWithURL: (NSString*) anURL; /** * Initialises the article with the URL anURL from the storage. */ -(id)initFromStorageWithURL: (NSString*) anURL; /** * Initialises the article instance with the contents of the aDictionary variable. */ -(id)initWithDictionary: (NSDictionary*) aDictionary; /** * Stores the article (usually as a file in the Reader folder). */ -(BOOL) store; /** * Returns the dictionary that stores the information for this article object. */ -(NSMutableDictionary*) plistDictionary; @end RSSKit-0.4/RSSArticle+Storage.m010064400017500000012000000123431176361044600155340ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * 2010-2012 Free Software Foundation, Inc * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSLinks.h" #import "RSSFactory.h" #import "RSSArticle+Storage.h" #import #import "GNUstep.h" /* * ----------------------------------------------------- * RSSLink helper methods to serialize this into a Plist * ----------------------------------------------------- */ @interface RSSLink (Storage) -(NSDictionary*) plistDictionary; +(id) urlFromPlistDictionary: (NSDictionary*) aDict; @end @implementation RSSLink (Storage) -(NSDictionary*) plistDictionary { NSMutableDictionary* dict = [NSMutableDictionary dictionaryWithCapacity: 3]; NSString* desc = [self description]; NSString* type = [self fileType]; NSString* rel = [self relationType]; if (desc != nil) [dict setObject: desc forKey: @"value"]; if (type != nil) [dict setObject: type forKey: @"type"]; if (rel != nil) [dict setObject: rel forKey: @"rel"]; return dict; } +(id) urlFromPlistDictionary: (NSDictionary*) aDict { return [RSSLink linkWithString: [aDict objectForKey: @"value"] andRel: [aDict objectForKey: @"rel"] andType: [aDict objectForKey: @"type"] ]; } @end /** * Allows to store articles to files and serialize * articles into Plist-compatibly dictionaries. */ @implementation RSSArticle (Storage) /** * Returns the article with the URL anURL from the storage */ +(id)articleFromStorageWithURL: (NSString*) anURL { return [[RSSFactory sharedFactory] articleFromDictionary: [NSDictionary dictionaryWithContentsOfFile: [[RSSFactory sharedFactory] storagePathForURL: anURL]]]; } /** * Initialises the article with the URL anURL from the storage. * * @deprecated * * Calling this method is generally a bad idea, since * it doesn't allow you to decide on load-time which * article is going to be created. Better use one of the * RSSFactory methods for article unarchiving. */ -(id) initFromStorageWithURL: (NSString*) anURL { #ifdef GNUSTEP NSDebugLog(@"Calling -initFromStorageWithURL on a concrete RSSArticle class instance"); #endif return [self initWithDictionary: [NSDictionary dictionaryWithContentsOfFile: [[RSSFactory sharedFactory] storagePathForURL: anURL]]]; } /** * Initialises the article instance with the contents of the aDictionary variable. */ -(id) initWithDictionary: (NSDictionary*) aDictionary { if ((self = [super init]) != nil) { NSArray* arr; NSUInteger i; if (aDictionary == nil) { DESTROY(self); return nil; } ASSIGN( headline, [aDictionary objectForKey: @"headline"] ); ASSIGN( url, [aDictionary objectForKey: @"article URL"] ); ASSIGN( description, [aDictionary objectForKey: @"article content"] ); ASSIGN( date, [aDictionary objectForKey: @"date"] ); arr = [aDictionary objectForKey: @"links"]; ASSIGN(links, AUTORELEASE([[NSMutableArray alloc] init])); for (i=0; i<[arr count]; i++) { [links addObject: [RSSLink urlFromPlistDictionary: [arr objectAtIndex: i]]]; } } return self; } -(NSString*) storagePath { return [[RSSFactory sharedFactory] storagePathForURL: url]; } /** * Stores the article (usually as a file in the Reader folder). */ -(BOOL) store { return [[self plistDictionary] writeToFile: [self storagePath] atomically: YES]; } /** * Returns the dictionary that stores the information for this article object. */ -(NSMutableDictionary*) plistDictionary { NSUInteger i; NSMutableDictionary* dict; NSMutableArray* linksArray; // Create a (Plist-compatible) array of Dictionaries from // the article's link list (an array of NSURL instances) linksArray = [NSMutableArray arrayWithCapacity: [links count]]; for (i=0;i<[links count]; i++) { RSSLink* thisURL = [links objectAtIndex: i]; [linksArray addObject: [thisURL plistDictionary]]; } // Create a dictionary from it all.3 dict = [NSMutableDictionary dictionaryWithCapacity: 10]; if (headline != nil ) [dict setObject: headline forKey: @"headline"]; if (url != nil ) [dict setObject: url forKey: @"article URL"]; if (description != nil) [dict setObject: description forKey: @"article content"]; if (date != nil ) [dict setObject: date forKey: @"date"]; [dict setObject: linksArray forKey: @"links"]; return dict; } @end RSSKit-0.4/RSSArticle.h010064400017500000012000000060301162271062200141120ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2010-2011 The Free Software Foundation, Inc. * 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import @class RSSArticle; #import "RSSFeed.h" #import "RSSArticleProtocol.h" /** * An object of this class represents an article in an RSS Feed. */ @interface RSSArticle : NSObject { @protected NSString* headline; NSString* url; NSString* description; NSDate* date; @private NSURL* enclosure; /// Links and multimedia content NSMutableArray* links; id feed; } /** * Standard initializer. You shouldn't use this. Better use * initWithHeadline:url:description:date: * * @see initWithHeadline:url:description:date: */ -init; /** * Designated initializer for the RSSArticle class. * * Don't create RSSArticle objects yourself. Create a RSSFeed * object and let it fetch the articles for you! * * @param myHeadline A NSString containing the headline of the article. * @param myUrl A NSString containing the URL of the * full version of the article. * @param myDescription An excerpt of the article text or the full text. * @param myDate The date as NSDate object on which this article was posted. * @see RSSFeed */ -initWithHeadline: (NSString*) myHeadline url: (NSString*) myUrl description: (NSString*) myDescription date: (NSDate*) myDate; -(void) dealloc; // Accessor methods (conformance to RSSArticle protocol) -(NSString*)headline; -(NSString*)url; -(NSString*)content; -(NSString*)description; -(NSArray*) links; -(NSDate*) date; -(NSURL*)enclosure; // Mutability methods (conformance to RSSMutableArticle protocol) -(void)addLink:(NSURL*) anURL; -(void)setLinks: (NSArray*) someLinks; -(void)setFeed: (id) aFeed; -(void)setDate: (NSDate*) aDate; /** * Sends a change notification to the notification center. * Useful for subclassing. */ -(void)notifyChange; // Equality and hash codes - (BOOL) isEqual: (id)anObject; /** * This method is intended to make sure that the replacing article keeps * some fields from the old (this) article. Subclasses will probably want * to override this, but shouldn't forget calling the super implementation, * first. */ -(void)willBeReplacedByArticle: (id) newArticle; @end RSSKit-0.4/RSSArticle.m010064400017500000012000000103501144377032200141230ustar00multixusers /* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSLinks.h" #import "RSSArticle.h" #import "RSSArticle+Storage.h" #import "GNUstep.h" // change notification NSString* RSSArticleChangedNotification = @"RSSArticleChangedNotification"; @implementation RSSArticle - (id) init { return [self initWithHeadline: @"no headline" url: @"no URL" description: @"no description" date: AUTORELEASE([NSDate new]) ]; } - (id) initWithHeadline: (NSString*) myHeadline url: (NSString*) myUrl description: (NSString*) myDescription date: (NSDate*) myDate { [super init]; ASSIGN(headline, myHeadline); ASSIGN(url, myUrl); ASSIGN(description, myDescription); ASSIGN(date, myDate); ASSIGN(links, AUTORELEASE([[NSMutableArray alloc] init])); return self; } - (void) dealloc { RELEASE(headline); RELEASE(url); RELEASE(description); RELEASE(date); RELEASE(links); [super dealloc]; } - (NSString *) headline { return headline; } - (NSString *) url { return url; } - (NSString *) description { return headline; } - (NSString*) content { return AUTORELEASE(RETAIN(description)); } - (NSDate*) date { return date; } - (void) setDate: (NSDate*) aDate { ASSIGN(date, aDate); } - (void) setFeed:(id)aFeed { // Feed is NON-RETAINED! feed = aFeed; [self notifyChange]; } -(void)notifyChange { [[NSNotificationCenter defaultCenter] postNotificationName: RSSArticleChangedNotification object: self]; } - (id) feed { // Feed is NON-RETAINED! return feed; } /** * This method is intended to make sure that the replacing article keeps * some fields from the old (this) article. Subclasses will probably want * to override this, but shouldn't forget calling the super implementation, * first. */ -(void) willBeReplacedByArticle: (id) newArticle { NSParameterAssert(newArticle != nil); NSParameterAssert(self != newArticle); NSParameterAssert([self isEqual: newArticle] == YES); // Date stays the same. For everything else, the newer version is better. [newArticle setDate: date]; } - (NSURL*) enclosure { return [[enclosure retain] autorelease]; } /* * This method checks if the specified link is a enclosure. If it is, it is * stored in the article's enclosure field so that it can be easily returned * using the -enclosure method. */ -(void)_checkLinkForEnclosure: (NSURL*)link { if ([link isKindOfClass: [RSSEnclosureLink class]]) { ASSIGN(enclosure, link); } } - (void) setLinks: (NSArray *) someLinks { int i; DESTROY(enclosure); [links setArray: someLinks]; for (i=0; i<[links count]; i++) { [self _checkLinkForEnclosure: [links objectAtIndex: i]]; } [self notifyChange]; } - (void) addLink: (NSURL *) anURL { if (anURL == nil) return; [links addObject: anURL]; [self _checkLinkForEnclosure: anURL]; [self notifyChange]; } - (NSArray *) links { return links; } // Equality and hash codes - (NSUInteger) hash { return [headline hash] ^ [url hash]; } /** * RSS Articles are equal if both the article headlines * and the article URLs are equal. If they are equal is * tested by calling the isEqual: method on those. */ - (BOOL) isEqual: (id)anObject { if ( ( [headline isEqualToString: [anObject headline]] == YES ) && ( [url isEqualToString: [anObject url]] == YES ) ) { return YES; } else { return NO; } } @end RSSKit-0.4/RSSArticleCreationListener.h010064400017500000012000000041051115702743100173100ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFeed.h" /* * The RSSArticleCreationListener is a object which collects things * to put into a new article and puts the articles together. * It does what otherwise every individual RSS-style parser had to do * for itself. */ @interface RSSArticleComposer : NSObject { //RSSFeed* currentFeed; id delegate; NSString* headline; NSString* url; NSString* summary; NSString* content; NSDate* date; NSMutableArray* links; //NSMutableArray* currentArticleList; } // Initializers & Deallocation //-(id) initWithFeed: (RSSFeed*) aFeed; -(id) init; -(void) dealloc; // delegate accessors -(void) setDelegate: (id)aDelegate; -(id) delegate; // Basic control -(void) nextArticle; -(void) startArticle; -(void) commitArticle; -(void) finished; //-(void) setFeed: (RSSFeed*) aFeed; // Collecting of article content -(void) setHeadline: (NSString*) aHeadline; -(void) addLinkWithURL: (NSString*) anURL; -(void) addLinkWithURL: (NSString*) anURL andRel: (NSString*) aRelation; -(void) addLinkWithURL: (NSString*) anURL andRel: (NSString*) aRelation andType: (NSString*) aType; -(void) setContent: (NSString*) aContent; -(void) setSummary: (NSString*) aSummary; -(void) setDate: (NSDate*) aDate; // setDate:, but also converts date. -(void) setDateFromString: (NSString*) str; @end RSSKit-0.4/RSSArticleCreationListener.m010064400017500000012000000172331133256002200173140ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import "RSSLinks.h" #import "NewRSSArticleListener.h" #import "RSSArticleCreationListener.h" #import "DublinCore.h" #import "RSSFactory.h" #import "GNUstep.h" #define REL_KEY @"rel" #define TYPE_KEY @"type" @implementation RSSArticleComposer -(id) init { return [super init]; } -(void) dealloc { DESTROY(headline); DESTROY(url); DESTROY(summary); DESTROY(content); DESTROY(date); DESTROY(links); [super dealloc]; } //delegate accessor methods - (void) setDelegate: (id)aDelegate { ASSIGN(delegate, aDelegate); } - (id) delegate { return delegate; } /** * Adds the article to the feed */ - (void) commitArticle { id article = nil; NSDate* articleDate = nil; NSString* desc = nil; id mutArt; // date if( date == nil ) { ASSIGN(articleDate, [NSDate date]); } else { ASSIGN(articleDate, date); } // description if (content != nil) { ASSIGN(desc, content); } else if (summary != nil) { ASSIGN(desc, summary); } else { ASSIGN(desc, @"No content."); } // url if (url == nil) { NSAssert1([links count] > 0, @"Article %@ has no links!", headline); // better use a bad (="random") link as article URL than none ASSIGN(url, [[links objectAtIndex: 0] description]); } // create article = [[RSSFactory sharedFactory] articleWithHeadline: headline URL: url content: desc date: articleDate]; // FIXME: This article creation was retained before, but it seems okay like that? // Was it a memory leak or am I having memory management problems now? NSAssert1( [article conformsToProtocol: @protocol(RSSMutableArticle)], @"Article %@ must be mutable for proper creation!", article ); mutArt = (id) article; // add links if ([links count] > 0) { [mutArt setLinks: links]; } if (delegate != nil) [delegate newArticleFound: article]; DESTROY(articleDate); DESTROY(desc); } /** * Gets called whenever a feed has been parsed completely. */ -(void) finished { #ifdef DEBUG NSLog(@"%@ finished, rc=%d", self, [self retainCount]); #endif // empty at the moment, may be useful for things like thread locking // in the future. } /** * Starts a new article */ -(void) startArticle { #ifdef DEBUG NSLog(@"start article"); NSLog(@"retain counts in start article: %d %d %d", [headline retainCount], [links retainCount], [date retainCount]); #endif // Free all old stuff DESTROY(headline); DESTROY(url); DESTROY(summary); DESTROY(content); DESTROY(date); DESTROY(links); // Set default values [self setHeadline: @"No headline"]; ASSIGN(links, AUTORELEASE([[NSMutableArray alloc] initWithCapacity: 1])); } // don't use this, use commitArticle // and startArticle directly instead! -(void) nextArticle { #ifdef DEBUG NSLog(@"Warning: nextArticle should not be called."); #endif [self commitArticle]; [self startArticle]; } -(void)setHeadline: (NSString*) aHeadline { ASSIGN(headline, aHeadline); } -(void) addLinkWithURL: (NSString*) anURL { // default is 'alternate', see ATOM specification! [self addLinkWithURL: anURL andRel: @"alternate"]; } -(void) addLinkWithURL: (NSString*) anURL andRel: (NSString*) aRelation { [self addLinkWithURL: anURL andRel: aRelation andType: nil]; } /** * Adds a link with a specified URL, relation type and file type. * * Relation type is one of: *
    *
  • "alternate": This link leads to an alternative location where * this article's contents can be found.
  • *
  • "enclosure": A related resource which is probably large in size. * This may link to a movie, a mp3 file, etc.
  • *
  • "related": A related document
  • *
  • "self": The feed itself
  • *
  • "via": The source of the information provided in the entry.
  • *
* * The nil relation type defaults to "related". * * These relation types are compatible with the ones of the ATOM * specification. For details, see * * the ATOM specification. */ -(void) addLinkWithURL: (NSString*) anURL andRel: (NSString*) aRelation andType: (NSString*) aType { RSSLink* link; #ifdef DEBUG NSLog(@"addLinkWithURL: %@ andRel: %@ andType: %@", anURL, aRelation, aType); #endif link = [RSSLink linkWithString: anURL andRel: aRelation andType: aType]; /* Keep the default URL */ if (url == nil && [aRelation isEqualToString: @"alternate"]) { ASSIGN(url, anURL); } if (link) { [links addObject: link]; } else { NSLog(@"Link is nil: href: %@; rel: %@; type: %@", anURL, aRelation, aType); } #ifdef DEBUG NSLog(@"links is now %@", links); #endif } -(void) setContent: (NSString*) aContent { ASSIGN(content, aContent); } -(void) setSummary: (NSString*) aSummary { ASSIGN(summary, aSummary); } -(void) setDate: (NSDate*) aDate { ASSIGN(date, aDate); } -(void) setDateFromString: (NSString*) str { int i; NSDate* d; static NSArray* timeformats = nil; if (timeformats == nil) { // Everything that can be found in the wild is considered 'verified'. timeformats = [[NSArray alloc] initWithObjects: @"%a, %d %b %Y %H:%M:%S %z", // blogspot @"%a, %d %b %Y %H:%M:%S %Z", // found in thedailywtf, RFC822? @"%a, %d %b %Y %H:%M %Z", @"%a, %d %B %Y %H:%M:%S %Z", // same with full month name @"%a, %d %b %Y %H:%M:%S %z", @"%a, %d %B %Y %H:%M:%S %z", @"%B %d, %Y", @"%b %d, %Y", // verified by example @"%d %b %Y %H:%M:%S %Z", // verified by example (Joel on Software) @"%d %b %Y %H:%M:%S", // not verified, derived from the upper @"%d %b %Y", // not verified, derived from the upper // Dublin Core @"%Y-%m-%dT%H:%M:%S%Z", @"%Y-%m-%dT%H:%M:%S", @"%Y-%m-%dT%H:%M", @"%Y-%m-%d", @"%Y-%m", @"%Y", nil ]; } d = nil; for (i=0; i<[timeformats count] && d == nil; i++) { d = [NSCalendarDate dateWithString: str calendarFormat: [timeformats objectAtIndex: i] ]; } if (d!=nil) NSLog(@"Date=%@, calc'd from %@, which matched to %@ (%dth try)", d, str, [timeformats objectAtIndex: i], i); else NSLog(@"Could not parse Date: %@", str); if (d==nil) { d = parseDublinCoreDate(str); // resistance is futile, nasty timezone definition! } if (d != nil) { [self setDate: d]; } } @end RSSKit-0.4/RSSArticleProtocol.h010064400017500000012000000077071162271062200156500ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2010-2011 The Free Software Foundation, Inc. * 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import #import "RSSFeedProtocol.h" /** * When an article changes, it sends this notification with itself * as notification object. */ extern NSString* RSSArticleChangedNotification; /** * Classes implementing this protocol can be used as RSSArticles. */ @protocol RSSArticle /// @return The headline of the article - (NSString*) headline; /// @return The URL of the full version of the article (as NSString*) - (NSString*) url; /// @return The full text, an excerpt or a summary from the article - (NSString*) content; /** * Returns an NSArray containing NSURL objects or nil, * if there are none. The contained NSURL objects often * have the "type" and "rel" properties set. See the * documentation for addLink: for details. * * @return The links of the article. */ - (NSArray*) links; /** * Returns the date of the publication of the article. * If the source feed of this article didn't contain information * about this date, the fetching date is usually returned. * * @return The date of the publication of the article */ - (NSDate*) date; /** * Returns the Enclosure object of this article as URL. * If there is no enclosure object, nil is returned. * * @return the URL of this article's enclosure object */ - (NSURL*) enclosure; /** * Returns the source feed of this article. * * @warning It's not guaranteed that this object actually exists. * Be aware of segmentation faults! * * If you want to make sure the object exists, you have to follow * these rules: * *
    *
  • Don't retain any article!
  • *
  • Don't call the (undocumented) setFeed: (Colon!) method.
  • *
* * @return The source feed of this article */ - (id) feed; /** * Saves the article to the URL that's calculated by the RSSFactory. */ - (BOOL) store; /** * This method is intended to make sure that the replacing article keeps * some fields from the old (this) article. Subclasses will probably want * to override this, but shouldn't forget calling the super implementation, * first. */ - (void) willBeReplacedByArticle: (id) newArticle; @end /** * Instances conforming to this protocol can be modified. Applications * usually don't want to modify articles, as they are already created by the * feeds, so handing around articles as id is a good way to ensure * nobody (without malicious intentions) is going to change them. */ @protocol RSSMutableArticle /** * Adds a new link to this article. * This is a RSSLink object, which usually has * the "type" property set to an NSString which * represents the resource's MIME type. You may * also specify the "rel" property, which should * be one of "enclosure", "related", "alternate", * "via". */ - (void) addLink:(NSURL*) anURL; /** * Replaces the list of links with a new one. * See the documentation for addLink: for details. * Hint: The parameter may also be nil. */ - (void) setLinks: (NSArray*) someLinks; // only used internally - (void) setFeed: (id) aFeed; /** * Sets the article's date. */ - (void) setDate: (NSDate*) aDate; @end RSSKit-0.4/RSSFactory.h010064400017500000012000000054501176361044600141540ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import "RSSArticleProtocol.h" @protocol RSSFactory /** * Creates a feed with the given URL. */ - (id) feedWithURL: (NSURL*) aURL; /** * Creates and returns an article with the given properties. * * @param aHeadline the title of the article * @param aURL the URL of the article (as a string!) * @param aContent the content of the article (as string) * @param data the date of creation of that article * @return a freshly created article instance (nil on failure) */ - (id) articleWithHeadline: (NSString*) aHeadline URL: (NSString*) aURL content: (NSString*) aContent date: (NSDate*) aDate; /** * Restores the article with the given URL from the hard disk article * store. */ - (id) articleFromStorageWithURL: (NSString*) aURL; /** * Restores the article from that dictionary. */ - (id) articleFromDictionary: (NSDictionary*) aDictionary; /** * Returns the storage path for a URL. */ - (NSString*) storagePathForURL: (NSString*) anURL; @end /** * A standard implementation of the RSSFactory protocol. * This class can easily be subclassed and changed. */ @interface RSSFactory : NSObject /** * Returns the shared factory instance. */ + (id) sharedFactory; /** * Sets another shared factory instance than the currently selected one. */ + (void) setFactory: (id) aFactory; /** * Returns the path where an article is stored in based on its URL. */ -(NSString*) storagePathForURL: (NSString*) anURL; - (id) articleWithHeadline: (NSString*) aHeadline URL: (NSString*) aURL content: (NSString*) aContent date: (NSDate*) aDate; - (id) articleFromStorageWithURL: (NSString*) aURL; - (id) articleFromDictionary: (NSDictionary*) aDictionary; @end RSSKit-0.4/RSSFactory.m010064400017500000012000000131401176361044600141540ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFactory.h" #import "RSSArticle+Storage.h" #import "GNUstep.h" static id sharedFactory = nil; static NSString* RSSArticleStorageDirectory = nil; /** * Converts a string to a string that's usable as a file system name. This is done * by removing several forbidden characters, only leaving the allowed ones. (A helper method) */ NSString* stringToFSString( NSString* aString ) { NSScanner* scanner = [NSScanner scannerWithString: aString]; NSMutableString* string = AUTORELEASE([[NSMutableString alloc] init]); NSCharacterSet* allowedSet = [NSCharacterSet alphanumericCharacterSet]; do { NSString* nextPart; BOOL success; // discard any unknown characters if ([scanner scanUpToCharactersFromSet: allowedSet intoString: NULL] == YES) { [string appendString: @"_"]; } // scan known characters... success = [scanner scanCharactersFromSet: allowedSet intoString: &nextPart]; // ...and add them to the string if (success == YES) { [string appendString: nextPart]; } } while ([scanner isAtEnd] == NO); return [NSString stringWithString: string]; } @implementation RSSFactory /** * Returns the shared factory instance. */ + (id) sharedFactory { if (sharedFactory == nil) { ASSIGN(sharedFactory, AUTORELEASE([[RSSFactory alloc] init])); } return sharedFactory; } /** * Sets another shared factory instance than the currently selected one. */ + (void) setFactory: (id) aFactory { ASSIGN(sharedFactory, aFactory); } /** * The default implementation of this method returns a new feed of * the RSSFeed class. */ - (id) feedWithURL: (NSURL*) aURL { return [RSSFeed feedWithURL: aURL]; } /** * The default implementation of this method returns a new article * of the RSSArticle class. */ - (id) articleWithHeadline: (NSString*) aHeadline URL: (NSString*) aURL content: (NSString*) aContent date: (NSDate*) aDate { id article = [[RSSArticle alloc] initWithHeadline: aHeadline url: aURL description: aContent date: aDate]; return AUTORELEASE(article); } /** * The default implementation of this method returns a new article * of the RSSArticle class.(which implements the RSSMutableArticle protocol) */ - (id) articleFromStorageWithURL: (NSString*) aURL { return [self articleFromDictionary: [NSDictionary dictionaryWithContentsOfFile: [self storagePathForURL: aURL]]]; } /** * The default implementation of this method returns a article * of the RSSArticle class. (which implements the RSSMutableArticle protocol) */ - (id) articleFromDictionary: (NSDictionary*) aDictionary { return AUTORELEASE([[RSSArticle alloc] initWithDictionary: aDictionary]); } /** * Returns the file path where an article with the anURL URL would be stored to. */ -(NSString*) storagePathForURL: (NSString*) anURL { if (RSSArticleStorageDirectory == nil) { NSFileManager* manager; BOOL isDir, exists; NSString *storagePath; storagePath = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) lastObject]; storagePath = [storagePath stringByAppendingPathComponent:[[NSProcessInfo processInfo] processName]]; storagePath = [storagePath stringByAppendingPathComponent:@"RSSArticles"]; ASSIGN(RSSArticleStorageDirectory, storagePath); manager = [NSFileManager defaultManager]; exists = [manager fileExistsAtPath: RSSArticleStorageDirectory isDirectory: &isDir]; if (exists) { if (isDir == NO) { [[NSException exceptionWithName: @"RSSArticleStorageDirectoryIsNotADirectory" reason: @"The storage directory for RSS articles is not a directory." userInfo: nil] raise]; } } else { if ([manager createDirectoryAtPath: RSSArticleStorageDirectory attributes: nil] == NO) { [[NSException exceptionWithName: @"RSSArticleStorageDirectoryCreationFailed" reason: @"Creation of the storage directory for RSS Articles failed." userInfo: nil] raise]; } } } return [NSString stringWithFormat: @"%@/%@.rssarticle", RSSArticleStorageDirectory, stringToFSString(anURL)]; } @end RSSKit-0.4/RSSFeed.h010064400017500000012000000135271162271062200134030ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2010-2011 The Free Software Foundation, Inc. * 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import #import "RSSFeedProtocol.h" #import "RSSArticle.h" /** * The states that the RSS feed can have. */ enum RSSFeedStatus { RSSFeedIsFetching, RSSFeedIsIdle }; /** * Objects of this class represent a RSS/ATOM feed, which is basically * just a source for new articles. When creating a RSSFeed object, you'll * just have to provide it with the URL, where the feed can be downloaded * from. * * This is the generic way to read feeds: * *
    *
  • Create a URL object with the location of the feed.
    * * NSURL* url = * [NSURL URLWithString:@"http://www.example.com/feed.xml"]; * *
  • *
  • Create a RSSFeed object with the URL:
    * * RSSFeed* feed = [RSSFeed initWithURL: url]; * *
  • *
  • Fetch the contents of the feed:
    * * [feed fetch]; // alternatively [feed fetchInBackground]; * *
  • *
  • Optionally tell the RSSFeed to keep old articles.
    * * [feed setAutoClear: NO]; * *
  • *
  • Retrieve the set of articles. * * NSSet* articles = [feed articleSet]; * *
  • *
* * * @see initWithURL: * @see fetch * @see setAutoClear: * * @see RSSArticle * @see NSURL */ @interface RSSFeed : NSObject { @protected NSDate* lastRetrieval; BOOL clearFeedBeforeFetching; NSMutableArray* articles; enum RSSFeedError lastError; NSString* feedName; NSURL* feedURL; Class articleClass; enum RSSFeedStatus status; NSMutableData *cacheData; // Used only when load in background. } + (RSSFeed *) feed; + (RSSFeed *) feedWithURL: (NSURL*) aURL; - (id) init; /** * Designated initializer. * * @param aURL The URL where the feed can be downloaded from. */ - (id) initWithURL: (NSURL*) aURL; /** * @return Description of the Feed (the feed name) */ -(NSString*) description; // ---------------------------------------------------------------------- // Status access // ---------------------------------------------------------------------- /** * Accessor for the status of the feed. * This can be used by a multithreaded GUI to indicate if a feed * is currently fetching... * * @deprecated in favor of -isFetching * @see isFetching * * @return either RSSFeedIsFetching or RSSFeedIsIdle */ - (enum RSSFeedStatus) status; /** * Returns YES if and only if this feed is currently being fetched. */ - (BOOL)isFetching; // ---------------------------------------------------------------------- // Access to the articles // ---------------------------------------------------------------------- // Note: please refer to RSSFeed protocol instead. /** * @return an enumerator for the articles in this feed */ - (NSEnumerator*) articleEnumerator; /** * Deletes an article from the feed. * * @param article The index of the article to delete. */ - (void) removeArticle: (RSSArticle*) article; // ---------------------------------------------------------------------- // Access to the preferences // ---------------------------------------------------------------------- /** * Sets the feed name */ - (void) setFeedName: (NSString*) aFeedName; /** * @return The name of the feed */ - (NSString*) feedName; /** * @return the URL where the feed can be downloaded from (as NSURL object) * @see NSURL */ - (NSURL*) feedURL; // -------------------------------------------------------------------- // Equality and hash codes // -------------------------------------------------------------------- - (BOOL) isEqual: (id)anObject; // -------------------------------------------------------------------- // Accessor and Mutator for the automatic clearing // -------------------------------------------------------------------- /** * Clears the list of articles. */ - (void) clearArticles; // ------------------------------------------------------------------ // Extensions that make subclassing RSSFeed and RSSArticle easier. // ------------------------------------------------------------------ /** * Sets the class of the article objects. This needs to be a subtype * of RSSArticle. * * @param aClass The class newly created article objects should have. */ -(void) setArticleClass:(Class)aClass; /** * Returns the class of the article objects. This will be a subtype * of RSSArticle. * * @return the article class */ -(Class) articleClass; // ------------------------------------------------------------------ // Dirtyness, now implemented via the date of last retrieval // ------------------------------------------------------------------ /** * Returns the date of last retrieval of this feed. * If the feed hasn't been retrieved yet, this method returns nil. * * @return The date of last retrieval as a NSDate pointer. */ -(NSDate*) lastRetrieval; /** * RSSFeed also implements the NewRSSArticleListener informal protocol. */ -(void) newArticleFound: (id) anArticle; @end RSSKit-0.4/RSSFeed+Fetching.h010064400017500000012000000026741115702743100151310ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFeed.h" /** * The ,,Fetching'' category of RSSFeed contains methods * for the RSSFeed class, which are responsible for fetching * and parsing feeds. */ @interface RSSFeed (Fetching) /** * Returns the last fetching error. */ - (enum RSSFeedError) lastError; /** * Fetches the feed from the web. * * @return An error number (of type enum RSSFeedError) * @see NSURL * @see RSSFeedError */ - (enum RSSFeedError) fetch; /** * Fetches the feed from the web. Feed fetching is done * in the background. When the feed is fetched, the feed * will post a RSSFeedFetchedNotification. * * @see RSSFeedFetchedNotification **/ - (void) fetchInBackground; @end RSSKit-0.4/RSSFeed+Fetching.m010064400017500000012000000231451153422027500151320ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFeed+Fetching.h" #import "RSSFeedProtocol.h" #import "DublinCore.h" #import "GNUstep.h" // #define DEBUG 1 #import "DOMParser.h" #import "FeedParser.h" #import "Atom03Parser.h" #import "Atom10Parser.h" #import "RSS10Parser.h" #import "RSS20Parser.h" NSString *const RSSFeedFetchedNotification = @"RSSFeedFetchedNotification"; NSString *const RSSFeedWillFetchNotification = @"RSSFeedWillFetchNotification"; NSString *const RSSFeedFetchFailedNotification = @"RSSFeedFetchFailedNotification"; #define URI_ATOM10 @"http://www.w3.org/2005/Atom" #define URI_PURL_CONTENT @"http://purl.org/rss/1.0/modules/content/" #define URI_PODCAST @"http://www.itunes.com/dtds/podcast-1.0.dtd" #define URI_PURL_CONTENT @"http://purl.org/rss/1.0/modules/content/" #define URI_PODCAST @"http://www.itunes.com/dtds/podcast-1.0.dtd" #define URI_PURL_DUBLINCORE @"http://purl.org/dc/elements/1.1/" @interface RSSFeed (PrivateFetching) -(NSData*) fetchDataFromURL: (NSURL*) myURL; -(enum RSSFeedError) fetchWithData: (NSData*)data; -(enum RSSFeedError) parseATOM03WithRootNode: (XMLNode*) root; -(enum RSSFeedError) parseATOM10WithRootNode: (XMLNode*) root; -(enum RSSFeedError) parseRSS10WithRootNode: (XMLNode*) root; -(enum RSSFeedError) parseRSS20WithRootNode: (XMLNode*) root; - (enum RSSFeedError) setError: (enum RSSFeedError) err; @end @implementation RSSFeed (PrivateFetching) /** * URL client */ - (void) URL: (NSURL *) sender resourceDidFailedLoadingWithReason: (NSString *) reason { /* Make sure it is ours */ if (sender != feedURL) return; NSLog(@"URL %@ failed loading because of %@", sender, reason); [self setError: RSSFeedErrorMalformedURL]; [cacheData setLength: 0]; /* Clean up cache */ status = RSSFeedIsIdle; [[NSNotificationCenter defaultCenter] postNotificationName: RSSFeedFetchFailedNotification object: self userInfo: [NSDictionary dictionaryWithObject: reason forKey: @"Reason"]]; } - (void) URL: (NSURL *) sender resourceDataDidBecomeAvailable: (NSData *) newBytes { /* Make sure it is ours */ if (sender != feedURL) return; if (cacheData == nil) { ASSIGN(cacheData, [NSMutableData data]); } [cacheData appendData: newBytes]; } - (void) URLResourceDidFinishLoading: (NSURL *) sender { /* Make sure it is ours */ if (sender != feedURL) return; NSLog(@"%@ finished loading %@", self, sender); if ((cacheData == nil) && [cacheData length] == 0) { NSLog(@"No Data"); } [self fetchWithData: cacheData]; status = RSSFeedIsIdle; /* Clean up cache */ [cacheData setLength: 0]; NSLog(@"Process Done"); } /** * Fetches the feed from the URL which is stored in the myURL * argument */ -(NSData*) fetchDataFromURL: (NSURL*) myURL { NSData* data; if (myURL == nil) { [self setError: RSSFeedErrorMalformedURL]; } data = [myURL resourceDataUsingCache: NO]; if (data == nil) { [self setError: RSSFeedErrorServerNotReachable]; } return [[data retain] autorelease]; } // parse ATOM 1.0 -(enum RSSFeedError) parseATOM10WithRootNode: (XMLNode*) root { FeedParser* parser = [Atom10Parser parserWithDelegate: self]; [parser parseWithRootNode: root]; return RSSFeedErrorNoError; } // parse ATOM 0.3 -(enum RSSFeedError) parseATOM03WithRootNode: (XMLNode*) root { FeedParser* parser = [Atom03Parser parserWithDelegate: self]; [parser parseWithRootNode: root]; return RSSFeedErrorNoError; } // parse RSS 2.0 -(enum RSSFeedError) parseRSS20WithRootNode: (XMLNode*) root { FeedParser* parser = [RSS20Parser parserWithDelegate: self]; [parser parseWithRootNode: root]; return RSSFeedErrorNoError; } // parse RSS 1.0 -(enum RSSFeedError) parseRSS10WithRootNode: (XMLNode*) root { FeedParser* parser = [RSS10Parser parserWithDelegate: self]; [parser parseWithRootNode: root]; return RSSFeedErrorNoError; } /** * @private * Uses the feed contained in data instead of the URL. */ -(enum RSSFeedError) fetchWithData: (NSData*)data { NSString* rssVersion; NSXMLParser* parser; XMLNode* root; XMLNode* document; int i; parser = AUTORELEASE([[NSXMLParser alloc] initWithData: data]); document = AUTORELEASE([[XMLNode alloc] initWithName: nil namespace: nil attributes: nil parent: nil]); [parser setDelegate: document]; [parser setShouldProcessNamespaces: YES]; if ([parser parse] == NO) { return [self setError: RSSFeedErrorMalformedRSS]; } root = [document firstChildElement]; // finds the root node if (clearFeedBeforeFetching == YES) { status = RSSFeedIsIdle; [self clearArticles]; } // FIXME: Catch errors here which are returned from parsing methods! if ([[root name] isEqualToString: @"RDF"]) // RSS 1.0 detected { rssVersion = @"RSS 1.0"; [self parseRSS10WithRootNode: root]; } else if ([[root name] isEqualToString: @"rss"] && [[[root attributes] objectForKey: @"version"] isEqualToString: @"2.0"]) // RSS 2.0 detected { rssVersion = @"RSS 2.0"; [self parseRSS20WithRootNode: root]; } else if ([[root name] isEqualToString: @"rss"] && [[[root attributes] objectForKey: @"version"] isEqualToString: @"0.91"]) // RSS 0.91 detected { rssVersion = @"RSS 0.91"; NSLog(@"WARNING: RSS 0.91 support is a *hack* at the moment"); [self parseRSS20WithRootNode: root]; } else if ([[root name] isEqualToString: @"rss"] && [[[root attributes] objectForKey: @"version"] isEqualToString: @"0.92"]) // RSS 0.92 detected { rssVersion = @"RSS 0.92"; NSLog(@"WARNING: RSS 0.92 support is a *hack* at the moment"); [self parseRSS20WithRootNode: root]; } else if ([[root name] isEqualToString: @"feed"] && [[root namespace] isEqualToString: URI_ATOM10]) // ATOM 1.0 { rssVersion = @"ATOM 1.0"; [self parseATOM10WithRootNode: root]; } else if ([[root name] isEqualToString: @"feed"] && [[[root attributes] objectForKey: @"version"] isEqualToString: @"0.3"]) // ATOM 0.3 detected { rssVersion = @"ATOM 0.3"; [self parseATOM03WithRootNode: root]; } else { NSLog(@"Failed to decide RSS version"); NSLog(@"Root name: %@", [root name]); rssVersion = @"Malformed RSS?"; status = RSSFeedIsIdle; [[NSNotificationCenter defaultCenter] postNotificationName: RSSFeedFetchFailedNotification object: self userInfo: [NSDictionary dictionaryWithObject: @"Malformed RSS" forKey: @"Reason"]]; return [self setError: RSSFeedErrorMalformedRSS]; } // make sure all articles know their parent feed for (i=0; i<[articles count]; i++) { // We're in a RSSFeed, so we can assume this is a RSSArticle object. [(RSSArticle*)[articles objectAtIndex: i] setFeed: self]; } [[NSNotificationCenter defaultCenter] postNotificationName: RSSFeedFetchedNotification object: self]; status = RSSFeedIsIdle; return [self setError: RSSFeedErrorNoError]; } // sets the error for the feed (see RSSFeed.h) -(enum RSSFeedError) setError: (enum RSSFeedError) err { lastError = err; return err; } @end @implementation RSSFeed (Fetching) /** * Returns the last error. * Guaranteed to return the last fetching result. */ -(enum RSSFeedError) lastError { return lastError; } /** * Fetches the feed from its feed URL, parses it and adds the found * articles to the list of articles contained in this feed (if they * are new). */ -(enum RSSFeedError) fetch { NSData* data; status = RSSFeedIsFetching; // no errors at first :-) [self setError: RSSFeedErrorNoError]; [[NSNotificationCenter defaultCenter] postNotificationName: RSSFeedWillFetchNotification object: self]; data = [self fetchDataFromURL: feedURL]; status = RSSFeedIsIdle; return [self fetchWithData: data]; } - (void) fetchInBackground { if (feedURL == nil) { [self setError: RSSFeedErrorMalformedURL]; return; } if (status == RSSFeedIsFetching) { // FIXME: need an error for repeated loading. // GN: Be careful. When you assign an error to that feed while it // is actually already being fetched in the background, the // thread that fetches the data in the background will probably // set the feed's error code, too. You will never know which // fetching process set the error message. return; } status = RSSFeedIsFetching; [self setError: RSSFeedErrorNoError]; [[NSNotificationCenter defaultCenter] postNotificationName: RSSFeedWillFetchNotification object: self]; [feedURL loadResourceDataNotifyingClient: self usingCache: NO]; } @end RSSKit-0.4/RSSFeed+Storage.h010064400017500000012000000017621131200165700147760ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFeed.h" @interface RSSFeed (Storage) -(NSMutableDictionary*) plistDictionary; +(id)feedFromPlistDictionary: (NSDictionary*) plistDictionary; -(id)initFromPlistDictionary: (NSDictionary*) plistDictionary; @end RSSKit-0.4/RSSFeed+Storage.m010064400017500000012000000075711173454264400150250ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * 2010-2012 Free Software Inc. * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import "RSSFeed+Storage.h" #import "RSSArticle+Storage.h" #import "GNUstep.h" /** * The storage methods for storing and restoring feeds. */ @implementation RSSFeed (Storage) /** * Returns a Plist-able dictionary representation of this feed. */ -(NSMutableDictionary*) plistDictionary { NSUInteger i; NSMutableArray* articleIndex; NSMutableDictionary* dict = AUTORELEASE([[NSMutableDictionary alloc] init]); [dict setObject: lastRetrieval forKey: @"lastRetrievalDate"]; [dict setObject: [NSNumber numberWithBool: clearFeedBeforeFetching] forKey: @"clearFeedBeforeFetchingFlag"]; if (feedName != nil) { [dict setObject: feedName forKey: @"feedName"]; } [dict setObject: [feedURL description] forKey: @"feedURL"]; [dict setObject: [articleClass description] forKey: @"articleClass"]; articleIndex = AUTORELEASE([NSMutableArray new]); for (i=0; i<[articles count]; i++) { NSMutableDictionary* articleDict = AUTORELEASE([[NSMutableDictionary alloc] init]); id article = [articles objectAtIndex: i]; [articleDict setValue: [article headline] forKey: @"headline"]; [articleDict setValue: [[article url] description] forKey: @"URL"]; [articleDict setValue: [article date] forKey: @"date"]; [articleIndex addObject: articleDict]; } [dict setObject: articleIndex forKey: @"articleIndex"]; return dict; } /** * Creates a feed from a suitable Plist-able dictionary representation. */ +(id)feedFromPlistDictionary: (NSDictionary*) plistDictionary { return [[[self alloc] initFromPlistDictionary: plistDictionary] autorelease]; } -(id)initFromPlistDictionary: (NSDictionary*) plistDictionary { if ((self = [super init]) != nil) { NSArray* articleIndex; NSMutableArray* mutArticles; NSUInteger i; // This is just an alias (my hands hurt) NSDictionary* dict = plistDictionary; ASSIGN(lastRetrieval, [dict objectForKey: @"lastRetrievalDate"]); clearFeedBeforeFetching = [[dict objectForKey: @"clearFeedBeforeFetchingFlag"] boolValue]; ASSIGN(feedName, [dict objectForKey: @"feedName"]); // may be nil ASSIGN(feedURL, [NSURL URLWithString: [dict objectForKey: @"feedURL"]]); ASSIGN(articleClass, NSClassFromString([dict objectForKey: @"articleClass"])); lastError = RSSFeedErrorNoError; status = RSSFeedIsIdle; articleIndex = [dict objectForKey: @"articleIndex"]; mutArticles = AUTORELEASE([[NSMutableArray alloc] init]); for (i=0; i<[articleIndex count]; i++) { NSString* articleURL = [(NSDictionary*)[articleIndex objectAtIndex: i] objectForKey: @"URL"]; id article = [articleClass articleFromStorageWithURL: articleURL]; [article setFeed: self]; // non-retained [mutArticles addObject: article]; } ASSIGN(articles, mutArticles); } return self; } @end RSSKit-0.4/RSSFeed.m010064400017500000012000000121231173454264400134120ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * 2010-2012 Free Software Foundation, Inc * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSFeed.h" #import "RSSFeed+Fetching.h" #import "GNUstep.h" // -------------------------------------------------------- // the main part of the RSSFeed class // -------------------------------------------------------- @implementation RSSFeed + (RSSFeed *) feed { return AUTORELEASE([[self alloc] init]); } + (RSSFeed *) feedWithURL: (NSURL*) aURL { return AUTORELEASE([[self alloc] initWithURL: aURL]); } - (id) init { return [self initWithURL: nil]; } /** * Designated initializer */ - (id) initWithURL: (NSURL*) aURL { [super init]; #ifdef DEBUG NSLog(@"(newFeed) initWithURL: %@", aURL); #endif ASSIGN(feedURL, aURL); ASSIGN(articles, AUTORELEASE([NSMutableArray new])); ASSIGN(lastRetrieval, [NSDate dateWithTimeIntervalSince1970: 0.0]); clearFeedBeforeFetching = YES; lastError = RSSFeedErrorNoError; feedName = nil; articleClass = [RSSArticle class]; status = RSSFeedIsIdle; return self; } - (void) dealloc { DESTROY(feedURL); DESTROY(articles); DESTROY(lastRetrieval); DESTROY(cacheData); [super dealloc]; } -(NSString*) description { return [self feedName]; } // access to the status, deprecated - (enum RSSFeedStatus) status { return status; } - (BOOL) isFetching { return (status == RSSFeedIsFetching) ? YES : NO; } /** * Implementation of the NewRSSArticleListener protocol. */ -(void) newArticleFound: (id) anArticle { NSUInteger oldArticleIdx; NSAssert([articles isKindOfClass: [NSMutableArray class]], @"articles not mutable!"); oldArticleIdx = [articles indexOfObject: anArticle]; if (oldArticleIdx != NSNotFound) { // replace the found older version with the new one, but first // make sure local changes to the old version get transferred to // the new version. (This is why this method is passed a mutable // article.) id oldArticle = [articles objectAtIndex: oldArticleIdx]; // lets oldArticle transfer some of its preferences to anArticle. [oldArticle willBeReplacedByArticle: anArticle]; [articles replaceObjectAtIndex: oldArticleIdx withObject: anArticle]; } else { // article was not known yet - so we can just add it. [articles addObject: anArticle]; } } // access to the articles - (NSEnumerator*) articleEnumerator { return AUTORELEASE(RETAIN([articles objectEnumerator])); } /** * @return a set that contains this feed's articles */ - (NSSet*) articleSet { return [NSSet setWithArray: articles]; } /** * @return the number of articles in this feed */ - (int) articleCount { return [articles count]; } - (void) removeArticle: (RSSArticle*) article { [articles removeObject: article]; } // preferences /** * Sets the feed name */ - (void) setFeedName: (NSString*) aFeedName { ASSIGN(feedName, aFeedName); } - (NSString*) feedName { if (feedName == nil) { return @"Unnamed feed"; } else { return AUTORELEASE(RETAIN(feedName)); } } - (NSURL*) feedURL { if (feedURL == nil) { return nil; } else { return AUTORELEASE(RETAIN(feedURL)); } } // Equality and hash codes - (NSUInteger) hash { return [feedURL hash]; } - (BOOL) isEqual: (id)anObject { if ([self class] != [anObject class]) { return NO; } return [feedURL isEqual: [anObject feedURL]]; } // Sets the automatic clearing of the feed. - (void) setAutoClear: (BOOL) autoClear { clearFeedBeforeFetching = autoClear; } - (BOOL) autoClear; { return clearFeedBeforeFetching; } /** * Clears the article list. * NOT SYNCHRONIZED! */ - (void) clearArticles { // Delete and recreate the list of articles. ASSIGN(articles, AUTORELEASE([NSMutableArray new])); // FIXME: Find out why I did this! -GN ASSIGN(lastRetrieval, [NSDate dateWithTimeIntervalSince1970: 0.0]); } -(void) setArticleClass:(Class)aClass { if ([aClass isSubclassOfClass: [RSSArticle class]]) { articleClass = aClass; } } /** * Returns the class of the article objects. This needs to be a subclass * of RSSArticle. (Also needed to implement the NewRSSArticleListener * class) * * @return the article class */ -(Class) articleClass { return articleClass; } -(NSDate*) lastRetrieval { return AUTORELEASE(RETAIN(lastRetrieval)); } @end RSSKit-0.4/RSSFeedProtocol.h010064400017500000012000000074601162271062200151240ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2010-2011 The Free Software Foundation, Inc. * 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import // --- Notifications --- /** * When feed finishes parsing, it posts this notification * with itself as object and nil for userInfo. **/ extern NSString *const RSSFeedFetchedNotification; /** * When feed fetching in background failed or feed fails to process data, * it posts this notification * with itself as object. * userInfo: @"Reason" for a string of failed reason. It could be nil. **/ extern NSString *const RSSFeedFetchFailedNotification; /** * When a feed is about to fetch, it first posts this notification * with itself as object and nil as userInfo. */ extern NSString *const RSSFeedWillFetchNotification; // --------------------- /** * The errors that can occur when fetching a feed. */ enum RSSFeedError { RSSFeedErrorNoError = 0, ///< No error occured RSSFeedErrorNoFetcherError, ///< @deprecated RSSFeedErrorMalformedURL, ///< Malformed URL RSSFeedErrorDomainNotKnown, ///< Domain not known RSSFeedErrorServerNotReachable, ///< Server not reachable RSSFeedErrorDocumentNotPresent, ///< Document not present on server RSSFeedErrorMalformedRSS ///< Malformed RSS / Parsing error }; /** * The RSS feed protocol defines the way users are supposed to talk to * a feed. */ @protocol RSSFeed // Article access /** * @return an enumerator for the articles in this feed */ - (NSEnumerator*) articleEnumerator; /** * @return a set that contains this feed's articles */ - (NSSet*) articleSet; /** * @return the number of articles in this feed */ - (int) articleCount; /** * Returns YES if and only if this feed is currently being fetched. */ - (BOOL)isFetching; /** * @return The name of the feed */ - (NSString*) feedName; /** * @return the URL where the feed can be downloaded from (as NSURL object) * @see NSURL */ - (NSURL*) feedURL; /** * Fetches the feed from the web. * * @return An error number (of type enum RSSFeedError) * @see NSURL * @see RSSFeedError */ - (enum RSSFeedError) fetch; /** * Fetches the feed from the web. Feed fetching is done * in the background. When the feed is fetched, the feed * will post a RSSFeedFetchedNotification. * * @see RSSFeedFetchedNotification **/ - (void) fetchInBackground; /** * Returns the last fetching error. */ - (enum RSSFeedError) lastError; /** * @return YES, if the automatic clearing of the article list is * enabled for this feed. NO otherwise. */ - (BOOL) autoClear; @end @protocol RSSMutableFeed /** * Deletes an article from the feed. * * @param article The article to delete. */ - (void) removeArticle: (id) article; /** * Sets the feed name */ - (void) setFeedName: (NSString*) aFeedName; /** * Lets you decide if the feed should be cleared before new * articles are downloaded. * * @param autoClear YES, if the feed should clear its article list * before fetching new articles. NO otherwise */ - (void) setAutoClear: (BOOL) autoClear; @end RSSKit-0.4/RSSKit.h010064400017500000012000000017641115702743200132720ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import #import #import #import #import #import RSSKit-0.4/RSSKit_Prefix.pch010064400017500000012000000002201126443447400151230ustar00multixusers// // Prefix header for all source files of the 'RSSKit' target in the 'RSSKit' project. // #ifdef __OBJC__ #import #endif RSSKit-0.4/RSSLinks.h010064400017500000012000000065551115702743200136260ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import #import #import /** * A link that is used in a RSSArticle. You can find these in * the array returned by the -links method in RSSArticle. * * This inherits from NSURL and has special extra attributes. */ @interface RSSLink : NSURL { NSString* _type; } /** * Factory method that returns a RSSLink with the given * attributes. * * Relation type is one of: *
    *
  • "alternate": This link leads to an alternative location where * this article's contents can be found.
  • *
  • "enclosure": A related resource which is probably large in size. * This may link to a movie, a mp3 file, etc.
  • *
  • "related": A related document
  • *
  • "self": The feed itself
  • *
  • "via": The source of the information provided in the entry.
  • *
* * The nil relation type defaults to "related". * * These relation types are compatible with the ones of the ATOM * specification. For details, see * * the ATOM specification. * * @param aURLString the URL of the link as string * @param aRelation one of "alternate", "enclosure", "related", "self", "via", nil * @param aType the file type as string */ +(id) linkWithString: (NSString*) aURLString andRel: (NSString*) aRelation andType: (NSString*) aType; /** * @see -initWithString:andRel:andType: */ -(id) initWithString: (NSString*) aURLString andType: (NSString*) aType; /** * Returns the type of this relation. This is one of * "alternate", "enclosure", "related", "self", "via". * * @return the relation type as string */ -(NSString*) relationType; /** * Returns the file type of the file that this link points to. * * @return the file type as a string */ -(NSString*) fileType; @end @interface RSSAlternativeLink : RSSLink +(id) alternativeLinkWithString: (NSString*) aURLString; +(id) alternativeLinkWithString: (NSString*) aURLString andType: (NSString*) aType; @end @interface RSSEnclosureLink : RSSLink +(id) enclosureLinkWithString: (NSString*) aURLString; +(id) enclosureLinkWithString: (NSString*) aURLString andType: (NSString*) aType; @end @interface RSSRelatedLink : RSSLink +(id) relatedLinkWithString: (NSString*) aURLString; +(id) relatedLinkWithString: (NSString*) aURLString andType: (NSString*) aType; @end @interface RSSViaLink : RSSLink +(id) viaLinkWithString: (NSString*) aURLString; +(id) viaLinkWithString: (NSString*) aURLString andType: (NSString*) aType; @end RSSKit-0.4/RSSLinks.m010064400017500000012000000077261115702743200136340ustar00multixusers/* -*-objc-*- * * GNUstep RSS Kit * Copyright (C) 2006 Guenther Noack * * This library 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, in version 2.1 * of the License * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #import "RSSLinks.h" #import "GNUstep.h" @implementation RSSLink +(id) linkWithString: (NSString*) aURLString andRel: (NSString*) aRelation andType: (NSString*) aType { id result = nil; if (aRelation == nil || // nil defaults to "related" [aRelation isEqualToString: @"related"]) { result = [RSSRelatedLink relatedLinkWithString: aURLString andType: aType]; } else if ([aRelation isEqualToString: @"alternate"]) { result = [RSSAlternativeLink alternativeLinkWithString: aURLString andType: aType]; } else if ([aRelation isEqualToString: @"enclosure"]) { result = [RSSEnclosureLink enclosureLinkWithString: aURLString andType: aType]; } else if ([aRelation isEqualToString: @"via"]) { result = [RSSViaLink viaLinkWithString: aURLString andType: aType]; } else if ([aRelation isEqualToString: @"self"]) { result = nil; // self relation not supported yet! FIXME } return result; } -(id) initWithString: (NSString*) aURLString { return [self initWithString: aURLString andType: nil]; } -(id) initWithString: (NSString*) aURLString andType: (NSString*) aType { if ([self isMemberOfClass: [RSSLink class]]) { [self release]; [NSException raise: @"Abstract Class Instantiation" format: @"Abstract class %@ cannot be instantiated directly!", [isa class]]; } if ((self = [super initWithString: aURLString]) != nil) { ASSIGN(_type, aType); } return self; } -(NSString*) relationType { #ifdef GNUSTEP [self subclassResponsibility: _cmd]; #endif return nil; } -(NSString*) fileType { return [[_type retain] autorelease]; } @end @implementation RSSAlternativeLink +(id) alternativeLinkWithString: (NSString*) aURLString { return [self alternativeLinkWithString: aURLString andType: nil]; } +(id) alternativeLinkWithString: (NSString*) aURLString andType: (NSString*) aType { return AUTORELEASE([[self alloc] initWithString: aURLString andType: aType]); } -(NSString*) relationType { return @"alternate"; } @end @implementation RSSEnclosureLink +(id) enclosureLinkWithString: (NSString*) aURLString { return [self enclosureLinkWithString: aURLString andType: nil]; } +(id) enclosureLinkWithString: (NSString*) aURLString andType: (NSString*) aType; { return AUTORELEASE([[self alloc] initWithString: aURLString andType: aType]); } -(NSString*) relationType { return @"enclosure"; } @end @implementation RSSRelatedLink +(id) relatedLinkWithString: (NSString*) aURLString { return [self relatedLinkWithString: aURLString andType: nil]; } +(id) relatedLinkWithString: (NSString*) aURLString andType: (NSString*) aType { return AUTORELEASE([[self alloc] initWithString: aURLString andType: aType]); } -(NSString*) relationType { return @"related"; } @end @implementation RSSViaLink +(id) viaLinkWithString: (NSString*) aURLString { return [self viaLinkWithString: aURLString andType: nil]; } +(id) viaLinkWithString: (NSString*) aURLString andType: (NSString*) aType { return AUTORELEASE([[self alloc] initWithString: aURLString andType: aType]); } -(NSString*) relationType { return @"via"; } @end RSSKit-0.4/TODO010064400017500000012000000002661115702743200124660ustar00multixusers TODO ==== - Add license information to documentation - Make RSSLink conform to the Coding protocol! - Support for the other date format needed - Improve parsing in general RSSKit-0.4/doxygen010064400017500000012000001416661115702743200134100ustar00multixusers# Doxyfile 1.4.2 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = RSSKit # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = 0.6.1 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = Documentation # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese, # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian, # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, # Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explicit @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources # only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = NO # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = YES # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = YES # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # If the sources in your project are distributed over multiple directories # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy # in the documentation. SHOW_DIRECTORIES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from the # version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the progam writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be abled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER # is applied to all files. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse # the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option is superseded by the HAVE_DOT option below. This is only a # fallback. It is recommended to install and use dot, since it yields more # powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that a graph may be further truncated if the graph's # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default), # the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, which results in a white background. # Warning: Depending on the platform used, enabling this option may lead to # badly anti-aliased labels on the edges of a graph (i.e. they become hard to # read). DOT_TRANSPARENT = NO # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO RSSKit-0.4/English.lproj004075500017500000012000000000001156173456600144505ustar00multixusersRSSKit-0.4/English.lproj/CVS004075500017500000012000000000001156173456600151035ustar00multixusersRSSKit-0.4/English.lproj/CVS/Root010064400017500000012000000000631156173456600160240ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/English.lproj/CVS/Repository010064400017500000012000000000361156173456600172600ustar00multixusersgap/libs/RSSKit/English.lproj RSSKit-0.4/English.lproj/CVS/Entries010064400017500000012000000000641156173456600165130ustar00multixusers/InfoPlist.strings/1.1/Sun Oct 11 20:52:00 2009// D RSSKit-0.4/English.lproj/CVS/Template010064400017500000012000000000001177352165200166360ustar00multixusersRSSKit-0.4/English.lproj/InfoPlist.strings010064400017500000012000000004221126444256000200320ustar00multixusersþÿ/* Localized versions of Info.plist keys */ CFBundleName = "RSSKit"; NSHumanReadableCopyright = "© GNUstep Application Project, 2009"; RSSKit-0.4/RSSKit-T.xcodeproj004075500017500000012000000000001156173456600152465ustar00multixusersRSSKit-0.4/RSSKit-T.xcodeproj/CVS004075500017500000012000000000001156173456600157015ustar00multixusersRSSKit-0.4/RSSKit-T.xcodeproj/CVS/Root010064400017500000012000000000631156173456600166220ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/RSSKit-T.xcodeproj/CVS/Repository010064400017500000012000000000431156173456600200540ustar00multixusersgap/libs/RSSKit/RSSKit-T.xcodeproj RSSKit-0.4/RSSKit-T.xcodeproj/CVS/Entries010064400017500000012000000000621156173456600173070ustar00multixusers/project.pbxproj/1.1/Fri Nov 5 23:08:35 2010// D RSSKit-0.4/RSSKit-T.xcodeproj/CVS/Template010064400017500000012000000000001177352165200174340ustar00multixusersRSSKit-0.4/RSSKit-T.xcodeproj/project.pbxproj010075500017500000012000000662731146510716300204050ustar00multixusers// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 42; objects = { /* Begin PBXBuildFile section */ 85687CDD107BF59000B55A9A /* Atom03Parser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CB8107BF59000B55A9A /* Atom03Parser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CDE107BF59000B55A9A /* Atom03Parser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CB9107BF59000B55A9A /* Atom03Parser.m */; }; 85687CDF107BF59000B55A9A /* Atom10Parser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CBA107BF59000B55A9A /* Atom10Parser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CE0107BF59000B55A9A /* Atom10Parser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CBB107BF59000B55A9A /* Atom10Parser.m */; }; 85687CE1107BF59000B55A9A /* AtomParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CBC107BF59000B55A9A /* AtomParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CE2107BF59000B55A9A /* AtomParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CBD107BF59000B55A9A /* AtomParser.m */; }; 85687CE3107BF59000B55A9A /* DOMParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CBE107BF59000B55A9A /* DOMParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CE4107BF59000B55A9A /* DOMParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CBF107BF59000B55A9A /* DOMParser.m */; }; 85687CE5107BF59000B55A9A /* DublinCore.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CC0107BF59000B55A9A /* DublinCore.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CE6107BF59000B55A9A /* DublinCore.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CC1107BF59000B55A9A /* DublinCore.m */; }; 85687CE7107BF59000B55A9A /* FeedParser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CC2107BF59000B55A9A /* FeedParser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CE8107BF59000B55A9A /* FeedParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CC3107BF59000B55A9A /* FeedParser.m */; }; 85687CE9107BF59000B55A9A /* NewRSSArticleListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CC4107BF59000B55A9A /* NewRSSArticleListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CEA107BF59000B55A9A /* RFC822Dates.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CC5107BF59000B55A9A /* RFC822Dates.m */; }; 85687CEB107BF59000B55A9A /* RSS10Parser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CC6107BF59000B55A9A /* RSS10Parser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CEC107BF59000B55A9A /* RSS10Parser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CC7107BF59000B55A9A /* RSS10Parser.m */; }; 85687CED107BF59000B55A9A /* RSS20Parser.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CC8107BF59000B55A9A /* RSS20Parser.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CEE107BF59000B55A9A /* RSS20Parser.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CC9107BF59000B55A9A /* RSS20Parser.m */; }; 85687CEF107BF59000B55A9A /* RSSArticle.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CCA107BF59000B55A9A /* RSSArticle.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF0107BF59000B55A9A /* RSSArticle.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CCB107BF59000B55A9A /* RSSArticle.m */; }; 85687CF1107BF59000B55A9A /* RSSArticle+Storage.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CCC107BF59000B55A9A /* RSSArticle+Storage.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF2107BF59000B55A9A /* RSSArticle+Storage.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CCD107BF59000B55A9A /* RSSArticle+Storage.m */; }; 85687CF3107BF59000B55A9A /* RSSArticleCreationListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CCE107BF59000B55A9A /* RSSArticleCreationListener.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF4107BF59000B55A9A /* RSSArticleCreationListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CCF107BF59000B55A9A /* RSSArticleCreationListener.m */; }; 85687CF5107BF59000B55A9A /* RSSArticleProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD0107BF59000B55A9A /* RSSArticleProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF6107BF59000B55A9A /* RSSFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD1107BF59000B55A9A /* RSSFactory.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF7107BF59000B55A9A /* RSSFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CD2107BF59000B55A9A /* RSSFactory.m */; }; 85687CF8107BF59000B55A9A /* RSSFeed.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD3107BF59000B55A9A /* RSSFeed.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CF9107BF59000B55A9A /* RSSFeed.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CD4107BF59000B55A9A /* RSSFeed.m */; }; 85687CFA107BF59000B55A9A /* RSSFeed+Fetching.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD5107BF59000B55A9A /* RSSFeed+Fetching.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CFB107BF59000B55A9A /* RSSFeed+Fetching.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CD6107BF59000B55A9A /* RSSFeed+Fetching.m */; }; 85687CFC107BF59000B55A9A /* RSSFeed+Storage.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD7107BF59000B55A9A /* RSSFeed+Storage.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CFD107BF59000B55A9A /* RSSFeed+Storage.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CD8107BF59000B55A9A /* RSSFeed+Storage.m */; }; 85687CFE107BF59000B55A9A /* RSSFeedProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CD9107BF59000B55A9A /* RSSFeedProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687CFF107BF59000B55A9A /* RSSKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CDA107BF59000B55A9A /* RSSKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687D00107BF59000B55A9A /* RSSLinks.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687CDB107BF59000B55A9A /* RSSLinks.h */; settings = {ATTRIBUTES = (Public, ); }; }; 85687D01107BF59000B55A9A /* RSSLinks.m in Sources */ = {isa = PBXBuildFile; fileRef = 85687CDC107BF59000B55A9A /* RSSLinks.m */; }; 85687EB5107C0C0E00B55A9A /* GNUstep.h in Headers */ = {isa = PBXBuildFile; fileRef = 85687EB4107C0C0E00B55A9A /* GNUstep.h */; }; 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; }; 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 32DBCF5E0370ADEE00C91783 /* RSSKit_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RSSKit_Prefix.pch; sourceTree = ""; }; 85687CB8107BF59000B55A9A /* Atom03Parser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Atom03Parser.h; sourceTree = ""; }; 85687CB9107BF59000B55A9A /* Atom03Parser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = Atom03Parser.m; sourceTree = ""; }; 85687CBA107BF59000B55A9A /* Atom10Parser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Atom10Parser.h; sourceTree = ""; }; 85687CBB107BF59000B55A9A /* Atom10Parser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = Atom10Parser.m; sourceTree = ""; }; 85687CBC107BF59000B55A9A /* AtomParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AtomParser.h; sourceTree = ""; }; 85687CBD107BF59000B55A9A /* AtomParser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = AtomParser.m; sourceTree = ""; }; 85687CBE107BF59000B55A9A /* DOMParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMParser.h; sourceTree = ""; }; 85687CBF107BF59000B55A9A /* DOMParser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = DOMParser.m; sourceTree = ""; }; 85687CC0107BF59000B55A9A /* DublinCore.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DublinCore.h; sourceTree = ""; }; 85687CC1107BF59000B55A9A /* DublinCore.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = DublinCore.m; sourceTree = ""; }; 85687CC2107BF59000B55A9A /* FeedParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FeedParser.h; sourceTree = ""; }; 85687CC3107BF59000B55A9A /* FeedParser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = FeedParser.m; sourceTree = ""; }; 85687CC4107BF59000B55A9A /* NewRSSArticleListener.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = NewRSSArticleListener.h; sourceTree = ""; }; 85687CC5107BF59000B55A9A /* RFC822Dates.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RFC822Dates.m; sourceTree = ""; }; 85687CC6107BF59000B55A9A /* RSS10Parser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSS10Parser.h; sourceTree = ""; }; 85687CC7107BF59000B55A9A /* RSS10Parser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSS10Parser.m; sourceTree = ""; }; 85687CC8107BF59000B55A9A /* RSS20Parser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSS20Parser.h; sourceTree = ""; }; 85687CC9107BF59000B55A9A /* RSS20Parser.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSS20Parser.m; sourceTree = ""; }; 85687CCA107BF59000B55A9A /* RSSArticle.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSArticle.h; sourceTree = ""; }; 85687CCB107BF59000B55A9A /* RSSArticle.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSSArticle.m; sourceTree = ""; }; 85687CCC107BF59000B55A9A /* RSSArticle+Storage.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = "RSSArticle+Storage.h"; sourceTree = ""; }; 85687CCD107BF59000B55A9A /* RSSArticle+Storage.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = "RSSArticle+Storage.m"; sourceTree = ""; }; 85687CCE107BF59000B55A9A /* RSSArticleCreationListener.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSArticleCreationListener.h; sourceTree = ""; }; 85687CCF107BF59000B55A9A /* RSSArticleCreationListener.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSSArticleCreationListener.m; sourceTree = ""; }; 85687CD0107BF59000B55A9A /* RSSArticleProtocol.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSArticleProtocol.h; sourceTree = ""; }; 85687CD1107BF59000B55A9A /* RSSFactory.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSFactory.h; sourceTree = ""; }; 85687CD2107BF59000B55A9A /* RSSFactory.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSSFactory.m; sourceTree = ""; }; 85687CD3107BF59000B55A9A /* RSSFeed.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSFeed.h; sourceTree = ""; }; 85687CD4107BF59000B55A9A /* RSSFeed.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSSFeed.m; sourceTree = ""; }; 85687CD5107BF59000B55A9A /* RSSFeed+Fetching.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = "RSSFeed+Fetching.h"; sourceTree = ""; }; 85687CD6107BF59000B55A9A /* RSSFeed+Fetching.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = "RSSFeed+Fetching.m"; sourceTree = ""; }; 85687CD7107BF59000B55A9A /* RSSFeed+Storage.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = "RSSFeed+Storage.h"; sourceTree = ""; }; 85687CD8107BF59000B55A9A /* RSSFeed+Storage.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = "RSSFeed+Storage.m"; sourceTree = ""; }; 85687CD9107BF59000B55A9A /* RSSFeedProtocol.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSFeedProtocol.h; sourceTree = ""; }; 85687CDA107BF59000B55A9A /* RSSKit.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSKit.h; sourceTree = ""; }; 85687CDB107BF59000B55A9A /* RSSLinks.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RSSLinks.h; sourceTree = ""; }; 85687CDC107BF59000B55A9A /* RSSLinks.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RSSLinks.m; sourceTree = ""; }; 85687EB4107C0C0E00B55A9A /* GNUstep.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = GNUstep.h; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 /* RSSKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RSSKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 8DC2EF560486A6940098B216 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 034768DFFF38A50411DB9C8B /* Products */ = { isa = PBXGroup; children = ( 8DC2EF5B0486A6940098B216 /* RSSKit.framework */, ); name = Products; sourceTree = ""; }; 0867D691FE84028FC02AAC07 /* RSSKit */ = { isa = PBXGroup; children = ( 08FB77AEFE84172EC02AAC07 /* Classes */, 32C88DFF0371C24200C91783 /* Other Sources */, 089C1665FE841158C02AAC07 /* Resources */, 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */, 034768DFFF38A50411DB9C8B /* Products */, ); name = RSSKit; sourceTree = ""; }; 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */ = { isa = PBXGroup; children = ( 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */, 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */, ); name = "External Frameworks and Libraries"; sourceTree = ""; }; 089C1665FE841158C02AAC07 /* Resources */ = { isa = PBXGroup; children = ( 8DC2EF5A0486A6940098B216 /* Info.plist */, 089C1666FE841158C02AAC07 /* InfoPlist.strings */, ); name = Resources; sourceTree = ""; }; 08FB77AEFE84172EC02AAC07 /* Classes */ = { isa = PBXGroup; children = ( 85687CB8107BF59000B55A9A /* Atom03Parser.h */, 85687CB9107BF59000B55A9A /* Atom03Parser.m */, 85687CBA107BF59000B55A9A /* Atom10Parser.h */, 85687CBB107BF59000B55A9A /* Atom10Parser.m */, 85687CBC107BF59000B55A9A /* AtomParser.h */, 85687CBD107BF59000B55A9A /* AtomParser.m */, 85687CBE107BF59000B55A9A /* DOMParser.h */, 85687CBF107BF59000B55A9A /* DOMParser.m */, 85687CC0107BF59000B55A9A /* DublinCore.h */, 85687CC1107BF59000B55A9A /* DublinCore.m */, 85687CC2107BF59000B55A9A /* FeedParser.h */, 85687CC3107BF59000B55A9A /* FeedParser.m */, 85687CC4107BF59000B55A9A /* NewRSSArticleListener.h */, 85687CC5107BF59000B55A9A /* RFC822Dates.m */, 85687CC6107BF59000B55A9A /* RSS10Parser.h */, 85687CC7107BF59000B55A9A /* RSS10Parser.m */, 85687CC8107BF59000B55A9A /* RSS20Parser.h */, 85687CC9107BF59000B55A9A /* RSS20Parser.m */, 85687CCA107BF59000B55A9A /* RSSArticle.h */, 85687CCB107BF59000B55A9A /* RSSArticle.m */, 85687CCC107BF59000B55A9A /* RSSArticle+Storage.h */, 85687CCD107BF59000B55A9A /* RSSArticle+Storage.m */, 85687CCE107BF59000B55A9A /* RSSArticleCreationListener.h */, 85687CCF107BF59000B55A9A /* RSSArticleCreationListener.m */, 85687CD0107BF59000B55A9A /* RSSArticleProtocol.h */, 85687CD1107BF59000B55A9A /* RSSFactory.h */, 85687CD2107BF59000B55A9A /* RSSFactory.m */, 85687CD3107BF59000B55A9A /* RSSFeed.h */, 85687CD4107BF59000B55A9A /* RSSFeed.m */, 85687CD5107BF59000B55A9A /* RSSFeed+Fetching.h */, 85687CD6107BF59000B55A9A /* RSSFeed+Fetching.m */, 85687CD7107BF59000B55A9A /* RSSFeed+Storage.h */, 85687CD8107BF59000B55A9A /* RSSFeed+Storage.m */, 85687CD9107BF59000B55A9A /* RSSFeedProtocol.h */, 85687CDA107BF59000B55A9A /* RSSKit.h */, 85687CDB107BF59000B55A9A /* RSSLinks.h */, 85687CDC107BF59000B55A9A /* RSSLinks.m */, ); name = Classes; sourceTree = ""; }; 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */ = { isa = PBXGroup; children = ( 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */, ); name = "Linked Frameworks"; sourceTree = ""; }; 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */ = { isa = PBXGroup; children = ( 0867D69BFE84028FC02AAC07 /* Foundation.framework */, 0867D6A5FE840307C02AAC07 /* AppKit.framework */, ); name = "Other Frameworks"; sourceTree = ""; }; 32C88DFF0371C24200C91783 /* Other Sources */ = { isa = PBXGroup; children = ( 85687EB4107C0C0E00B55A9A /* GNUstep.h */, 32DBCF5E0370ADEE00C91783 /* RSSKit_Prefix.pch */, ); name = "Other Sources"; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ 8DC2EF500486A6940098B216 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 85687CDD107BF59000B55A9A /* Atom03Parser.h in Headers */, 85687CDF107BF59000B55A9A /* Atom10Parser.h in Headers */, 85687CE1107BF59000B55A9A /* AtomParser.h in Headers */, 85687CE3107BF59000B55A9A /* DOMParser.h in Headers */, 85687CE5107BF59000B55A9A /* DublinCore.h in Headers */, 85687CE7107BF59000B55A9A /* FeedParser.h in Headers */, 85687CE9107BF59000B55A9A /* NewRSSArticleListener.h in Headers */, 85687CEB107BF59000B55A9A /* RSS10Parser.h in Headers */, 85687CED107BF59000B55A9A /* RSS20Parser.h in Headers */, 85687CEF107BF59000B55A9A /* RSSArticle.h in Headers */, 85687CF1107BF59000B55A9A /* RSSArticle+Storage.h in Headers */, 85687CF3107BF59000B55A9A /* RSSArticleCreationListener.h in Headers */, 85687CF5107BF59000B55A9A /* RSSArticleProtocol.h in Headers */, 85687CF6107BF59000B55A9A /* RSSFactory.h in Headers */, 85687CF8107BF59000B55A9A /* RSSFeed.h in Headers */, 85687CFA107BF59000B55A9A /* RSSFeed+Fetching.h in Headers */, 85687CFC107BF59000B55A9A /* RSSFeed+Storage.h in Headers */, 85687CFE107BF59000B55A9A /* RSSFeedProtocol.h in Headers */, 85687CFF107BF59000B55A9A /* RSSKit.h in Headers */, 85687D00107BF59000B55A9A /* RSSLinks.h in Headers */, 85687EB5107C0C0E00B55A9A /* GNUstep.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ 8DC2EF4F0486A6940098B216 /* RSSKit */ = { isa = PBXNativeTarget; buildConfigurationList = 8502EB4710ABF719008FB8CE /* Build configuration list for PBXNativeTarget "RSSKit" */; buildPhases = ( 8DC2EF500486A6940098B216 /* Headers */, 8DC2EF520486A6940098B216 /* Resources */, 8DC2EF540486A6940098B216 /* Sources */, 8DC2EF560486A6940098B216 /* Frameworks */, ); buildRules = ( ); dependencies = ( ); name = RSSKit; productInstallPath = "$(HOME)/Library/Frameworks"; productName = RSSKit; productReference = 8DC2EF5B0486A6940098B216 /* RSSKit.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; buildConfigurationList = 8502EB4B10ABF719008FB8CE /* Build configuration list for PBXProject "RSSKit-T" */; hasScannedForEncodings = 1; mainGroup = 0867D691FE84028FC02AAC07 /* RSSKit */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; projectDirPath = ""; targets = ( 8DC2EF4F0486A6940098B216 /* RSSKit */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 8DC2EF520486A6940098B216 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 8DC2EF540486A6940098B216 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 85687CDE107BF59000B55A9A /* Atom03Parser.m in Sources */, 85687CE0107BF59000B55A9A /* Atom10Parser.m in Sources */, 85687CE2107BF59000B55A9A /* AtomParser.m in Sources */, 85687CE4107BF59000B55A9A /* DOMParser.m in Sources */, 85687CE6107BF59000B55A9A /* DublinCore.m in Sources */, 85687CE8107BF59000B55A9A /* FeedParser.m in Sources */, 85687CEA107BF59000B55A9A /* RFC822Dates.m in Sources */, 85687CEC107BF59000B55A9A /* RSS10Parser.m in Sources */, 85687CEE107BF59000B55A9A /* RSS20Parser.m in Sources */, 85687CF0107BF59000B55A9A /* RSSArticle.m in Sources */, 85687CF2107BF59000B55A9A /* RSSArticle+Storage.m in Sources */, 85687CF4107BF59000B55A9A /* RSSArticleCreationListener.m in Sources */, 85687CF7107BF59000B55A9A /* RSSFactory.m in Sources */, 85687CF9107BF59000B55A9A /* RSSFeed.m in Sources */, 85687CFB107BF59000B55A9A /* RSSFeed+Fetching.m in Sources */, 85687CFD107BF59000B55A9A /* RSSFeed+Storage.m in Sources */, 85687D01107BF59000B55A9A /* RSSLinks.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( 089C1667FE841158C02AAC07 /* English */, ); name = InfoPlist.strings; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 8502EB4810ABF719008FB8CE /* Development */ = { isa = XCBuildConfiguration; buildSettings = { COPY_PHASE_STRIP = NO; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_CW_ASM_SYNTAX = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_ENABLE_PASCAL_STRINGS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_MODEL_TUNING = G4; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = RSSKit_Prefix.pch; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_STYLE = DYNAMIC; MACH_O_TYPE = mh_dylib; PRODUCT_NAME = RSSKit; WRAPPER_EXTENSION = framework; ZERO_LINK = YES; }; name = Development; }; 8502EB4910ABF719008FB8CE /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { COPY_PHASE_STRIP = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_CW_ASM_SYNTAX = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_ENABLE_PASCAL_STRINGS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_MODEL_TUNING = G4; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = RSSKit_Prefix.pch; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_STYLE = DYNAMIC; MACH_O_TYPE = mh_dylib; PRODUCT_NAME = RSSKit; WRAPPER_EXTENSION = framework; ZERO_LINK = NO; }; name = Deployment; }; 8502EB4A10ABF719008FB8CE /* Default */ = { isa = XCBuildConfiguration; buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_CW_ASM_SYNTAX = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_PASCAL_STRINGS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_MODEL_TUNING = G4; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = RSSKit_Prefix.pch; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_STYLE = DYNAMIC; MACH_O_TYPE = mh_dylib; PRODUCT_NAME = RSSKit; WRAPPER_EXTENSION = framework; }; name = Default; }; 8502EB4C10ABF719008FB8CE /* Development */ = { isa = XCBuildConfiguration; buildSettings = { }; name = Development; }; 8502EB4D10ABF719008FB8CE /* Deployment */ = { isa = XCBuildConfiguration; buildSettings = { }; name = Deployment; }; 8502EB4E10ABF719008FB8CE /* Default */ = { isa = XCBuildConfiguration; buildSettings = { }; name = Default; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 8502EB4710ABF719008FB8CE /* Build configuration list for PBXNativeTarget "RSSKit" */ = { isa = XCConfigurationList; buildConfigurations = ( 8502EB4810ABF719008FB8CE /* Development */, 8502EB4910ABF719008FB8CE /* Deployment */, 8502EB4A10ABF719008FB8CE /* Default */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Default; }; 8502EB4B10ABF719008FB8CE /* Build configuration list for PBXProject "RSSKit-T" */ = { isa = XCConfigurationList; buildConfigurations = ( 8502EB4C10ABF719008FB8CE /* Development */, 8502EB4D10ABF719008FB8CE /* Deployment */, 8502EB4E10ABF719008FB8CE /* Default */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Default; }; /* End XCConfigurationList section */ }; rootObject = 0867D690FE84028FC02AAC07 /* Project object */; } RSSKit-0.4/RSSKit.xcode004075500017500000012000000000001156173456600141525ustar00multixusersRSSKit-0.4/RSSKit.xcode/CVS004075500017500000012000000000001156173456600146055ustar00multixusersRSSKit-0.4/RSSKit.xcode/CVS/Root010064400017500000012000000000631156173456600155260ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/RSSKit.xcode/CVS/Repository010064400017500000012000000000351156173456600167610ustar00multixusersgap/libs/RSSKit/RSSKit.xcode RSSKit-0.4/RSSKit.xcode/CVS/Entries010064400017500000012000000000621156173456600162130ustar00multixusers/project.pbxproj/1.2/Tue Dec 15 21:46:23 2009// D RSSKit-0.4/RSSKit.xcode/CVS/Template010064400017500000012000000000001177352165200163400ustar00multixusersRSSKit-0.4/RSSKit.xcode/project.pbxproj010064400017500000012000000522471131200165700172720ustar00multixusers// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 39; objects = { 014CEA440018CDF011CA2923 = { buildSettings = { COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; ZERO_LINK = YES; }; isa = PBXBuildStyle; name = Development; }; 014CEA450018CDF011CA2923 = { buildSettings = { COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; ZERO_LINK = NO; }; isa = PBXBuildStyle; name = Deployment; }; //010 //011 //012 //013 //014 //030 //031 //032 //033 //034 034768DFFF38A50411DB9C8B = { children = ( 8DC2EF5B0486A6940098B216, ); isa = PBXGroup; name = Products; refType = 4; sourceTree = ""; }; //030 //031 //032 //033 //034 //080 //081 //082 //083 //084 0867D690FE84028FC02AAC07 = { buildSettings = { }; buildStyles = ( 014CEA440018CDF011CA2923, 014CEA450018CDF011CA2923, ); hasScannedForEncodings = 1; isa = PBXProject; mainGroup = 0867D691FE84028FC02AAC07; productRefGroup = 034768DFFF38A50411DB9C8B; projectDirPath = ""; targets = ( 8DC2EF4F0486A6940098B216, ); }; 0867D691FE84028FC02AAC07 = { children = ( 08FB77AEFE84172EC02AAC07, 32C88DFF0371C24200C91783, 089C1665FE841158C02AAC07, 0867D69AFE84028FC02AAC07, 034768DFFF38A50411DB9C8B, ); isa = PBXGroup; name = RSSKit; refType = 4; sourceTree = ""; }; 0867D69AFE84028FC02AAC07 = { children = ( 1058C7B0FEA5585E11CA2CBB, 1058C7B2FEA5585E11CA2CBB, ); isa = PBXGroup; name = "External Frameworks and Libraries"; refType = 4; sourceTree = ""; }; 0867D69BFE84028FC02AAC07 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; refType = 0; sourceTree = ""; }; 0867D6A5FE840307C02AAC07 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; refType = 0; sourceTree = ""; }; 089C1665FE841158C02AAC07 = { children = ( 8DC2EF5A0486A6940098B216, 089C1666FE841158C02AAC07, ); isa = PBXGroup; name = Resources; refType = 4; sourceTree = ""; }; 089C1666FE841158C02AAC07 = { children = ( 089C1667FE841158C02AAC07, ); isa = PBXVariantGroup; name = InfoPlist.strings; refType = 4; sourceTree = ""; }; 089C1667FE841158C02AAC07 = { fileEncoding = 10; isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; refType = 4; sourceTree = ""; }; 08FB77AEFE84172EC02AAC07 = { children = ( 85687CB8107BF59000B55A9A, 85687CB9107BF59000B55A9A, 85687CBA107BF59000B55A9A, 85687CBB107BF59000B55A9A, 85687CBC107BF59000B55A9A, 85687CBD107BF59000B55A9A, 85687CBE107BF59000B55A9A, 85687CBF107BF59000B55A9A, 85687CC0107BF59000B55A9A, 85687CC1107BF59000B55A9A, 85687CC2107BF59000B55A9A, 85687CC3107BF59000B55A9A, 85687CC4107BF59000B55A9A, 85687CC5107BF59000B55A9A, 85687CC6107BF59000B55A9A, 85687CC7107BF59000B55A9A, 85687CC8107BF59000B55A9A, 85687CC9107BF59000B55A9A, 85687CCA107BF59000B55A9A, 85687CCB107BF59000B55A9A, 85687CCC107BF59000B55A9A, 85687CCD107BF59000B55A9A, 85687CCE107BF59000B55A9A, 85687CCF107BF59000B55A9A, 85687CD0107BF59000B55A9A, 85687CD1107BF59000B55A9A, 85687CD2107BF59000B55A9A, 85687CD3107BF59000B55A9A, 85687CD4107BF59000B55A9A, 85687CD5107BF59000B55A9A, 85687CD6107BF59000B55A9A, 85687CD7107BF59000B55A9A, 85687CD8107BF59000B55A9A, 85687CD9107BF59000B55A9A, 85687CDA107BF59000B55A9A, 85687CDB107BF59000B55A9A, 85687CDC107BF59000B55A9A, ); isa = PBXGroup; name = Classes; refType = 4; sourceTree = ""; }; //080 //081 //082 //083 //084 //100 //101 //102 //103 //104 1058C7B0FEA5585E11CA2CBB = { children = ( 1058C7B1FEA5585E11CA2CBB, ); isa = PBXGroup; name = "Linked Frameworks"; refType = 4; sourceTree = ""; }; 1058C7B1FEA5585E11CA2CBB = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; refType = 0; sourceTree = ""; }; 1058C7B2FEA5585E11CA2CBB = { children = ( 0867D69BFE84028FC02AAC07, 0867D6A5FE840307C02AAC07, ); isa = PBXGroup; name = "Other Frameworks"; refType = 4; sourceTree = ""; }; //100 //101 //102 //103 //104 //320 //321 //322 //323 //324 32C88DFF0371C24200C91783 = { children = ( 85687EB4107C0C0E00B55A9A, 32DBCF5E0370ADEE00C91783, ); isa = PBXGroup; name = "Other Sources"; refType = 4; sourceTree = ""; }; 32DBCF5E0370ADEE00C91783 = { fileEncoding = 4; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSKit_Prefix.pch; refType = 4; sourceTree = ""; }; //320 //321 //322 //323 //324 //850 //851 //852 //853 //854 85687CB8107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Atom03Parser.h; refType = 4; sourceTree = ""; }; 85687CB9107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Atom03Parser.m; refType = 4; sourceTree = ""; }; 85687CBA107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Atom10Parser.h; refType = 4; sourceTree = ""; }; 85687CBB107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Atom10Parser.m; refType = 4; sourceTree = ""; }; 85687CBC107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AtomParser.h; refType = 4; sourceTree = ""; }; 85687CBD107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AtomParser.m; refType = 4; sourceTree = ""; }; 85687CBE107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DOMParser.h; refType = 4; sourceTree = ""; }; 85687CBF107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DOMParser.m; refType = 4; sourceTree = ""; }; 85687CC0107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DublinCore.h; refType = 4; sourceTree = ""; }; 85687CC1107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DublinCore.m; refType = 4; sourceTree = ""; }; 85687CC2107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FeedParser.h; refType = 4; sourceTree = ""; }; 85687CC3107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FeedParser.m; refType = 4; sourceTree = ""; }; 85687CC4107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NewRSSArticleListener.h; refType = 4; sourceTree = ""; }; 85687CC5107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RFC822Dates.m; refType = 4; sourceTree = ""; }; 85687CC6107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSS10Parser.h; refType = 4; sourceTree = ""; }; 85687CC7107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSS10Parser.m; refType = 4; sourceTree = ""; }; 85687CC8107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSS20Parser.h; refType = 4; sourceTree = ""; }; 85687CC9107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSS20Parser.m; refType = 4; sourceTree = ""; }; 85687CCA107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSArticle.h; refType = 4; sourceTree = ""; }; 85687CCB107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSSArticle.m; refType = 4; sourceTree = ""; }; 85687CCC107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RSSArticle+Storage.h"; refType = 4; sourceTree = ""; }; 85687CCD107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RSSArticle+Storage.m"; refType = 4; sourceTree = ""; }; 85687CCE107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSArticleCreationListener.h; refType = 4; sourceTree = ""; }; 85687CCF107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSSArticleCreationListener.m; refType = 4; sourceTree = ""; }; 85687CD0107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSArticleProtocol.h; refType = 4; sourceTree = ""; }; 85687CD1107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSFactory.h; refType = 4; sourceTree = ""; }; 85687CD2107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSSFactory.m; refType = 4; sourceTree = ""; }; 85687CD3107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSFeed.h; refType = 4; sourceTree = ""; }; 85687CD4107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSSFeed.m; refType = 4; sourceTree = ""; }; 85687CD5107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RSSFeed+Fetching.h"; refType = 4; sourceTree = ""; }; 85687CD6107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RSSFeed+Fetching.m"; refType = 4; sourceTree = ""; }; 85687CD7107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RSSFeed+Storage.h"; refType = 4; sourceTree = ""; }; 85687CD8107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RSSFeed+Storage.m"; refType = 4; sourceTree = ""; }; 85687CD9107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSFeedProtocol.h; refType = 4; sourceTree = ""; }; 85687CDA107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSKit.h; refType = 4; sourceTree = ""; }; 85687CDB107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RSSLinks.h; refType = 4; sourceTree = ""; }; 85687CDC107BF59000B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSSLinks.m; refType = 4; sourceTree = ""; }; 85687CDD107BF59000B55A9A = { fileRef = 85687CB8107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CDE107BF59000B55A9A = { fileRef = 85687CB9107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CDF107BF59000B55A9A = { fileRef = 85687CBA107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CE0107BF59000B55A9A = { fileRef = 85687CBB107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CE1107BF59000B55A9A = { fileRef = 85687CBC107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CE2107BF59000B55A9A = { fileRef = 85687CBD107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CE3107BF59000B55A9A = { fileRef = 85687CBE107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CE4107BF59000B55A9A = { fileRef = 85687CBF107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CE5107BF59000B55A9A = { fileRef = 85687CC0107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CE6107BF59000B55A9A = { fileRef = 85687CC1107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CE7107BF59000B55A9A = { fileRef = 85687CC2107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CE8107BF59000B55A9A = { fileRef = 85687CC3107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CE9107BF59000B55A9A = { fileRef = 85687CC4107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CEA107BF59000B55A9A = { fileRef = 85687CC5107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CEB107BF59000B55A9A = { fileRef = 85687CC6107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CEC107BF59000B55A9A = { fileRef = 85687CC7107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CED107BF59000B55A9A = { fileRef = 85687CC8107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CEE107BF59000B55A9A = { fileRef = 85687CC9107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CEF107BF59000B55A9A = { fileRef = 85687CCA107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF0107BF59000B55A9A = { fileRef = 85687CCB107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CF1107BF59000B55A9A = { fileRef = 85687CCC107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF2107BF59000B55A9A = { fileRef = 85687CCD107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CF3107BF59000B55A9A = { fileRef = 85687CCE107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF4107BF59000B55A9A = { fileRef = 85687CCF107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CF5107BF59000B55A9A = { fileRef = 85687CD0107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF6107BF59000B55A9A = { fileRef = 85687CD1107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF7107BF59000B55A9A = { fileRef = 85687CD2107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CF8107BF59000B55A9A = { fileRef = 85687CD3107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CF9107BF59000B55A9A = { fileRef = 85687CD4107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CFA107BF59000B55A9A = { fileRef = 85687CD5107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CFB107BF59000B55A9A = { fileRef = 85687CD6107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CFC107BF59000B55A9A = { fileRef = 85687CD7107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CFD107BF59000B55A9A = { fileRef = 85687CD8107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687CFE107BF59000B55A9A = { fileRef = 85687CD9107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687CFF107BF59000B55A9A = { fileRef = 85687CDA107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687D00107BF59000B55A9A = { fileRef = 85687CDB107BF59000B55A9A; isa = PBXBuildFile; settings = { ATTRIBUTES = ( Public, ); }; }; 85687D01107BF59000B55A9A = { fileRef = 85687CDC107BF59000B55A9A; isa = PBXBuildFile; settings = { }; }; 85687EB4107C0C0E00B55A9A = { fileEncoding = 30; isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GNUstep.h; refType = 4; sourceTree = ""; }; 85687EB5107C0C0E00B55A9A = { fileRef = 85687EB4107C0C0E00B55A9A; isa = PBXBuildFile; settings = { }; }; //850 //851 //852 //853 //854 //8D0 //8D1 //8D2 //8D3 //8D4 8DC2EF4F0486A6940098B216 = { buildPhases = ( 8DC2EF500486A6940098B216, 8DC2EF520486A6940098B216, 8DC2EF540486A6940098B216, 8DC2EF560486A6940098B216, ); buildRules = ( ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_CW_ASM_SYNTAX = NO; GCC_ENABLE_CPP_EXCEPTIONS = NO; GCC_ENABLE_CPP_RTTI = NO; GCC_ENABLE_PASCAL_STRINGS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_MODEL_TUNING = G3; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = RSSKit_Prefix.pch; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_STYLE = DYNAMIC; PRODUCT_NAME = RSSKit; WRAPPER_EXTENSION = framework; }; dependencies = ( ); isa = PBXNativeTarget; name = RSSKit; productInstallPath = "$(HOME)/Library/Frameworks"; productName = RSSKit; productReference = 8DC2EF5B0486A6940098B216; productType = "com.apple.product-type.framework"; }; 8DC2EF500486A6940098B216 = { buildActionMask = 2147483647; files = ( 85687CDD107BF59000B55A9A, 85687CDF107BF59000B55A9A, 85687CE1107BF59000B55A9A, 85687CE3107BF59000B55A9A, 85687CE5107BF59000B55A9A, 85687CE7107BF59000B55A9A, 85687CE9107BF59000B55A9A, 85687CEB107BF59000B55A9A, 85687CED107BF59000B55A9A, 85687CEF107BF59000B55A9A, 85687CF1107BF59000B55A9A, 85687CF3107BF59000B55A9A, 85687CF5107BF59000B55A9A, 85687CF6107BF59000B55A9A, 85687CF8107BF59000B55A9A, 85687CFA107BF59000B55A9A, 85687CFC107BF59000B55A9A, 85687CFE107BF59000B55A9A, 85687CFF107BF59000B55A9A, 85687D00107BF59000B55A9A, 85687EB5107C0C0E00B55A9A, ); isa = PBXHeadersBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 8DC2EF520486A6940098B216 = { buildActionMask = 2147483647; files = ( 8DC2EF530486A6940098B216, ); isa = PBXResourcesBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 8DC2EF530486A6940098B216 = { fileRef = 089C1666FE841158C02AAC07; isa = PBXBuildFile; settings = { }; }; 8DC2EF540486A6940098B216 = { buildActionMask = 2147483647; files = ( 85687CDE107BF59000B55A9A, 85687CE0107BF59000B55A9A, 85687CE2107BF59000B55A9A, 85687CE4107BF59000B55A9A, 85687CE6107BF59000B55A9A, 85687CE8107BF59000B55A9A, 85687CEA107BF59000B55A9A, 85687CEC107BF59000B55A9A, 85687CEE107BF59000B55A9A, 85687CF0107BF59000B55A9A, 85687CF2107BF59000B55A9A, 85687CF4107BF59000B55A9A, 85687CF7107BF59000B55A9A, 85687CF9107BF59000B55A9A, 85687CFB107BF59000B55A9A, 85687CFD107BF59000B55A9A, 85687D01107BF59000B55A9A, ); isa = PBXSourcesBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 8DC2EF560486A6940098B216 = { buildActionMask = 2147483647; files = ( 8DC2EF570486A6940098B216, ); isa = PBXFrameworksBuildPhase; runOnlyForDeploymentPostprocessing = 0; }; 8DC2EF570486A6940098B216 = { fileRef = 1058C7B1FEA5585E11CA2CBB; isa = PBXBuildFile; settings = { }; }; 8DC2EF5A0486A6940098B216 = { fileEncoding = 4; isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; refType = 4; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 = { explicitFileType = wrapper.framework; includeInIndex = 0; isa = PBXFileReference; path = RSSKit.framework; refType = 3; sourceTree = BUILT_PRODUCTS_DIR; }; }; rootObject = 0867D690FE84028FC02AAC07; } RSSKit-0.4/Tests004075500017500000012000000000001177352166000130265ustar00multixusersRSSKit-0.4/Tests/CVS004075500017500000012000000000001177352166000134615ustar00multixusersRSSKit-0.4/Tests/CVS/Root010064400017500000012000000000631156173456600144100ustar00multixusers:ext:rmottola@cvs.savannah.nongnu.org:/sources/gap RSSKit-0.4/Tests/CVS/Repository010064400017500000012000000000261156173456600156430ustar00multixusersgap/libs/RSSKit/Tests RSSKit-0.4/Tests/CVS/Entries010064400017500000012000000007551177352166000151000ustar00multixusers/GNUmakefile/1.1/Sat Mar 14 22:26:37 2009// /GNUstep.h/1.1/Sat Mar 14 22:26:37 2009// /RDFTests.h/1.1/Sat Mar 14 22:26:37 2009// /RDFTests.m/1.1/Sat Mar 14 22:26:37 2009// /README.txt/1.1/Sat Mar 14 22:26:37 2009// /RSSKitTests.h/1.1/Sat Mar 14 22:26:37 2009// /RSSKitTests.m/1.1/Sat Mar 14 22:26:37 2009// /RSSTests.h/1.1/Sat Mar 14 22:26:37 2009// /RSSTests.m/1.1/Sat Mar 14 22:26:37 2009// /createResourcesList.sh/1.1/Sat Mar 14 22:26:37 2009// /testrun.sh/1.1/Sat Mar 14 22:26:38 2009// D RSSKit-0.4/Tests/CVS/Template010064400017500000012000000000001177352165300152230ustar00multixusersRSSKit-0.4/Tests/GNUmakefile010064400017500000012000000020331115702743500151470ustar00multixusers include $(GNUSTEP_MAKEFILES)/common.make ADDITIONAL_OBJCFLAGS = -Wno-import BUNDLE_NAME = RSSKitTests RSSKitTests_OBJC_FILES= RSSKitTests.m RDFTests.m RSSTests.m RSSKitTests_HEADER_FILES = RSSKitTests.h RDFTests.h RSSTests.h ifeq ($(FOUNDATION_LIB), apple) RSSKitTests_OBJC_LIBS += -framework UnitKit -lRSSKit else RSSKitTests_OBJC_LIBS = -lUnitKit -lRSSKit endif RSSKitTests_RESOURCE_FILES = \ Resources/tests/wellformed/rdf/rdf_channel_description.xml \ Resources/tests/wellformed/rdf/rdf_channel_title.xml \ Resources/tests/wellformed/rdf/rdf_channel_link.xml \ Resources/tests/wellformed/rdf/rdf_item_description.xml \ Resources/tests/wellformed/rdf/rdf_item_link.xml \ Resources/tests/wellformed/rdf/rdf_item_rdf_about.xml \ Resources/tests/wellformed/rdf/rdf_item_title.xml \ Resources/tests/wellformed/rss/channel_title.xml \ Resources/tests/wellformed/rss/channel_title_apos.xml \ Resources/tests/wellformed/rss/channel_title_gt.xml \ Resources/tests/wellformed/rss/channel_title_lt.xml \ include $(GNUSTEP_MAKEFILES)/bundle.make RSSKit-0.4/Tests/GNUstep.h010064400017500000012000000046121115702743500146000ustar00multixusers/* GNUstep.h - macros to make easier to port gnustep apps to macos-x Copyright (C) 2001 Free Software Foundation, Inc. Written by: Nicola Pero Date: March, October 2001 This file is part of GNUstep. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __GNUSTEP_GNUSTEP_H_INCLUDED_ #define __GNUSTEP_GNUSTEP_H_INCLUDED_ #ifndef GNUSTEP #define AUTORELEASE(object) [object autorelease] #define TEST_AUTORELEASE(object) ({ if (object) [object autorelease]; }) #define RELEASE(object) [object release] #define TEST_RELEASE(object) ({ if (object) [object release]; }) #define RETAIN(object) [object retain] #define TEST_RETAIN(object) ({ if (object) [object retain]; }) #define ASSIGN(object,value) ({\ id __value = (id)(value); \ id __object = (id)(object); \ if (__value != __object) \ { \ if (__value != nil) \ { \ [__value retain]; \ } \ object = __value; \ if (__object != nil) \ { \ [__object release]; \ } \ } \ }) #define ASSIGNCOPY(object,value) ASSIGN(object, [[value copy] autorelease]); #define DESTROY(object) ({ \ if (object) \ { \ id __o = object; \ object = nil; \ [__o release]; \ } \ }) #define CREATE_AUTORELEASE_POOL(X) \ NSAutoreleasePool *(X) = [NSAutoreleasePool new] #define NSLocalizedString(key, comment) \ [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil] #define _(X) NSLocalizedString (X, nil) #define __(X) X #define NSLocalizedStaticString(X, Y) X #endif /* GNUSTEP */ #endif /* __GNUSTEP_GNUSTEP_H_INCLUDED_ */ RSSKit-0.4/Tests/RDFTests.h010064400017500000012000000007761115702743500147200ustar00multixusers/** -*-objc-*- * RSSKit Test Suite by Guenther Noack * */ #import #import #import #import "RSSKitTests.h" @interface RDFTests : NSObject { } -(void)testChannelDesc; -(void)testChannelLink; -(void)testChannelTitle; -(void)testItemDesc; -(void)testItemLink; -(void)testItemRDFAbout; -(void)testItemTitle; /* -(void)testRSS090ChannelTitle; -(void)testRSS090ItemTitle; -(void)testRSSV10; -(void)testRSSV10NotDefaultNS; */ @end RSSKit-0.4/Tests/RDFTests.m010064400017500000012000000032761115702743500147230ustar00multixusers#import "RDFTests.h" #import "GNUstep.h" /** * Runs simple tests for RDF (RSS 1.0) files. */ @implementation RDFTests -(void)testChannelDesc { FETCH(@"rdf_channel_description"); // FIXME: [feed description] is not a way to get the *description* but // to get the *title* of the feed! UKStringsEqual([feed description], @"Example description"); } -(void)testChannelLink { FETCH(@"rdf_channel_link"); UKStringsEqual([[feed feedURL] description], @"Example feed"); } -(void)testChannelTitle { FETCH(@"rdf_channel_title"); UKStringsEqual([feed description], @"Example feed"); } -(void)testItemDesc { FETCH(@"rdf_item_description"); UKTrue([feed count] > 0); RSSArticle* art = [feed articleAtIndex: 0]; UKNotNil(art); UKStringsEqual([art description], @"Example description"); } -(void)testItemLink { FETCH(@"rdf_item_link"); UKTrue([feed count] > 0); RSSArticle* art = [feed articleAtIndex: 0]; UKNotNil(art); UKStringsEqual(@"http://example.com/1", [art url]); } -(void)testItemRDFAbout { FETCH(@"rdf_item_rdf_about"); UKTrue([feed count] > 0); RSSArticle* art = [feed articleAtIndex: 0]; UKNotNil(art); // XXX: The semantics of rdf:about? Can we use this as URL? UKStringsEqual(@"http://example.org/1", [art url]); } -(void)testItemTitle { FETCH(@"rdf_item_title"); UKTrue([feed count] > 0); RSSArticle* art = [feed articleAtIndex: 0]; UKNotNil(art); UKStringsEqual([art headline], @"Example title"); } /* -(void)testRSS090ChannelTitle { } -(void)testRSS090ItemTitle { } -(void)testRSSV10 { } -(void)testRSSV10NotDefaultNS { } */ @end RSSKit-0.4/Tests/README.txt010064400017500000012000000006641115702743500146030ustar00multixusers RSSKit Test Suite ----------------- I want to test the tests you can find here: http://feedparser.org/tests/wellformed/ These tests formerly resided in the subdirectory Resources/tests. I decided to delete them, because they made the Etoile repository unneccessarily big and I was the only one to use them. If you want to use these tests, please check out an old revision of the Resources directory or get them from feedparser.org. RSSKit-0.4/Tests/RSSKitTests.h010064400017500000012000000010411115702743500154060ustar00multixusers/** -*-objc-*- * RSSKit Test Suite by Guenther Noack * */ #import #import #import /** * A category that enables RSS Feeds to read feeds from the resources */ @interface RSSFeed (Resources) +(id)feedWithResource: (NSString*)aResourceName; -(id)initWithResource: (NSString*)aResourceName; @end #define FETCH(x) \ RSSFeed* feed = \ [RSSFeed feedWithResource: (x)]; \ \ [feed fetch]; \ @interface RSSKitTests : NSObject { } - (void) testNothing; @end RSSKit-0.4/Tests/RSSKitTests.m010064400017500000012000000011001115702743500154070ustar00multixusers#import "RSSKitTests.h" #import "GNUstep.h" @implementation RSSFeed (Resources) +(id)feedWithResource: (NSString*)aResourceName { return AUTORELEASE([[self alloc] initWithResource: aResourceName]); } -(id)initWithResource: (NSString*)aResourceName { NSBundle* testsBundle = [NSBundle bundleForClass: [RSSKitTests class]]; NSString* res = [testsBundle pathForResource: aResourceName ofType: @"xml"]; NSURL* url = [NSURL fileURLWithPath: res]; return [self initWithURL: url]; } @end @implementation RSSKitTests - (void) testNothing { // UKFail(); } @end RSSKit-0.4/Tests/RSSTests.h010064400017500000012000000004411115702743500147410ustar00multixusers// -*-objc-*- #import #import #import #import "RSSKitTests.h" @interface RSSTests : NSObject { } -(void)testChannelTitle; -(void)testChannelTitleApos; -(void)testChannelTitleGt; -(void)testChannelTitleLt; @end RSSKit-0.4/Tests/RSSTests.m010064400017500000012000000007771115702743500147620ustar00multixusers#import "RSSTests.h" #import "GNUstep.h" @implementation RSSTests -(void)testChannelTitle { FETCH(@"channel_title"); UKStringsEqual([feed description], @"Example feed"); } -(void)testChannelTitleApos { FETCH(@"channel_title"); UKStringsEqual([feed description], @"Mark's title"); } -(void)testChannelTitleGt { FETCH(@"channel_title"); UKStringsEqual([feed description], @"2 > 1"); } -(void)testChannelTitleLt { FETCH(@"channel_title"); UKStringsEqual([feed description], @"1 < 2"); } @end RSSKit-0.4/Tests/createResourcesList.sh010075500017500000012000000004011115702743500174230ustar00multixusers#!/bin/sh # Produces a resource list. It's too big to put all that into the # GNUmakefile. echo 'RSSKitTests_RESOURCE_FILES = \' find Resources/ | grep xml$ | sed 's/$/ \\/' # Extra blank line so that we don't need to remove the \ from the last line echo RSSKit-0.4/Tests/testrun.sh010064400017500000012000000010221115702743600151330ustar00multixusers#!/bin/sh # When working on BSD: Run with 'bash testrun.sh', this # will not work with sh (didn't get ANSI colors to work w/ it) :-> # To get UKRunner working with correct i18n, copy the English.lproj # manually like this: # mkdir -p /opt/GNUstep/Local/Tools/Resources/ukrun # cp -v English.lproj /opt/GNUstep/Local/Tools/Resources/ukrun # English.lproj can be found somewhere in the UnitKit directory. ukrun RSSKitTests.bundle/ 2> /dev/null | sed -e $'s/Failed/\x1b[31mFAILED\x1b[39m/' -e $'s/Passed/\x1b[32mPASSED\x1b[39m/'