I would like to get the name of the map tool currently in use in QGIS, so that my plugin can react accordingly. The idea would be to do something a bit like akbargumbira's answer to that other question, but for map tools instead of map layers. It should look like that :
if QGisMapTool.instance().value()=="Identify": do something elif QGisMapTool.instance().value()=="Measure": do something else (...)
I've searched on Stack and in the API documentation, but I have been unable to find the appropriate method so far.