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: Framework wrapper | |||
15 | * | |||
16 | */ | |||
17 | ||||
18 | ||||
19 | #include "mpmpxdetailsframeworkwrapper.h" | |||
20 | #include "mpmpxdetailsframeworkwrapper_p.h" | |||
21 | #include "mptrace.h" | |||
22 | ||||
23 | /*! | |||
24 | \class MpMpxDetailsFrameworkWrapper | |||
25 | \brief Wrapper for mpx framework utilities. | |||
26 | ||||
27 | MPX framework wrapper provides Qt style interface to the MPX framework | |||
28 | utilities. Its implementation is hidden using private class data pattern. | |||
29 | */ | |||
30 | ||||
31 | ||||
32 | /*! | |||
33 | Constructs the utility wrapper. | |||
34 | */ | |||
Top | ||||
45 | 45 | 35 | MpMpxDetailsFrameworkWrapper::MpMpxDetailsFrameworkWrapper( TUid hostUid, QObject *parent ) | |
36 | : QObject(parent) | |||
37 | { | |||
38 | TX_ENTRY | |||
39 | d_ptr = q_check_ptr( new MpMpxDetailsFrameworkWrapperPrivate( this ) ); //from Qt 4.6 | |||
40 | d_ptr->init( hostUid ); | |||
41 | TX_EXIT | |||
42 | } | |||
43 | ||||
44 | /*! | |||
45 | Destructs the utility wrapper. | |||
46 | */ | |||
Top | ||||
44 | 44 | 47 | MpMpxDetailsFrameworkWrapper::~MpMpxDetailsFrameworkWrapper() | |
48 | { | |||
49 | TX_ENTRY | |||
50 | delete d_ptr; | |||
51 | TX_EXIT | |||
52 | } | |||
53 | ||||
54 | /*! | |||
55 | Returns pointer to MpSongData | |||
56 | */ | |||
Top | ||||
1 | 0 | 57 | MpSongData *MpMpxDetailsFrameworkWrapper::songData() | |
58 | { | |||
59 | TX_LOG | |||
1 | 60 | return d_ptr->songData(); | ||
61 | } | |||
62 | ||||
63 | /*! | |||
64 | Retrieve currently playing song meta data | |||
65 | */ | |||
Top | ||||
1 | 1 | 66 | void MpMpxDetailsFrameworkWrapper::retrieveSong() | |
67 | { | |||
68 | TX_LOG | |||
69 | d_ptr->retrieveSong(); | |||
70 | } | |||
71 | ||||
***TER 100% (5/5) of SOURCE FILE mpmpxdetailsframeworkwrapper.cpp |