|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Stub class for mpsongscanner unittest. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "stub/inc/mpmpxharvesterframeworkwrapper.h" |
|
19 |
|
20 /*! |
|
21 Stub function. |
|
22 */ |
|
23 MpMpxHarvesterFrameworkWrapper::MpMpxHarvesterFrameworkWrapper( QObject *parent ) |
|
24 : QObject( parent ), |
|
25 mScanRequested( false ), |
|
26 mScanning( false ), |
|
27 mScanCount( -1 ), |
|
28 mCheckSystemEventsRequested( false ) |
|
29 { |
|
30 } |
|
31 |
|
32 /*! |
|
33 Stub function. |
|
34 */ |
|
35 MpMpxHarvesterFrameworkWrapper::~MpMpxHarvesterFrameworkWrapper() |
|
36 { |
|
37 } |
|
38 |
|
39 /*! |
|
40 Stub function. |
|
41 */ |
|
42 void MpMpxHarvesterFrameworkWrapper::scan() |
|
43 { |
|
44 mScanRequested = true; |
|
45 } |
|
46 |
|
47 /*! |
|
48 Stub function. |
|
49 */ |
|
50 void MpMpxHarvesterFrameworkWrapper::cancelScan() |
|
51 { |
|
52 mScanRequested = false; |
|
53 } |
|
54 |
|
55 /*! |
|
56 Stub function. |
|
57 */ |
|
58 void MpMpxHarvesterFrameworkWrapper::checkForSystemEvents() |
|
59 { |
|
60 mCheckSystemEventsRequested = true; |
|
61 } |
|
62 |
|
63 /*! |
|
64 Stub function. |
|
65 */ |
|
66 void MpMpxHarvesterFrameworkWrapper::emitScanStarted() |
|
67 { |
|
68 mScanning = true; |
|
69 emit scanStarted(); |
|
70 } |
|
71 |
|
72 /*! |
|
73 Stub function. |
|
74 */ |
|
75 void MpMpxHarvesterFrameworkWrapper::emitScanEnded( int count, int error ) |
|
76 { |
|
77 mScanning = false; |
|
78 emit scanEnded( count, error ); |
|
79 } |
|
80 |
|
81 /*! |
|
82 Stub function. |
|
83 */ |
|
84 void MpMpxHarvesterFrameworkWrapper::emitScanCountChanged( int count ) |
|
85 { |
|
86 emit scanCountChanged( count ); |
|
87 } |
|
88 |
|
89 /*! |
|
90 Stub function. |
|
91 */ |
|
92 void MpMpxHarvesterFrameworkWrapper::emitDiskEvent() |
|
93 { |
|
94 emit diskEvent( DiskInserted ); |
|
95 } |