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

Gilles Caulier caulier.gilles at free.fr
Wed Jun 16 11:33:54 CEST 2004


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;                
}

...
-- 
Gilles Caulier


More information about the Kde-imaging mailing list