author | zecke <zecke> | 2003-08-28 14:33:09 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:33:09 (UTC) |
commit | 2394427a5c34384131922fb6c2a1d35dee3e1197 (patch) (side-by-side diff) | |
tree | c70a5153f7a3b53e864226b521e5cef50855198b | |
parent | f3c6caca7e96488ad9e1873e9c853f11b17a944e (diff) | |
download | opie-2394427a5c34384131922fb6c2a1d35dee3e1197.zip opie-2394427a5c34384131922fb6c2a1d35dee3e1197.tar.gz opie-2394427a5c34384131922fb6c2a1d35dee3e1197.tar.bz2 |
Make it compile with Opie
-rw-r--r-- | core/launcher/documentlist.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp index 033dd10..7f9366e 100644 --- a/core/launcher/documentlist.cpp +++ b/core/launcher/documentlist.cpp @@ -14,21 +14,22 @@ ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "documentlist.h" #include "serverinterface.h" +#include "launcherglobal.h" #include <qtopia/mimetype.h> #include <qtopia/resource.h> #include <qtopia/global.h> -#include <qtopia/categories.h> +#include <qtopia/private/categories.h> #include <qtopia/qpeapplication.h> #include <qtopia/applnk.h> #include <qtopia/storage.h> #ifdef Q_WS_QWS #include <qtopia/qcopenvelope_qws.h> #endif #include <qtimer.h> @@ -237,17 +238,17 @@ void DocumentList::reloadAppLnks() QListIterator<AppLnk> itapp( appLnkSet->children() ); AppLnk* l; while ( (l=itapp.current()) ) { ++itapp; if ( d->sendAppLnks && d->serverGui ) d->serverGui->applicationAdded( l->type(), *l ); } - if ( d->sendAppLnks && d->serverGui ) + if ( d->sendAppLnks && d->serverGui ) d->serverGui->applicationScanningProgress( 100 ); } void DocumentList::reloadDocLnks() { if ( !d->scanDocs ) return; @@ -258,26 +259,26 @@ void DocumentList::reloadDocLnks() rescan(); } void DocumentList::linkChanged( QString arg ) { //qDebug( "linkchanged( %s )", arg.latin1() ); - if ( arg.isNull() || Global::isAppLnkFileName( arg ) ) { + if ( arg.isNull() || Opie::Global::isAppLnkFileName( arg ) ) { reloadAppLnks(); } else { const QList<DocLnk> &list = d->dls.children(); QListIterator<DocLnk> it( list ); while ( it.current() ) { DocLnk *doc = it.current(); ++it; - if ( ( doc->linkFileKnown() && doc->linkFile() == arg ) + if ( ( doc->linkFileKnown() && doc->linkFile() == arg ) || ( doc->fileKnown() && doc->file() == arg ) ) { //qDebug( "found old link" ); DocLnk* dl = new DocLnk( arg ); // add new one if it exists and matches the mimetype if ( d->store( dl ) ) { // Existing link has been changed, send old link ref and a ref // to the new link //qDebug( "change case" ); @@ -451,18 +452,18 @@ void DocumentListPrivate::initialize() searchDepth = -1; state = Find; dit = 0; } DocumentListPrivate::~DocumentListPrivate() { - for ( int i = 0; i < MAX_SEARCH_DEPTH; i++ ) - if ( listDirs[i] ) + for ( int i = 0; i < MAX_SEARCH_DEPTH; i++ ) + if ( listDirs[i] ) delete listDirs[i]; delete dit; } void DocumentListPrivate::estimatedPercentScanned() { double overallProgress = 0.0; @@ -617,17 +618,17 @@ const DocLnk *DocumentListPrivate::iterate() if ( c == MAGIC_NUMBER ) { DocLnk* dl = new DocLnk; QFileInfo fi( dit->currentKey() ); dl->setFile( fi.filePath() ); dl->setName( fi.baseName() ); if ( store(dl) ) { ++*dit; iterationI++; - if ( serverGui ) + if ( serverGui ) serverGui->documentScanningProgress( 75 + (25*iterationI)/iterationCount ); return dl; } } iterationI++; } delete dit; |