add pastebin.ca support for codepaster

- cannot list and does not need any preferences, as there is
  only one server
This commit is contained in:
Maurice Kalinowski
2009-07-31 12:13:37 +02:00
parent 435207a223
commit 5c663082cc
4 changed files with 173 additions and 2 deletions

View File

@@ -35,6 +35,7 @@
#include "pasteview.h"
#include "codepasterprotocol.h"
#include "pastebindotcomprotocol.h"
#include "pastebindotcaprotocol.h"
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/coreconstants.h>
@@ -92,6 +93,7 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *error_m
// Create the protocols and append them to the Settings
Protocol *protos[] = { new CodePasterProtocol(),
new PasteBinDotComProtocol(),
new PasteBinDotCaProtocol(),
0};
for(int i=0; protos[i] != 0; ++i) {
connect(protos[i], SIGNAL(pasteDone(QString)), this, SLOT(finishPost(QString)));