30
30
using namespace hud::service;
32
32
QueryImpl::QueryImpl(unsigned int id, const QString &query,
33
const QString &sender, HudService &service,
34
ApplicationList::Ptr applicationList, Voice::Ptr voice,
35
const QDBusConnection &connection, QObject *parent) :
33
const QString &sender, EmptyBehaviour emptyBehaviour,
34
HudService &service, ApplicationList::Ptr applicationList,
35
Voice::Ptr voice, const QDBusConnection &connection, QObject *parent) :
36
36
Query(parent), m_adaptor(new QueryAdaptor(this)), m_connection(
37
37
connection), m_path(DBusTypes::queryPath(id)), m_service(
38
service), m_applicationList(applicationList), m_voice(voice), m_query(
39
query), m_serviceWatcher(sender, m_connection,
38
service), m_emptyBehaviour(emptyBehaviour), m_applicationList(
39
applicationList), m_voice(voice), m_query(query), m_serviceWatcher(
40
41
QDBusServiceWatcher::WatchForUnregistration) {
42
43
connect(&m_serviceWatcher, SIGNAL(serviceUnregistered(const QString &)),
202
203
// Hold onto a token for the active window
203
204
updateToken(window);
205
m_windowToken->search(m_query, m_results);
206
m_windowToken->search(m_query, m_emptyBehaviour, m_results);
207
208
notifyPropertyChanged("com.canonical.hud.query", "ToolbarItems");