emailuis/nmhswidget/src/nmhswidgetdatetimeobserver.cpp
author hgs
Fri, 28 May 2010 13:56:43 +0300
changeset 43 99bcbff212ad
parent 23 2dc6caa42ec3
permissions -rw-r--r--
201021

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/

#include "emailtrace.h"
#include "nmhswidgetdatetimeobserver.h"
#include "nmhswidgetdatetimeobserver_p.h"

/*!
    \fn NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver(QObject *parent)

    /post Private observer is created and listening to environment changes
*/
NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver(QObject *parent) :
    QObject(parent),
    d_ptr(0)
{
    NM_FUNCTION;
    d_ptr = new NmHsWidgetDateTimeObserverPrivate(this);
}

/*!
    \fn NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver()

    /post Private observer is destroyed
*/
NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver()
{
    NM_FUNCTION;
    delete d_ptr;
}

/*!
    \fn void NmHsWidgetDateTimeObserver::handleCompletion()

    /post Valid change event received by private observer and DateTimeChange signal is emitted
*/
void NmHsWidgetDateTimeObserver::handleCompletion()
{
    NM_FUNCTION;
    emit dateTimeChanged();
}