~unity-api-team/hud/test-failures

« back to all changes in this revision

Viewing changes to service/QueryImpl.cpp

  • Committer: Charles Kerr
  • Date: 2014-03-17 17:50:58 UTC
  • mfrom: (376.2.5 hud)
  • Revision ID: charles.kerr@canonical.com-20140317175058-7efcri9kck5j3i0q
bzr merge lp:hud

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
using namespace hud::service;
31
31
 
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
                                sender, m_connection,
40
41
                                QDBusServiceWatcher::WatchForUnregistration) {
41
42
 
42
43
        connect(&m_serviceWatcher, SIGNAL(serviceUnregistered(const QString &)),
202
203
                // Hold onto a token for the active window
203
204
                updateToken(window);
204
205
 
205
 
                m_windowToken->search(m_query, m_results);
 
206
                m_windowToken->search(m_query, m_emptyBehaviour, m_results);
206
207
 
207
208
                notifyPropertyChanged("com.canonical.hud.query", "ToolbarItems");
208
209
        }