I have a problem while implementing my own QAbstractFileEngine.
So, I have a new class:
{
public:
qint64 size() const;
bool isSequential() const;
bool isRelativePath() const;
FileFlags fileFlags ( FileFlags type = FileInfoAll ) const;
QString fileName
( FileName
file = DefaultName
) const;
Iterator
*beginEntryList
( QDir::Filters filters,
const QStringList &filterNames
);
Iterator *endEntryList();
// Others methods are implemented, but return error values
};
class cwNTFSFileEngine : public QAbstractFileEngine
{
public:
qint64 size() const;
bool isSequential() const;
bool isRelativePath() const;
QStringList entryList ( QDir::Filters filters, const QStringList &filterNames ) const;
FileFlags fileFlags ( FileFlags type = FileInfoAll ) const;
QString fileName ( FileName file = DefaultName ) const;
QDateTime fileTime ( FileTime time ) const;
Iterator *beginEntryList ( QDir::Filters filters, const QStringList &filterNames );
Iterator *endEntryList();
// Others methods are implemented, but return error values
};
To copy to clipboard, switch view to plain text mode
And in
FileFlags cwNTFSFileEngine::fileFlags ( FileFlags type = FileInfoAll ) const
{
// File type detection
}
FileFlags cwNTFSFileEngine::fileFlags ( FileFlags type = FileInfoAll ) const
{
// File type detection
}
To copy to clipboard, switch view to plain text mode
I get an error:
cwntfsfileengine.cpp:18: error: `FileFlags' does not name a type
I think there's a stupid bug in my, but I can't resolve it.
Bookmarks