46 assert(0&&
"should never happen");
47 return "Unknown action! (This should never happen)";
54 QString s(
"VP1ExternalRequestV1.0|");
58 tmp.replace(
"@",
"@1");
59 tmp.replace(
"|",
"@2");
63 tmp.replace(
"@",
"@1");
64 tmp.replace(
"|",
"@2");
68 tmp.replace(
"@",
"@1");
69 tmp.replace(
"|",
"@2");
80 QStringList sl = serialized.split (
"|");
81 if (sl.count()!=5||sl.at(0)!=
"VP1ExternalRequestV1.0") {
85 if (sl.at(1)==
"SHOWTAB")
87 else if (sl.at(1)==
"SHOWCHANNEL")
89 else if (sl.at(1)==
"SHOWMESSAGE")
const QString & sender() const
bool operator==(const VP1ExternalRequest &other) const
QString actionToString(const Action &) const
const QString & actioninfo() const
QString serialize() const
bool operator<(const VP1ExternalRequest &other) const
VP1ExternalRequest(const QString &sender, const QString &message, const Action &action, const QString &actioninfo)
const QString & message() const