You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
860 B

/*
SPDX-FileCopyrightText: 2015 Eike Hein <hein@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "abstractentry.h"
class KFileItem;
class FileEntry : public AbstractEntry
{
public:
explicit FileEntry(AbstractModel *owner, const QUrl &url, const QString &mimeType = QString());
~FileEntry() override;
EntryType type() const override
{
return RunnableType;
}
bool isValid() const override;
QIcon icon() const override;
QString name() const override;
QString description() const override;
QString id() const override;
QUrl url() const override;
bool hasActions() const override;
QVariantList actions() const override;
bool run(const QString &actionId = QString(), const QVariant &argument = QVariant()) override;
private:
KFileItem *m_fileItem;
};