diff --git a/gio-qt/include/dgiofile.h b/gio-qt/include/dgiofile.h index 71ef3e8..1bcac53 100644 --- a/gio-qt/include/dgiofile.h +++ b/gio-qt/include/dgiofile.h @@ -33,7 +33,7 @@ public: QString path() const; QString uri() const; QExplicitlySharedDataPointer createFileSystemInfo(); - QExplicitlySharedDataPointer createFileIterator(QString attr, DGioFileQueryInfoFlags queryInfoFlags = FILE_QUERY_INFO_NONE); + QExplicitlySharedDataPointer createFileIterator(QString attr = "*", DGioFileQueryInfoFlags queryInfoFlags = FILE_QUERY_INFO_NONE); private: QScopedPointer d_ptr; diff --git a/gio-qt/include/dgiofileiterator.h b/gio-qt/include/dgiofileiterator.h index 28fedbb..08006af 100644 --- a/gio-qt/include/dgiofileiterator.h +++ b/gio-qt/include/dgiofileiterator.h @@ -17,7 +17,7 @@ public: explicit DGioFileIterator(Gio::FileEnumerator *gmmFileEnumeratorPtr, QObject *parent = nullptr); ~DGioFileIterator(); - QExplicitlySharedDataPointer next(); + QExplicitlySharedDataPointer nextFile(); private: QScopedPointer d_ptr; diff --git a/gio-qt/source/dgiofileiterator.cpp b/gio-qt/source/dgiofileiterator.cpp index 17ff1da..43f9b26 100644 --- a/gio-qt/source/dgiofileiterator.cpp +++ b/gio-qt/source/dgiofileiterator.cpp @@ -53,7 +53,7 @@ DGioFileIterator::~DGioFileIterator() } -QExplicitlySharedDataPointer DGioFileIterator::next() +QExplicitlySharedDataPointer DGioFileIterator::nextFile() { Q_D(DGioFileIterator); diff --git a/qgio-tools/main.cpp b/qgio-tools/main.cpp index 4c1ce54..a55d1bf 100644 --- a/qgio-tools/main.cpp +++ b/qgio-tools/main.cpp @@ -20,7 +20,7 @@ int main(int argc, char * argv[]) if (networkFile) { QExplicitlySharedDataPointer iter = networkFile->createFileIterator("standard::*,mountable::can-mount"); if (iter) { - while (QExplicitlySharedDataPointer fi = iter->next()) { + while (QExplicitlySharedDataPointer fi = iter->nextFile()) { if (fi) { qDebug() << fi->displayName() << fi->fileType(); }