mpviewplugins/mpplaybackviewplugin/src/mplightmonitor.cpp
changeset 61 3cd404d31176
equal deleted inserted replaced
58:ed94e1e8390e 61:3cd404d31176
       
     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: Light monitor for Playback.
       
    15 *
       
    16 */
       
    17 
       
    18 #include "mplightmonitor.h"
       
    19 #include "mplightmonitor_p.h"
       
    20 
       
    21 
       
    22 /*!
       
    23     \class MpLightMonitor
       
    24     \brief Wrapper for light monitor.
       
    25 
       
    26     MpLightMonitor provides Qt style interface to the Light Observer.
       
    27     It's implementation is hidden using private class data pattern.
       
    28 */
       
    29 
       
    30 /*!
       
    31     \fn void lcdLightStatus( bool lightOn );
       
    32 
       
    33     This signal is emitted when the device light status changes.
       
    34  */
       
    35 
       
    36 /*!
       
    37  \internal
       
    38  */
       
    39 MpLightMonitor::MpLightMonitor( QObject *parent )
       
    40     : QObject( parent )
       
    41 {
       
    42     d_ptr = new MpLightMonitorPrivate ( this );
       
    43     d_ptr->init();
       
    44 }
       
    45 
       
    46 /*!
       
    47  \internal
       
    48  */
       
    49 MpLightMonitor::~MpLightMonitor()
       
    50 {
       
    51     delete d_ptr;
       
    52 }
       
    53