Further love for Cpaster plugin

Introduce capabilities flags for Protocols, disable controls
in Pasteview accordingly. Work towards making PasteBin.com
work.
This commit is contained in:
Friedemann Kleint
2010-03-26 17:42:17 +01:00
parent 5d6074c81a
commit a4e3139688
10 changed files with 108 additions and 48 deletions

View File

@@ -181,10 +181,8 @@ void CodepasterPlugin::post()
QString comment;
QString protocolName;
PasteView view(0);
foreach (Protocol *p, m_protocols) {
view.addProtocol(p->name(), p->name() == m_settings->protocol);
}
PasteView view(m_protocols, 0);
view.setProtocol(m_settings->protocol);
if (!view.show(username, description, comment, lst))
return; // User canceled post