diff options
Diffstat (limited to 'src/plugins/cpaster/pastebindotcomprotocol.cpp')
-rw-r--r-- | src/plugins/cpaster/pastebindotcomprotocol.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp index fb3d60ba92..ed4db9cf46 100644 --- a/src/plugins/cpaster/pastebindotcomprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp @@ -99,11 +99,15 @@ static inline QByteArray expirySpecification(int expiryDays) return QByteArray("N"); } -void PasteBinDotComProtocol::paste(const QString &text, - ContentType ct, int expiryDays, - const QString & /* username */, // Not used unless registered user - const QString &comment, - const QString &description) +void PasteBinDotComProtocol::paste( + const QString &text, + ContentType ct, + int expiryDays, + bool publicPaste, + const QString & /* username */, // Not used unless registered user + const QString &comment, + const QString &description + ) { Q_UNUSED(comment) Q_UNUSED(description) @@ -118,6 +122,7 @@ void PasteBinDotComProtocol::paste(const QString &text, pasteData += format(ct); pasteData += "api_paste_name="; // Title or name. pasteData += QUrl::toPercentEncoding(description); + pasteData.append("&api_paste_private=").append(QByteArray(publicPaste ? "0" : "1")); pasteData += "&api_paste_code="; pasteData += QUrl::toPercentEncoding(fixNewLines(text)); // fire request |