Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DocumentList Class Reference

#include </home/clem/local/src/opie/core/launcher/documentlist.h>

Collaboration diagram for DocumentList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DocumentList (ServerInterface *serverGui, bool scanDocs=TRUE, QObject *parent=0, const char *name=0)
 ~DocumentList ()
void linkChanged (QString link)
void restoreDone ()
void storageChanged ()
void sendAllDocLinks ()
void reloadAppLnks ()
void reloadDocLnks ()
void reforceDocuments ()
void DiffAppLnks ()
void start ()
void pause ()
void resume ()
void rescan ()

Static Public Attributes

static AppLnkSetappLnkSet = 0

Protected Member Functions

void timerEvent (QTimerEvent *te)

Private Slots

void startInitialScan ()

Private Member Functions

void add (const DocLnk &doc)

Private Attributes

DocumentListPrivated

Constructor & Destructor Documentation

DocumentList::DocumentList ServerInterface serverGui,
bool  scanDocs = TRUE,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 110 of file documentlist.cpp.

References appLnkSet, MimeType::appsFolderName(), d, DocumentListPrivate::needToSendAllDocLinks, odebug, oendl, Config::readBoolEntry(), DocumentListPrivate::scanDocs, Config::setGroup(), and startInitialScan().

DocumentList::~DocumentList  ) 
 

Definition at line 132 of file documentlist.cpp.

References appLnkSet, and d.


Member Function Documentation

void DocumentList::add const DocLnk doc  )  [private]
 

Definition at line 139 of file documentlist.cpp.

References d, ServerInterface::documentAdded(), QFile::exists(), AppLnk::file(), and DocumentListPrivate::serverGui.

Referenced by linkChanged(), and timerEvent().

void DocumentList::DiffAppLnks  ) 
 

Definition at line 349 of file documentlist.cpp.

References ServerInterface::applicationAdded(), ServerInterface::applicationRemoved(), appLnkSet, MimeType::appsFolderName(), QValueList< T >::begin(), AppLnkSet::children(), QValueList< T >::contains(), d, QValueList< T >::end(), i, QString::isNull(), AppLnk::name(), name, odebug, oendl, QValueList< T >::remove(), DocumentListPrivate::sendAppLnks, DocumentListPrivate::serverGui, SmallIcon(), AppLnk::type(), ServerInterface::typeAdded(), AppLnkSet::typeBigPixmap(), AppLnkSet::typeName(), AppLnkSet::typePixmap(), ServerInterface::typeRemoved(), and AppLnkSet::types().

Referenced by storageChanged().

void DocumentList::linkChanged QString  link  ) 
 

Definition at line 294 of file documentlist.cpp.

References add(), DocLnkSet::children(), d, DocumentListPrivate::dls, ServerInterface::documentChanged(), ServerInterface::documentRemoved(), AppLnk::file(), AppLnk::fileKnown(), QString::isNull(), AppLnk::linkFile(), AppLnk::linkFileKnown(), list, odebug, oendl, reloadAppLnks(), AppLnkSet::remove(), DocumentListPrivate::serverGui, and DocumentListPrivate::store().

Referenced by Server::systemMsg().

void DocumentList::pause  ) 
 

Definition at line 152 of file documentlist.cpp.

References d, and DocumentListPrivate::tid.

Referenced by rescan(), and timerEvent().

void DocumentList::reforceDocuments  ) 
 

Definition at line 286 of file documentlist.cpp.

References d, Config::readBoolEntry(), reloadDocLnks(), DocumentListPrivate::scanDocs, and Config::setGroup().

Referenced by Server::systemMsg().

void DocumentList::reloadAppLnks  ) 
 

Definition at line 223 of file documentlist.cpp.

References ServerInterface::allApplicationsRemoved(), ServerInterface::applicationAdded(), ServerInterface::applicationScanningProgress(), appLnkSet, MimeType::appsFolderName(), QValueList< T >::begin(), AppLnkSet::children(), QValueList< T >::contains(), d, QValueList< T >::end(), QString::isNull(), l, name, QValueList< T >::remove(), DocumentListPrivate::sendAppLnks, DocumentListPrivate::serverGui, SmallIcon(), AppLnk::type(), ServerInterface::typeAdded(), AppLnkSet::typeBigPixmap(), AppLnkSet::typeName(), AppLnkSet::typePixmap(), ServerInterface::typeRemoved(), and AppLnkSet::types().

