|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <QDebug> |
|
19 #include "nmhswidgetdatetimeobserver.h" |
|
20 #include "nmhswidgetdatetimeobserver_p.h" |
|
21 |
|
22 /*! |
|
23 \fn NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver(QObject *parent) |
|
24 |
|
25 /post Private observer is created and listening to environment changes |
|
26 */ |
|
27 NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver(QObject *parent) : |
|
28 QObject(parent), |
|
29 d_ptr(0) |
|
30 { |
|
31 qDebug() << "NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver --> IN"; |
|
32 d_ptr = new NmHsWidgetDateTimeObserverPrivate(this); |
|
33 qDebug() << "NmHsWidgetDateTimeObserver::NmHsWidgetDateTimeObserver <-- OUT"; |
|
34 } |
|
35 |
|
36 /*! |
|
37 \fn NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver() |
|
38 |
|
39 /post Private observer is destroyed |
|
40 */ |
|
41 NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver() |
|
42 { |
|
43 qDebug() << "NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver --> IN"; |
|
44 delete d_ptr; |
|
45 qDebug() << "NmHsWidgetDateTimeObserver::~NmHsWidgetDateTimeObserver <-- OUT"; |
|
46 } |
|
47 |
|
48 /*! |
|
49 \fn void NmHsWidgetDateTimeObserver::handleCompletion() |
|
50 |
|
51 /post Valid change event received by private observer and DateTimeChange signal is emitted |
|
52 */ |
|
53 void NmHsWidgetDateTimeObserver::handleCompletion() |
|
54 { |
|
55 qDebug() << "NmHsWidgetDateTimeObserver::handleCompletion --> IN"; |
|
56 emit dateTimeChanged(); |
|
57 qDebug() << "NmHsWidgetDateTimeObserver::handleCompletion <-- OUT"; |
|
58 } |