X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=qmafw-gst-subtitles-renderer%2Funittests%2Fut_MafwGstRenderer%2FMafwMmcMonitorStub.cpp;fp=qmafw-gst-subtitles-renderer%2Funittests%2Fut_MafwGstRenderer%2FMafwMmcMonitorStub.cpp;h=f34050aa2ba90d256cce510c6a34af12153a3307;hb=226d35244df85a27c332d3a3ded1b25b3c7f4951;hp=0000000000000000000000000000000000000000;hpb=57ba96e291a055f69dbfd4ae9f1ae2390e36986e;p=mafwsubrenderer diff --git a/qmafw-gst-subtitles-renderer/unittests/ut_MafwGstRenderer/MafwMmcMonitorStub.cpp b/qmafw-gst-subtitles-renderer/unittests/ut_MafwGstRenderer/MafwMmcMonitorStub.cpp new file mode 100644 index 0000000..f34050a --- /dev/null +++ b/qmafw-gst-subtitles-renderer/unittests/ut_MafwGstRenderer/MafwMmcMonitorStub.cpp @@ -0,0 +1,45 @@ +/* + * This file is part of QMAFW + * + * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights + * reserved. + * + * Contact: Visa Smolander + * + * This software, including documentation, is protected by copyright controlled + * by Nokia Corporation. All rights are reserved. Copying, including + * reproducing, storing, adapting or translating, any or all of this material + * requires the prior written consent of Nokia Corporation. This material also + * contains confidential information which may not be disclosed to others + * without the prior written consent of Nokia. + * + */ + +#include "MafwMmcMonitor.h" +#include + +bool stubMmcMounted = true; +MafwMmcMonitor* stubMmcMonitor; + +const QString MafwMmcMonitor::MMC_URI_PREFIX="file:///home/user/MyDocs"; + +MafwMmcMonitor::MafwMmcMonitor(QObject* parent) : QObject(parent), m_mounted(false) +{ + stubMmcMonitor = this; +} + +MafwMmcMonitor::~MafwMmcMonitor() +{ + stubMmcMonitor = 0; +} + +bool MafwMmcMonitor::isMounted() +{ + return stubMmcMounted; +} + +void MafwMmcMonitor::preUnmountEvent(const QString &/*state*/) +{ + Q_EMIT stubMmcMonitor->preUnmount(); +} +