forked from mirrors/gio-qt
refactor: rename function
This commit is contained in:
parent
224c16ae31
commit
2ff601c30e
4 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
QString path() const;
|
||||
QString uri() const;
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> createFileSystemInfo();
|
||||
QExplicitlySharedDataPointer<DGioFileIterator> createFileIterator(QString attr, DGioFileQueryInfoFlags queryInfoFlags = FILE_QUERY_INFO_NONE);
|
||||
QExplicitlySharedDataPointer<DGioFileIterator> createFileIterator(QString attr = "*", DGioFileQueryInfoFlags queryInfoFlags = FILE_QUERY_INFO_NONE);
|
||||
|
||||
private:
|
||||
QScopedPointer<DGioFilePrivate> d_ptr;
|
||||
|
|
|
@ -17,7 +17,7 @@ public:
|
|||
explicit DGioFileIterator(Gio::FileEnumerator *gmmFileEnumeratorPtr, QObject *parent = nullptr);
|
||||
~DGioFileIterator();
|
||||
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> next();
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> nextFile();
|
||||
|
||||
private:
|
||||
QScopedPointer<DGioFileIteratorPrivate> d_ptr;
|
||||
|
|
|
@ -53,7 +53,7 @@ DGioFileIterator::~DGioFileIterator()
|
|||
|
||||
}
|
||||
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> DGioFileIterator::next()
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> DGioFileIterator::nextFile()
|
||||
{
|
||||
Q_D(DGioFileIterator);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ int main(int argc, char * argv[])
|
|||
if (networkFile) {
|
||||
QExplicitlySharedDataPointer<DGioFileIterator> iter = networkFile->createFileIterator("standard::*,mountable::can-mount");
|
||||
if (iter) {
|
||||
while (QExplicitlySharedDataPointer<DGioFileInfo> fi = iter->next()) {
|
||||
while (QExplicitlySharedDataPointer<DGioFileInfo> fi = iter->nextFile()) {
|
||||
if (fi) {
|
||||
qDebug() << fi->displayName() << fi->fileType();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue