src/hbcore/devicedialogbase/devicedialogserver/hbpluginnamecache.cpp
changeset 30 80e4d18b72f5
parent 21 4633027730f5
equal deleted inserted replaced
28:b7da29130b0e 30:80e4d18b72f5
    69 // executed automatically after installation to get type strings. Instead application must trigger
    69 // executed automatically after installation to get type strings. Instead application must trigger
    70 // a plugin scan and name cache miss to get plugin executed.
    70 // a plugin scan and name cache miss to get plugin executed.
    71 //#define MONITOR_INSTALLATION_DIRS 1
    71 //#define MONITOR_INSTALLATION_DIRS 1
    72 
    72 
    73 // Thread that scans directories and keeps the cache current
    73 // Thread that scans directories and keeps the cache current
       
    74 /// \cond
    74 class HbPluginNameCacheThread : public QThread
    75 class HbPluginNameCacheThread : public QThread
    75 {
    76 {
    76 public:
    77 public:
    77     typedef HbPluginNameCache::ScanParameters WorkItem;
    78     typedef HbPluginNameCache::ScanParameters WorkItem;
    78 
    79 
    96     WorkItem mCurrentScan;  // directory currently scanned
    97     WorkItem mCurrentScan;  // directory currently scanned
    97     QStringList mLimitSet; // names of plugin-files found from rom-drives
    98     QStringList mLimitSet; // names of plugin-files found from rom-drives
    98     HbPluginNameCache &mNameCache;
    99     HbPluginNameCache &mNameCache;
    99     static QMutex *mMutex;
   100     static QMutex *mMutex;
   100 };
   101 };
       
   102 /// \endcond
   101 
   103 
   102 // Share lock between all instances of the cache.
   104 // Share lock between all instances of the cache.
   103 QMutex *HbPluginNameCacheThread::mMutex = 0;
   105 QMutex *HbPluginNameCacheThread::mMutex = 0;
   104 
   106 
   105 // For file name compare
   107 // For file name compare