/*
-@version: 0.5
+@version: 0.6
@author: Sudheer K. <scifi1947 at gmail.com>
@license: GNU General Public License
"VICaR - Invalid request. Phone Number is empty.");
return channel_path;
}
+ else if (strNumber == "publish" || strNumber == "subscribe"){
+ //Deny the persistent Mission control requests to publish and subscribe
+ QString strError = "VICaR - Invalid request. " + strNumber + " is not supported.";
+ sendErrorReply("org.freedesktop.Telepathy.Error.InvalidArgument",
+ strError);
+ return channel_path;
+
+ }
//Only allow requests with handle type as contact
QVariant vTargetHandleType = request.value("org.freedesktop.Telepathy.Channel.TargetHandleType");
sendErrorReply("org.freedesktop.Telepathy.Error.InvalidArgument",
strMessage);
+ return channel_path;
}
+
/*
Send an error reply to Tp Client (Mission Control) to force it to close the active channel.
Once it recieves the reply, the client does not bother what we return.