CodePaster: Add support for pastecode.xyz

Our users are running out of choices for code pasting: KDE has required
an account for quite a while now, and pastebin.ca appears to be offline,
leaving them only with the ad-heavy pastebin.com.
Therefore, we add support for a new site: pastecode.xyz seems
responsive enough, has a simple API and has been around for a bit.

[ChangeLog] Added support for the pastecode.xyz code pasting service

Change-Id: I9b622853df24c28d65c6e388f953c82fc5380fae
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Christian Kandeler
2018-08-30 17:13:54 +02:00
parent 06f3e959d3
commit fc1ecd6f82
8 changed files with 219 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
#include "kdepasteprotocol.h"
#include "pastebindotcomprotocol.h"
#include "pastebindotcaprotocol.h"
#include "pastecodedotxyzprotocol.h"
#include "fileshareprotocol.h"
#include "pasteselectdialog.h"
#include "settingspage.h"
@@ -122,7 +123,8 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *errorMe
Protocol *protos[] = {new PasteBinDotComProtocol,
new PasteBinDotCaProtocol,
new KdePasteProtocol,
new FileShareProtocol
new FileShareProtocol,
new PasteCodeDotXyzProtocol,
};
const int count = sizeof(protos) / sizeof(Protocol *);
for (int i = 0; i < count; ++i) {