Commit Graph
18 Commits
Author SHA1 Message Date
louiz’ 0ab40dc1ab Refactoring louloulibs and cmake
Use OBJECT libraries
Remove the louloulibs directory
Write FOUND variables in the cache
2017-03-14 21:45:23 +01:00
Florent Le Coz f0e07beacb Forgot to remove some XMPP files that are now in louloulibs instead 2015-03-02 10:21:01 +01:00
Florent Le Coz 6a2240f593 Properly sanitize everything in the XML we send to the XMPP server
in this order:
- Make sure it is utf-8 encoded
- Remove all chars that are invalid in XML
- Escape all XML special chars (&'"<>)
2015-02-26 04:58:07 +01:00
Florent Le Coz 720e31a511 Fix a few issues reported by static analyzers 2014-12-17 13:37:57 +01:00
Florent Le Coz d33a3b7d35 XmlNode::get_children, to get a list of matching children instead of the first 2014-05-30 04:00:29 +02:00
Florent Le Coz 6bde78b574 XmlNode’s copy constructor now recursively copies the children nodes as well 2014-05-30 04:00:23 +02:00
Florent Le Coz eb9a201870 Implement the support for adhoc commands
We have two basic example commands. But it’s not entirely finished because
there are some error checks that we don’t do.

ref #2521
2014-05-30 03:58:17 +02:00
Florent Le Coz 1c93afc9a7 Change the way the namespaces are handled in the XmlNode class 2014-05-28 17:40:45 +02:00
Florent Le Coz df765faab9 Only call get_last_child() if the node has children
Explain that the behaviour is otherwise undefined, in the comment.
2014-05-15 00:47:20 +02:00
Florent Le Coz bafde1af9f Stanza:get_name() only returns the name of the tag, without the namespace 2014-05-15 00:32:31 +02:00
Florent Le Coz f00f5c3ffb Do not use exceptions for missing tags, improvement in code simplicity 2014-04-11 23:06:13 +02:00
Florent Le Coz a4c845ab6c Use the logger everywhere 2013-12-03 19:15:37 +01:00
Florent Le Coz e6f20d3c0f Implement IRC format to xhtml-im conversion
The generated XML is very verbose because each IRC formatting tag makes us
close a <span/> element and reopen it with the new style applied.  However,
this works quite well and is easy to implement.
2013-11-28 01:18:26 +01:00
Florent Le Coz 959291afe6 Set the parent of a node passed to add_child, and return it for conveniance 2013-11-27 00:37:23 +01:00
Florent Le Coz 2be4811d14 Unescape XML before sending messages over IRC 2013-11-11 00:29:44 +01:00
Florent Le Coz 3d92360310 Use the Expat library directly instead of relying on expatpp
And now we handle namespaces, yay.
And a nice little test.
2013-11-10 02:30:22 +01:00
Florent Le Coz a418b6ed5d Send and receive messages
Also correctly respond to PING with the id, escape some XML content, but not
always
2013-11-07 01:53:09 +01:00
Florent Le Coz 5bbd34a3a9 Add an XmppParser, and Stanza classes
Generate events on stanza and stream open/close.
Create Stanza and serialize them.

Note: XML namespaces are not handled yet.
2013-11-03 17:19:48 +01:00