6dc77b86bb19c7d9fb47982079bd6aee1135a940
[profile/ivi/hfdialer.git] / src / dbusdialeradapter.cpp
1 /*
2  * Copyright (c) 2011, Tom Swindell.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 #include "common.h"
11 #include "dbusdialeradapter.h"
12 #include "managerproxy.h"
13
14 DBusDialerAdapter::DBusDialerAdapter(DialerApplication *application)
15     : QDBusAbstractAdaptor(application)
16 {
17     TRACE
18 }
19
20 DBusDialerAdapter::~DBusDialerAdapter()
21 {
22     TRACE
23 }
24
25 void DBusDialerAdapter::call(const QString &msisdn)
26 {
27     TRACE
28
29     if(!ManagerProxy::instance()->callManager()) return;
30     ManagerProxy::instance()->callManager()->dial(msisdn);
31 }