[fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

Lukasz Sokol el.es.cr at gmail.com
Thu Sep 26 11:11:28 CEST 2013


On 25/09/13 20:31, Michael Van Canneyt wrote:
> 
> 
> On Wed, 25 Sep 2013, Lukasz Sokol wrote:
> 
>> Hello,
>> 
[...]
>> But I'd like to know, if there is interest in making it 'more
>> sentient', e.g. as a TDataSource/TDataSet descendant directly
>> talking to (reading, at first) DOM.pas's TXMLDocument/TDOMDocument,
>> then to a THTMLSend or any such class of your liking?
> 
> I do not think that a TDataset descendent is needed. A simple
> collection based class will do just fine, and a class to handle
> transport. I have one for WebDAV, and CardDav really is not so much
> different.

So far fiddling with plain text queries, I'm consistently getting
contents of vcards that I expect to get [through REPORT method]

I think I should focus on more 'low hanging fruit' for now : building
the xml CardDAV query using the TXMLDocument* class, as I pass it to 
Synapse's THTMLSend.Document later anyway, and handling of what's
received through the same TXMLDocument*.
 
(* out of whichever *DOM.pas comes to use eventually)

When that's done, we'll think of higher levels
(one immediately comes to mind - vCard handling.)

> 
> I also do not see why you would need alterations to DOM.pas, both
> WebDav and CardDav use plain and simple XML.

I merely based my assumption on DOM.pas comment stating level3 is partially implemented...
should have worded it differently:

"It remains to be seen whether any DOM Level 3 additions will be needed into
DOM.pas since it states it's Partially Implemented"


> 
> BTW. The RFC is 6352 instead of 6532.
> 
yeah. sorry 'bout that too :)

-L.




More information about the fpc-pascal mailing list