84 attributes[
"label"] = label;
85 attributes[
"statustip"] = statustip;
86 attributes[
"icon"] = icon;
87 attributes[
"icontype"] = icontype;
93 QMap<QString, QString> dict;
95 dict[plugin_prefix +
"plugin_id"] =
plugin_id_;
96 for (QMap<QString, QString>::const_iterator it =
attributes_.constBegin(); it !=
attributes_.constEnd(); it++)
98 dict[plugin_prefix + QString(
"attributes.") + it.key()] = it.value();
102 dict[plugin_prefix + QString(
"action.") + it.key()] = it.value();
105 for (QVector<QMap<QString, QString> >::const_iterator it =
groups_.constBegin(); it !=
groups_.constEnd(); it++)
107 QString prefix = QString(
"groups.") + QString::number(group_index) + QString(
".");
108 for (QMap<QString, QString>::const_iterator jt = it->constBegin(); jt != it->constEnd(); jt++)
110 dict[plugin_prefix + prefix + jt.key()] = jt.value();
QMap< QString, QString > action_attributes_
QVector< QMap< QString, QString > > groups_
const QMap< QString, QString > & attributes() const
QMap< QString, QString > group(int index) const
PluginDescriptor(const QString &plugin_id, const QMap< QString, QString > &attributes=(QMap< QString, QString >()))
const QMap< QString, QString > & actionAttributes() const
QMap< QString, QString > attributes_
const QString & pluginId() const
QMap< QString, QString > toDictionary() const
void addGroupAttributes(const QString &label, const QString &statustip=QString(), const QString &icon=QString(), const QString &icontype=QString())
void setActionAttributes(const QString &label, const QString &statustip=QString(), const QString &icon=QString(), const QString &icontype=QString())