~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to approver/applicationutils.cpp

  • Committer: Gustavo Pichorim Boiko
  • Date: 2013-07-18 17:02:10 UTC
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: gustavo.boiko@canonical.com-20130718170210-fa39k3sxj8pn8sub
Replace phone-app in headers and comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Authors:
5
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
6
6
 *
7
 
 * This file is part of phone-app.
 
7
 * This file is part of telephony-service.
8
8
 *
9
 
 * phone-app is free software; you can redistribute it and/or modify
 
9
 * telephony-service is free software; you can redistribute it and/or modify
10
10
 * it under the terms of the GNU General Public License as published by
11
11
 * the Free Software Foundation; version 3.
12
12
 *
13
 
 * phone-app is distributed in the hope that it will be useful,
 
13
 * telephony-service is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
16
 * GNU General Public License for more details.
36
36
ApplicationUtils::ApplicationUtils(QObject *parent) :
37
37
    QObject(parent)
38
38
{
39
 
    // Setup a DBus watcher to check if the phone-app is running
 
39
    // Setup a DBus watcher to check if the telephony-service is running
40
40
    mPhoneAppWatcher.setConnection(QDBusConnection::sessionBus());
41
41
    mPhoneAppWatcher.setWatchMode(QDBusServiceWatcher::WatchForRegistration | QDBusServiceWatcher::WatchForUnregistration);
42
42
    mPhoneAppWatcher.addWatchedService(PHONE_APP_CLIENT);
65
65
 
66
66
void ApplicationUtils::onServiceRegistered(const QString &serviceName)
67
67
{
68
 
    // for now we are only watching the phone-app service, so no need to use/compare the
 
68
    // for now we are only watching the telephony-service service, so no need to use/compare the
69
69
    // service name
70
70
    Q_UNUSED(serviceName)
71
71
 
75
75
 
76
76
void ApplicationUtils::onServiceUnregistered(const QString &serviceName)
77
77
{
78
 
    // for now we are only watching the phone-app service, so no need to use/compare the
 
78
    // for now we are only watching the telephony-service service, so no need to use/compare the
79
79
    // service name
80
80
    Q_UNUSED(serviceName)
81
81
 
86
86
void ApplicationUtils::startPhoneApp()
87
87
{
88
88
#ifdef USE_UBUNTU_PLATFORM_API
89
 
    qDebug() << "Starting phone-app...";
 
89
    qDebug() << "Starting telephony-service...";
90
90
    ubuntu_ui_session_trigger_switch_to_well_known_application(PHONE_APP);
91
91
 
92
92
    // block until the app is registered