2 * hfdialer - Hands Free Voice Call Manager
3 * Copyright (c) 2012, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
17 #define TRACE qDebug() << "[" << __FILE__ << "]" << __func__ << "():" << __LINE__;
23 * Commonly used QRegExp expressions
26 #define MATCH_ANY(p) QRegExp(p,Qt::CaseInsensitive,QRegExp::FixedString)
27 #define MATCH_ALL QRegExp()
30 * Commonly used values for MNotifications
32 #define DEFAULT_AVATAR_ICON "icon-m-content-avatar-placeholder"
33 #define NOTIFICATION_CALL_EVENT "x-nokia.call"
36 * Convienence macro for showing TBD message
39 MainWindow *w = dynamic_cast<MainWindow *>(DialerApplication::instance()->activeApplicationWindow()); \
44 * Convience macro for checking available dialer modes
46 #define CONFIG_KEY_TARGET_MODE "/apps/dialer/mode"
47 #define MODE_HFP_STR "hfp"
48 #define MODE_HANDSET_STR "handset"
49 #define MODE_HFP_ENABLED DC->modes().contains(MODE_HFP_STR)
50 #define MODE_HANDSET_ENABLED DC->modes().contains(MODE_HANDSET_STR)
51 QString stripLineID(QString lineid);
53 bool currentPageIs(int pagenum);
56 QDateTime qDateTimeFromOfono(const QString &val);