|
| | FolderTagIterator (const QString &location, const QString &resourceType) |
| |
| bool | hasNext () const override |
| |
| void | next () override |
| | The iterator is only valid if next() has been called at least once.
|
| |
| KisTagSP | tag () const override |
| | A tag object on which we can set properties and which we can save.
|
| |
| virtual | ~TagIterator () |
| |
Definition at line 19 of file KisFolderStorage.cpp.
◆ FolderTagIterator()
| FolderTagIterator::FolderTagIterator |
( |
const QString & | location, |
|
|
const QString & | resourceType ) |
|
inline |
Definition at line 23 of file KisFolderStorage.cpp.
26 {
27 m_dirIterator.reset(
new QDirIterator(location +
'/' + resourceType,
29 QDir::Files | QDir::Readable,
30 QDirIterator::Subdirectories));
31 }
QList< QString > QStringList
QScopedPointer< QDirIterator > m_dirIterator
References m_dirIterator.
◆ hasNext()
| bool FolderTagIterator::hasNext |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ load()
| bool FolderTagIterator::load |
( |
KisTagSP | tag | ) |
const |
|
inlineprivate |
Definition at line 54 of file KisFolderStorage.cpp.
55 {
59 f.open(QFile::ReadOnly);
61 qWarning() <<
m_dirIterator->filePath() <<
"is not a valid tag desktop file";
62 return false;
63 }
64
65 }
66 return true;
67 }
KisTagSP tag() const override
A tag object on which we can set properties and which we can save.
References m_dirIterator, and tag().
◆ next()
| void FolderTagIterator::next |
( |
| ) |
|
|
inlineoverridevirtual |
◆ tag()
| KisTagSP FolderTagIterator::tag |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ m_dirIterator
| QScopedPointer<QDirIterator> FolderTagIterator::m_dirIterator |
|
private |
◆ m_location
| QString FolderTagIterator::m_location |
|
private |
◆ m_resourceType
| QString FolderTagIterator::m_resourceType |
|
private |
◆ m_tag
The documentation for this class was generated from the following file: