mpviewplugins/mpdetailsviewplugin/src/mpmpxdetailsframeworkwrapper.cpp
changeset 29 8192e5b5c935
parent 25 3ec52facab4d
child 32 c163ef0b758d
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
     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  */
       
    35 MpMpxDetailsFrameworkWrapper::MpMpxDetailsFrameworkWrapper( QObject *parent )
       
    36     : QObject(parent),
       
    37       d_ptr( q_check_ptr( new MpMpxDetailsFrameworkWrapperPrivate( this ) ) )  //from Qt 4.6
       
    38 {
       
    39     TX_ENTRY
       
    40     TX_EXIT
       
    41 }
       
    42 
       
    43 /*!
       
    44  Destructs the utility wrapper.
       
    45  */
       
    46 MpMpxDetailsFrameworkWrapper::~MpMpxDetailsFrameworkWrapper()
       
    47 {
       
    48     TX_ENTRY
       
    49     delete d_ptr;
       
    50     TX_EXIT
       
    51 }
       
    52 
       
    53 /*!
       
    54  Returns pointer to MpSongData
       
    55  */
       
    56 MpSongData *MpMpxDetailsFrameworkWrapper::songData()
       
    57 {
       
    58     TX_LOG
       
    59     return d_ptr->songData();
       
    60 }
       
    61 
       
    62 /*!
       
    63  Retrieve currently playing song meta data
       
    64  */
       
    65 void MpMpxDetailsFrameworkWrapper::retrieveSong()
       
    66 {
       
    67     TX_LOG
       
    68     d_ptr->retrieveSong();
       
    69 }
       
    70