aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/unitymenumodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/unitymenumodel.cpp')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index a6ae140..a75e8c8 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -170,6 +170,8 @@ void UnityMenuModelPrivate::clearName()
this->updateActions();
this->updateMenuModel();
+
+ Q_EMIT model->nameOwnerChanged (this->nameOwner);
}
void UnityMenuModelPrivate::updateActions()
@@ -231,6 +233,8 @@ void UnityMenuModelPrivate::nameAppeared(GDBusConnection *connection, const gcha
priv->updateActions();
priv->updateMenuModel();
+
+ Q_EMIT priv->model->nameOwnerChanged (priv->nameOwner);
}
void UnityMenuModelPrivate::nameVanished(GDBusConnection *connection, const gchar *name, gpointer user_data)
@@ -295,6 +299,11 @@ QByteArray UnityMenuModel::busName() const
return priv->busName;
}
+QByteArray UnityMenuModel::nameOwner() const
+{
+ return priv->nameOwner;
+}
+
void UnityMenuModel::setBusName(const QByteArray &name)
{
if (name == priv->busName)
@@ -309,6 +318,7 @@ void UnityMenuModel::setBusName(const QByteArray &name)
UnityMenuModelPrivate::nameAppeared, UnityMenuModelPrivate::nameVanished,
priv, NULL);
priv->busName = name;
+ Q_EMIT busNameChanged (priv->busName);
}
QVariantMap UnityMenuModel::actions() const