author | zecke <zecke> | 2002-05-16 15:56:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-16 15:56:24 (UTC) |
commit | b94bd6003bf7c2024b0f254805f54ff4e52ead6e (patch) (side-by-side diff) | |
tree | 8e137366438872bbd2ca03256678c9a2d10d7517 /library/global.cpp | |
parent | 0292492b1c9570a896ac4b9acfe168724e8439f9 (diff) | |
download | opie-b94bd6003bf7c2024b0f254805f54ff4e52ead6e.zip opie-b94bd6003bf7c2024b0f254805f54ff4e52ead6e.tar.gz opie-b94bd6003bf7c2024b0f254805f54ff4e52ead6e.tar.bz2 |
Some ole docu and search for jpgs too in Resource PNG, JPG, XPM
-rw-r--r-- | library/global.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/library/global.cpp b/library/global.cpp index 4f1cc38..edb7b85 100644 --- a/library/global.cpp +++ b/library/global.cpp @@ -643,32 +643,46 @@ QString Global::stringQuote(const QString& s) r += s[i]; } r += "\""; return r; } /*! Finds all documents on the system's document directories which match the filter \a mimefilter, and appends the resulting DocLnk objects to \a folder. */ void Global::findDocuments(DocLnkSet* folder, const QString &mimefilter) { QString homedocs = QString(getenv("HOME")) + "/Documents"; DocLnkSet d(homedocs,mimefilter); folder->appendFrom(d); + /** let's do intellegint way of searching these files + * a) the user don't want to check mediums global + * b) the user wants to check but use the global options for it + * c) the user wants to check it but not this medium + * d) the user wants to check and this medium as well + * + * In all cases we need to apply a different mimefilter to + * the medium. + * a) mimefilter.isEmpty() we need to apply the responding filter + * either the global or the one on the medium + * + * b) mimefilter is set to an application we need to find out if the + * mimetypes are included in the mime mask of the medium + */ StorageInfo storage; const QList<FileSystem> &fs = storage.fileSystems(); QListIterator<FileSystem> it ( fs ); for ( ; it.current(); ++it ) { if ( (*it)->isRemovable() ) { // let's find out if we should search on it // this is a candidate look at the cf and see if we should search on it QString path = (*it)->path(); if( !checkStorage((*it)->path() + "/.opiestorage.cf" ) ) continue; DocLnkSet ide( path, mimefilter ); folder->appendFrom(ide); } } } QStringList Global::languageList() |