Revision 45:0033259c6772 common/FeatureFileIndex.h
| common/FeatureFileIndex.h | ||
|---|---|---|
| 6 | 6 |
#include "Objects.h" |
| 7 | 7 |
|
| 8 | 8 |
#include <dataquay/BasicStore.h> |
| 9 |
#include <dataquay/TransactionalStore.h> |
|
| 9 | 10 |
|
| 10 | 11 |
#include <QMutex> |
| 11 | 12 |
|
| 12 | 13 |
namespace ClassicalData {
|
| 13 | 14 |
|
| 14 |
class FeatureFileIndex |
|
| 15 |
class FeatureFileIndex : public QObject
|
|
| 15 | 16 |
{
|
| 17 |
Q_OBJECT |
|
| 18 |
|
|
| 16 | 19 |
public: |
| 17 | 20 |
static FeatureFileIndex *getInstance(); |
| 18 | 21 |
|
| 19 | 22 |
FeatureFileIndex(); |
| 20 | 23 |
~FeatureFileIndex(); |
| 21 | 24 |
|
| 22 |
void loadFor(TrackFile *, Dataquay::BasicStore *); |
|
| 25 |
void loadFor(AudioFile *, Dataquay::Store *); |
|
| 26 |
|
|
| 27 |
public slots: |
|
| 28 |
void featureFileAdded(QString filepath); |
|
| 23 | 29 |
|
| 24 | 30 |
private: |
| 25 | 31 |
QMutex m_mutex; |
| 26 | 32 |
QString m_indexFileName; |
| 27 |
Dataquay::BasicStore *m_index; |
|
| 33 |
Dataquay::BasicStore *m_bs; |
|
| 34 |
Dataquay::TransactionalStore *m_index; |
|
| 28 | 35 |
QString getIndexFileName(); |
| 29 | 36 |
QString getFeatureDirectoryName(); |
| 30 | 37 |
void updateIndex(); |
| 38 |
void index(QUrl); |
|
| 31 | 39 |
}; |
| 32 | 40 |
|
| 33 | 41 |
} |
Also available in: Unified diff