certmanager/lib
cryptplugwrapperlist.cpp
00001 /* -*- c++ -*- 00002 00003 CRYPTPLUG - an independent cryptography plug-in 00004 API. CryptPlugWrapperList holds any number of crypto plug-ins. 00005 00006 Copyright (C) 2001 by Klarälvdalens Datakonsult AB 00007 00008 CRYPTPLUG is free software; you can redistribute it and/or modify 00009 it under the terms of GNU General Public License as published by 00010 the Free Software Foundation; version 2 of the License. 00011 00012 CRYPTPLUG is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00020 */ 00021 00022 #ifdef HAVE_CONFIG_H 00023 #include <config.h> 00024 #endif 00025 00026 #include "cryptplugwrapperlist.h" 00027 00028 CryptPlugWrapper * CryptPlugWrapperList::findForLibName( const QString & libName ) const 00029 { 00030 for ( QPtrListIterator<CryptPlugWrapper> it( *this ) ; it.current() ; ++it ) 00031 if ( (*it)->libName().find( libName, 0, false ) >= 0 ) 00032 return *it; 00033 return 0; 00034 }