Referenced by linkChanged(), Server::receiveTaskBar(), restoreDone(), and startInitialScan().

void DocumentList::reloadDocLnks  ) 
 

Definition at line 273 of file documentlist.cpp.

References ServerInterface::allDocumentsRemoved(), d, ServerInterface::documentScanningProgress(), rescan(), DocumentListPrivate::scanDocs, DocumentListPrivate::sendDocLnks, and DocumentListPrivate::serverGui.

Referenced by reforceDocuments(), restoreDone(), startInitialScan(), and storageChanged().

void DocumentList::rescan  ) 
 

Definition at line 188 of file documentlist.cpp.

References d, DocumentListPrivate::initialize(), oendl, owarn, pause(), and resume().

Referenced by reloadDocLnks().

void DocumentList::restoreDone  ) 
 

Definition at line 343 of file documentlist.cpp.

References reloadAppLnks(), and reloadDocLnks().

Referenced by Server::systemMsg().

void DocumentList::resume  ) 
 

Definition at line 160 of file documentlist.cpp.

References d, and DocumentListPrivate::tid.

Referenced by rescan(), and start().

void DocumentList::sendAllDocLinks  ) 
 

Definition at line 446 of file documentlist.cpp.

References AppLnk::categories(), DocLnkSet::children(), d, DocumentListPrivate::dls, end, QFileInfo::exists(), f, AppLnk::file(), QString::find(), IO_ReadOnly, QStringList::join(), Categories::labels(), QString::left(), AppLnk::linkFile(), AppLnk::linkFileKnown(), QString::mid(), AppLnk::name(), DocumentListPrivate::needToSendAllDocLinks, QFile::open(), QTextStream::read(), QTextStream::setEncoding(), QFileInfo::size(), start(), DocumentListPrivate::tid, TRUE, AppLnk::type(), and QTextStream::UnicodeUTF8.

Referenced by Server::systemMsg(), and timerEvent().

void DocumentList::start  ) 
 

Definition at line 146 of file documentlist.cpp.

References resume().

Referenced by sendAllDocLinks().

void DocumentList::startInitialScan  )  [private, slot]
 

Definition at line 126 of file documentlist.cpp.

References reloadAppLnks(), and reloadDocLnks().

Referenced by DocumentList().

void DocumentList::storageChanged  ) 
 

Definition at line 427 of file documentlist.cpp.

References DiffAppLnks(), QTime::elapsed(), odebug, oendl, reloadDocLnks(), QTime::start(), and t.

Referenced by Server::postDirectAccess(), and Server::storageChanged().

void DocumentList::timerEvent QTimerEvent *  te  )  [protected]
 

Definition at line 197 of file documentlist.cpp.

References ServerInterface::aboutToAddBegin(), ServerInterface::aboutToAddEnd(), add(), d, ServerInterface::documentScanningProgress(), i, DocumentListPrivate::iterate(), DocumentListPrivate::needToSendAllDocLinks, pause(), sendAllDocLinks(), DocumentListPrivate::serverGui, and DocumentListPrivate::tid.


Member Data Documentation

AppLnkSet * DocumentList::appLnkSet = 0 [static]
 

Definition at line 61 of file documentlist.cpp.

Referenced by ServerInterface::appLnks(), DiffAppLnks(), DocumentList(), reloadAppLnks(), AppLauncher::sigStopped(), and ~DocumentList().

DocumentListPrivate* DocumentList::d [private]
 

Definition at line 73 of file documentlist.h.

Referenced by add(), DiffAppLnks(), DocumentList(), linkChanged(), pause(), reforceDocuments(), reloadAppLnks(), reloadDocLnks(), rescan(), resume(), sendAllDocLinks(), timerEvent(), and ~DocumentList().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:34 2005 for OPIE by  doxygen 1.4.2