[Kde-imaging] New KIPI plugins category identification based on KAction detection.

Jesper K. Pedersen blackie at blackie.dk
Wed Jun 16 11:38:53 CEST 2004


On Wednesday 16 June 2004 11:33, Gilles Caulier wrote:
| Le mercredi 16 Juin 2004 11:23, Jesper K. Pedersen a écrit :
| > Otherwise, carefull host app implementor will be puzzled about when the
| > UNDEFINEDPLUGIN could occur.
|
| Look like this :
|
| KIPI::Category  Plugin_DirOperations::category( KAction* action ) const
| {
|     if ( action == m_action_OpenIn )
|        return KIPI::COLLECTIONSPLUGIN;
|
|     kdWarning( 51000 ) << "Unroconized action for plugin category
| identification" << endl;
|     return KIPI::UNDEFINEDPLUGIN;
And what I suggest is to replace this line with
      return KIPI::IMAGESPLUGIN; // no warning from compiler, please
| }


More information about the Kde-imaging mailing list