Logo Search packages:      
Sourcecode: qstardict version File versions  Download package

QStringList QStarDict::DictCore::availablePlugins (  )  const

Returns a list of available dictionary plugins.

Definition at line 102 of file dictcore.cpp.

Referenced by loadSettings().

{
    QStringList result;
#ifdef Q_OS_UNIX
    QFileInfoList files = QDir(QSTARDICT_PLUGINS_DIR).entryInfoList(QStringList("lib*.so"),
                  QDir::Files | QDir::NoDotAndDotDot);
    for (QFileInfoList::const_iterator i = files.begin(); i != files.end(); ++i)
        result << i->fileName().mid(3, i->fileName().length() - 6);
#elif defined Q_OS_WIN
    // TODO
#else
#error "Function DictCore::availablePlugins() is not implemented on this platform"
#endif
    return result;
}


Generated by  Doxygen 1.6.0   Back to index