| Start/ | End/ | |||
| True | False | - | Line | Source |
| 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: MpDetailsView stub for testing MpDetailsViewplugin | |||
| 15 | * | |||
| 16 | */ | |||
| 17 | ||||
| 18 | #include "stub/inc/mpdetailsview.h" | |||
| 19 | ||||
| 20 | ||||
| 21 | /*! | |||
| 22 | Constructs the MpDetailsView stub | |||
| 23 | */ | |||
| Top | ||||
| 8 | 8 | 24 | MpDetailsView::MpDetailsView() | |
| 25 | :mInitializeViewCount( 0 ), | |||
| 26 | mActivateViewCount( 0 ), | |||
| 27 | mDeactivateViewCount( 0 ) | |||
| 28 | { | |||
| 29 | } | |||
| 30 | ||||
| 31 | /*! | |||
| 32 | Destructs the MpDetailsView stub | |||
| 33 | */ | |||
| Top | ||||
| 8 | 8 | 34 | MpDetailsView::~MpDetailsView() | |
| 35 | { | |||
| 36 | } | |||
| 37 | ||||
| 38 | /*! | |||
| 39 | Initializes the MpDetailsView stub | |||
| 40 | */ | |||
| Top | ||||
| 1 | 1 | 41 | void MpDetailsView::initializeView() | |
| 42 | { | |||
| 43 | mInitializeViewCount++; | |||
| 44 | } | |||
| 45 | ||||
| 46 | /*! | |||
| 47 | Activates the MpDetailsView stub | |||
| 48 | */ | |||
| Top | ||||
| 2 | 2 | 49 | void MpDetailsView::activateView() | |
| 50 | { | |||
| 51 | mActivateViewCount++; | |||
| 52 | } | |||
| 53 | ||||
| 54 | /*! | |||
| 55 | Deactivates the MpDetailsView stub | |||
| 56 | */ | |||
| Top | ||||
| 1 | 1 | 57 | void MpDetailsView::deactivateView() | |
| 58 | { | |||
| 59 | mDeactivateViewCount++; | |||
| 60 | } | |||
| 61 | ||||
| 62 | /*! | |||
| 63 | Reset counters | |||
| 64 | */ | |||
| Top | ||||
| 6 | 6 | 65 | void MpDetailsView::resetCounters() | |
| 66 | { | |||
| 67 | mInitializeViewCount = 0; | |||
| 68 | mActivateViewCount = 0; | |||
| 69 | mDeactivateViewCount = 0; | |||
| 70 | } | |||
| 71 | ||||
| 72 | /*! | |||
| 73 | emits the signal command | |||
| 74 | */ | |||
| Top | ||||
| 1 | 1 | 75 | void MpDetailsView::emitCommand( int cmd ) | |
| 76 | { | |||
| 77 | emit command( cmd ); | |||
| 78 | } | |||
| ***TER 100% (7/7) of SOURCE FILE mpdetailsview.cpp | ||||