sort plugins

This commit is contained in:
Patrick von Reth 2014-02-14 17:04:10 +01:00
parent 2e3359331c
commit 1567e2d2a6
1 changed files with 9 additions and 3 deletions

View File

@ -123,19 +123,25 @@ const QHash<QString, Application> &SnoreCore::aplications() const
const QStringList SnoreCore::notificationBackends() const const QStringList SnoreCore::notificationBackends() const
{ {
Q_D(const SnoreCore); Q_D(const SnoreCore);
return d->m_plugins.values(SnorePlugin::BACKEND); QStringList out(d->m_plugins.values(SnorePlugin::BACKEND));
qSort(out);
return out;
} }
const QStringList SnoreCore::notificationFrontends() const const QStringList SnoreCore::notificationFrontends() const
{ {
Q_D(const SnoreCore); Q_D(const SnoreCore);
return d->m_plugins.values(SnorePlugin::FRONTEND); QStringList out(d->m_plugins.values(SnorePlugin::FRONTEND));
qSort(out);
return out;
} }
const QStringList SnoreCore::secondaryNotificationBackends() const const QStringList SnoreCore::secondaryNotificationBackends() const
{ {
Q_D(const SnoreCore); Q_D(const SnoreCore);
return d->m_plugins.values(SnorePlugin::SECONDARY_BACKEND); QStringList out(d->m_plugins.values(SnorePlugin::SECONDARY_BACKEND));
qSort(out);
return out;
} }
bool SnoreCore::setPrimaryNotificationBackend ( const QString &backend ) bool SnoreCore::setPrimaryNotificationBackend ( const QString &backend )