17#ifndef UNITY_SHELL_SCOPES_PREVIEWMODELINTERFACE_H
18#define UNITY_SHELL_SCOPES_PREVIEWMODELINTERFACE_H
20#include <unity/SymbolExport.h>
22#include <QAbstractListModel>
79 virtual void setWidgetColumnCount(
int count) = 0;
80 virtual int widgetColumnCount()
const = 0;
81 virtual bool loaded()
const = 0;
82 virtual bool processingAction()
const = 0;
83 QHash<int, QByteArray> roleNames()
const override
85 QHash<int, QByteArray> roles;
86 roles[RoleColumnModel] =
"columnModel";
93 void widgetColumnCountChanged();
95 void processingActionChanged();
104 void triggered(QString
const&, QString
const&, QVariantMap
const&);
A list of PreviewWidgetModelInterface instances.
Definition PreviewModelInterface.h:38
bool loaded
Boolean specifying whether loading this preview finished.
Definition PreviewModelInterface.h:53
void triggered(QString const &, QString const &, QVariantMap const &)
Signal emitted when user triggers an action.
bool processingAction
Boolean specifying whether an action is currently being performed.
Definition PreviewModelInterface.h:62
int widgetColumnCount
Number of column models this preview should expose.
Definition PreviewModelInterface.h:48
Roles
The roles supported by this model.
Definition PreviewModelInterface.h:73
Top-level namespace for all things Unity-related.
Definition Version.h:38