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
11 #include "dialercontext.h"
12 #include "dialerapplication.h"
13 #include "qmlmainwindow.h"
17 #include <QApplication>
18 #include <QDeclarativeView>
21 int main(int argc, char *argv[])
24 DialerApplication app(argc, argv);
26 QMLMainWindow *qmw = QMLMainWindow::instance();
32 QString stripLineID(QString lineid)
35 static QRegExp rx = QRegExp("([^0-9*#])");
37 if (lineid.indexOf('+') == 0) {
38 lineid.replace(rx, "");
39 return lineid.insert(0,"+");
42 return lineid.replace(rx, "");