]> err.no Git - sope/blobdiff - sope-ical/versitSaxDriver/VSSaxDriver.h
added support vcard type groupings
[sope] / sope-ical / versitSaxDriver / VSSaxDriver.h
index 7a1e078b416b39ca8d99e546194b322b971a283d..9fe490b69f7779054bbe6a84315be0e4ea105c06 100644 (file)
@@ -1,6 +1,6 @@
 /*
  Copyright (C) 2003-2004 Max Berger
- Copyright (C) 2004 OpenGroupware.org
+ Copyright (C) 2004-2005 OpenGroupware.org
  
  This file is part of versitSaxDriver, written for the OpenGroupware.org 
  project (OGo).
 #ifndef __versitSaxDriver_VSSaxDriver_H__
 #define __versitSaxDriver_VSSaxDriver_H__
 
-#import <Foundation/Foundation.h>
-
+#import <Foundation/NSObject.h>
 #include <SaxObjC/SaxXMLReader.h>
 
+@class NSString, NSSet, NSDictionary, NSMutableArray, NSMutableDictionary;
+
 @interface VSSaxDriver : NSObject < SaxXMLReader > 
 {
   id<NSObject,SaxContentHandler> contentHandler;
+  id<NSObject,SaxErrorHandler>   errorHandler;
   NSString                       *prefixURI;
   NSMutableArray                 *cardStack;
-  NSMutableArray                 *elementList;
+  NSMutableArray                 *elementList; /* a list of tags to be rep. */
   
   NSSet                          *attributeElements;
   NSDictionary                   *elementMapping; 
   NSMutableDictionary            *subItemMapping;
 }
 
-- (NSSet *)attributeElements;
+- (void)setElementMapping:(NSDictionary *)_mapping;
 - (void)setAttributeElements:(NSSet *)_elements;
+- (NSSet *)attributeElements;
 
 - (NSDictionary *)elementMapping;
-- (void)setElementMapping:(NSDictionary *)_mapping;
 
-- (NSString *)prefixURI;
 - (void)setPrefixURI:(NSString*)_uri;
+- (NSString *)prefixURI;
 
 - (void)setAttributeMapping:(NSDictionary *)_mapping;
 - (void)setAttributeMapping:(NSDictionary *)_mapping 
 - (void)setSubItemMapping:(NSArray *)_mapping 
   forElement:(NSString *)_element;
 
+/* events */
+
+- (void)reportDocStart;
+- (void)reportDocEnd;
+
 @end
 
 #endif /* __versitSaxDriver_VersitSaxDriver_H__ */