Added qmafw-gst-subtitles-renderer-0.0.55 for Meego Harmattan 1.2
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / unittests / common / MafwRoutingInfoHandlerStub.cpp
1
2 /*
3  * This file is part of QMAFW
4  *
5  * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights
6  * reserved.
7  *
8  * Contact: Visa Smolander <visa.smolander@nokia.com>
9  *
10  * This software, including documentation, is protected by copyright controlled
11  * by Nokia Corporation. All rights are reserved. Copying, including
12  * reproducing, storing, adapting or translating, any or all of this material
13  * requires the prior written consent of Nokia Corporation. This material also
14  * contains confidential information which may not be disclosed to others
15  * without the prior written consent of Nokia.
16  *
17  */
18
19 #include "MafwRoutingInfoHandler.h"
20
21 #include <contextsubscriber/contextproperty.h>
22 #include <contextsubscriber/contextpropertyinfo.h>
23 #include <contextsubscriber/contextproviderinfo.h>
24
25 #include <QDebug>
26 #include <QDBusReply>
27 #include <QDBusConnectionInterface>
28
29 bool routeTrusted = false;
30
31 MafwRoutingInfoHandler::MafwRoutingInfoHandler(ContextProperty& property) :
32         m_property(property)
33 {
34
35 }
36
37 MafwRoutingInfoHandler::~MafwRoutingInfoHandler()
38 {
39 }
40
41 void MafwRoutingInfoHandler::startProviderCheck()
42 {
43     qDebug() << "startProviderCheck";
44 }
45
46  void MafwRoutingInfoHandler::callFinishedSlot(QDBusPendingCallWatcher*)
47  {
48      qDebug() << "callFinishedSlot";
49  }
50
51 void MafwRoutingInfoHandler::gotReply(int)
52 {
53     Q_EMIT routeChanged(routeTrusted);
54 }
55
56 void MafwRoutingInfoHandler::error()
57 {
58     qDebug() << __PRETTY_FUNCTION__;
59
60     Q_EMIT routeChanged(false);
61 }
62
63 bool MafwRoutingInfoHandler::isPidTrusted (int)
64 {
65
66     return true;
67 }