~mterry/telephony-service/notification-timeout

« back to all changes in this revision

Viewing changes to config.h.in

  • Committer: Gustavo Pichorim Boiko
  • Date: 2013-03-12 18:15:29 UTC
  • mto: This revision was merged to the branch mainline in revision 610.
  • Revision ID: gustavo.boiko@canonical.com-20130312181529-rabifvte8sfls914
Rename the main app files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2012 Canonical, Ltd.
 
2
 * Copyright (C) 2012-2013 Canonical, Ltd.
3
3
 *
4
4
 * Authors:
5
5
 *  Olivier Tilloy <olivier.tilloy@canonical.com>
6
6
 *
7
 
 * This file is part of telephony-app.
 
7
 * This file is part of phone-app.
8
8
 *
9
 
 * telephony-app is free software; you can redistribute it and/or modify
 
9
 * phone-app 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
 
 * telephony-app is distributed in the hope that it will be useful,
 
13
 * phone-app 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.
32
32
    return installed;
33
33
}
34
34
 
35
 
inline QString telephonyAppDirectory() {
 
35
inline QString phoneAppDirectory() {
36
36
    if (isRunningInstalled()) {
37
 
        return QString("@CMAKE_INSTALL_PREFIX@/@TELEPHONY_APP_DIR@/");
 
37
        return QString("@CMAKE_INSTALL_PREFIX@/@PHONE_APP_DIR@/");
38
38
    } else {
39
39
        return QString("@CMAKE_SOURCE_DIR@/");
40
40
    }
41
41
}
42
42
 
43
 
inline bool isTelephonyApplicationInstance() {
44
 
    return QCoreApplication::applicationName() == "com.canonical.TelephonyApp";
 
43
inline bool isPhoneApplicationInstance() {
 
44
    return QCoreApplication::applicationName() == "com.canonical.PhoneApp";
45
45
}
46
46
 
47
 
inline bool isTelephonyApplicationRunning() {
48
 
    QDBusReply<bool> reply = QDBusConnection::sessionBus().interface()->isServiceRegistered("com.canonical.TelephonyApp");
 
47
inline bool isPhoneApplicationRunning() {
 
48
    QDBusReply<bool> reply = QDBusConnection::sessionBus().interface()->isServiceRegistered("com.canonical.PhoneApp");
49
49
    if (reply.isValid()) {
50
50
        return reply.value();
51
51
    }