XMPP PubSub Plugin

Juraj Oravec jurajoravec at mailo.com
Sun Nov 10 10:17:34 GMT 2024


> Good evening, everyone!

Hello Schimon,

> This is a Python script which receives an XMPP URI and outputs XMPP
> PubSub content as HTML.
> 
> I suppose, that this is how Dillo requires plugins to work.
> 
> As for Falkon, I think, that it would be nice to integrate XMPP into
> Falkon.
> 
> Could anyone kindly advise on how to implement this script in a
> fashion which would allow to open XMPP Query URIs directly from the
> Falkon URL bar?

Simple, you register a scheme handler for xmpp scheme with a plugin.
Take a look at the KDE plugin.

1. Register the scheme to falkon, manual process at the moment,
If not registered regiuster and it will work after restart.
https://git.sgorava.xyz/Falkon/falkonOfficial/src/branch/master/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp#L97

2. Install a scheme handler
https://git.sgorava.xyz/Falkon/falkonOfficial/src/branch/master/src/plugins/KDEFrameworksIntegration/kdeframeworksintegrationplugin.cpp#L86

3. Make the scheme handler
https://git.sgorava.xyz/Falkon/falkonOfficial/src/branch/master/src/plugins/KDEFrameworksIntegration/kioschemehandler.h
https://git.sgorava.xyz/Falkon/falkonOfficial/src/branch/master/src/plugins/KDEFrameworksIntegration/kioschemehandler.cpp

There are more examples with falkon:// adblock:// internal pages,
look around for scheme handler related code.

PS: It looks liek KIO stuff is not properly implemented in KDE plugin,
so it will not work, BUT the scheme handler is called properly.


> Best regards,
> Schimon

PS: I hope I did not misunderstand what you want to do.

Best regards,
Juraj

> On Sat, 9 Nov 2024 20:29:09 +0200
> 
> Schimon Jehudah <sch at fedora.email> wrote:
> > Good evening!
> > 
> > I have made an XMPP plugin for Dillo.
> > 
> > I would be grateful for your feedbacks.
> > 
> > I would also need instructions as to how to implement
> > configurations.
> > 
> > Compulsory options:
> > 
> > * JabberID
> > * Password
> > 
> > Possible options:
> > 
> > * Connection
> > * Timeout
> > 
> > I consider to add an interface for JabberID and Password, and I
> > would
> > rather receive instructions from the staff.
> > 
> > It is posible to use anonymous accounts, such as
> > anon at anon.jabberfr.org, yet I would rather not do so, because:
> > 
> > * Most of the anonymous accounts have PubSub disabled, which is
> > exactly the needed feature which this plugin provides.
> > * I do not want to rely on anonymous accounts or any server, because
> > of changes that might occur in any future.
> > 
> > P.S. I did not think, that I would be sending a plugin as early as
> > now.
> > 
> > Kind regards,
> > Schimon
> > 
> > On Thu, 7 Nov 2024 07:45:33 +0200
> > 
> > Schimon Jehudah <sch at fedora.email> wrote:
> > > Good day, to one and all!
> > > 
> > > My name is Schimon, I am a pianist, attorney at law, and I also
> > > work
> > > on software that mainly involve the technologies of Syndication
> > > and
> > > XMPP.
> > > 
> > > My current intention, is to design an XMPP client, based on
> > > Slixmpp,
> > > to allow Dillo to interact with Atom Over XMPP (XEP-0277 and
> > > XEP-0472).
> > > 
> > > Atom Over XMPP specifies storage of textual content  (be it text
> > > or
> > > HTML) on XMPP PubSub nodes. It is useful for publishing (see
> > > Libervia, Movim, Rivista XJP), annotating resources (see Blasta)
> > > and for any sort of mean which may require textual content.
> > > 
> > > References:
> > > https://blasta.woodpeckersnest.eu/help/about/xmpp/atomsub
> > > https://blasta.woodpeckersnest.eu/help/about/xmpp/pubsub
> > > 
> > > Projects:
> > > https://schapps.woodpeckersnest.eu/blasta/
> > > https://schapps.woodpeckersnest.eu/rivista/
> > > 
> > > I intend to utilize the Python computer language for this task.
> > > 
> > > Any help, encouragement, and especially accompanying (not in the
> > > musical sense) my efforts be welcome.
> > > 
> > > This is my first time which I intend to collaborate with Dillo
> > > developers, and I am excited by this opportunity.
> > > 
> > > Kind regards,
> > > Schimon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/falkon/attachments/20241110/dbe1a144/attachment.sig>


More information about the Falkon mailing list