KFile
Go to the documentation of this file.
20#ifndef KFILEPLACESMODEL_H
21#define KFILEPLACESMODEL_H
25#include <QtCore/QAbstractItemModel>
46 HiddenRole = 0x0741CAAC,
47 SetupNeededRole = 0x059A935D,
48 FixedDeviceRole = 0x332896C1,
49 CapacityBarRecommendedRole = 0x1548C5C4
55 KUrl url(
const QModelIndex &index)
const;
56 bool setupNeeded(
const QModelIndex &index)
const;
57 KIcon icon(
const QModelIndex &index)
const;
58 QString text(
const QModelIndex &index)
const;
59 bool isHidden(
const QModelIndex &index)
const;
60 bool isDevice(
const QModelIndex &index)
const;
62 KBookmark bookmarkForIndex(
const QModelIndex &index)
const;
64 QAction *teardownActionForIndex(
const QModelIndex &index)
const;
65 QAction *ejectActionForIndex(
const QModelIndex &index)
const;
66 void requestTeardown(
const QModelIndex &index);
67 void requestEject(
const QModelIndex &index);
68 void requestSetup(
const QModelIndex &index);
70 void addPlace(
const QString &text,
const KUrl &url,
const QString &iconName = QString(),
const QString &appName = QString());
71 void addPlace(
const QString &text,
const KUrl &url,
const QString &iconName,
const QString &appName,
const QModelIndex &after);
72 void editPlace(
const QModelIndex &index,
const QString &text,
const KUrl &url,
const QString &iconName = QString(),
const QString &appName = QString());
73 void removePlace(
const QModelIndex &index)
const;
74 void setPlaceHidden(
const QModelIndex &index,
bool hidden);
76 int hiddenCount()
const;
87 QVariant data(
const QModelIndex &index,
int role)
const;
92 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
97 QModelIndex parent(
const QModelIndex &child)
const;
102 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
107 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
123 QModelIndex closestItem(
const KUrl &url)
const;
126 Qt::DropActions supportedDropActions()
const;
127 Qt::ItemFlags flags(
const QModelIndex &index)
const;
129 QMimeData *mimeData(
const QModelIndexList &indexes)
const;
130 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
131 int row,
int column,
const QModelIndex &parent);
138 Q_PRIVATE_SLOT(d,
void _k_initDeviceList())
139 Q_PRIVATE_SLOT(d,
void _k_deviceAdded(const QString&))
140 Q_PRIVATE_SLOT(d,
void _k_deviceRemoved(const QString&))
141 Q_PRIVATE_SLOT(d,
void _k_itemChanged(const QString&))
142 Q_PRIVATE_SLOT(d,
void _k_reloadBookmarks())
143 Q_PRIVATE_SLOT(d,
void _k_storageSetupDone(
Solid::
ErrorType, QVariant))
144 Q_PRIVATE_SLOT(d,
void _k_storageTeardownDone(
Solid::
ErrorType, QVariant))
148 friend class Private;
This class is a list view model.
void setupDone(const QModelIndex &index, bool success)
void errorMessage(const QString &message)
QStringList mimeTypes(Mode mode=Writing)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.