Commit abed438c authored by Tobias Hunger's avatar Tobias Hunger

CPaster: Add Cpp protocol

Change-Id: Ic76ba31061420613683fd683125a32a3c583c84a
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 98565438
......@@ -89,6 +89,7 @@ static inline QByteArray pasteLanguage(Protocol::ContentType ct)
case Protocol::Text:
break;
case Protocol::C:
case Protocol::Cpp:
return "paste_lang=c++";
break;
case Protocol::JavaScript:
......
......@@ -102,6 +102,7 @@ static inline QByteArray format(Protocol::ContentType ct)
case Protocol::Text:
break;
case Protocol::C:
case Protocol::Cpp:
return "paste_format=cpp";
break;
case Protocol::JavaScript:
......
......@@ -55,7 +55,7 @@ class Protocol : public QObject
public:
enum ContentType {
Text, C, JavaScript, Diff, Xml
Text, C, Cpp, JavaScript, Diff, Xml
};
enum Capabilities {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment