|
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 "caobserver.h" |
|
20 #include "caobjectadapter.h" |
|
21 #include "caentry.h" |
|
22 |
|
23 //---------------------------------------------------------------------------- |
|
24 // |
|
25 //---------------------------------------------------------------------------- |
|
26 CaObserver::CaObserver(QObject *parent) : |
|
27 QObject(parent) |
|
28 { |
|
29 } |
|
30 //---------------------------------------------------------------------------- |
|
31 // |
|
32 //---------------------------------------------------------------------------- |
|
33 CaObserver::~CaObserver() |
|
34 { |
|
35 } |
|
36 |
|
37 //---------------------------------------------------------------------------- |
|
38 // |
|
39 //---------------------------------------------------------------------------- |
|
40 void CaObserver::entryChanged(int entryId, |
|
41 ChangeType changeType) const |
|
42 { |
|
43 qDebug() << "CaClientProxy::entryChanged entryId:" |
|
44 << entryId << "changeType:" << changeType; |
|
45 emit signalEntryChanged(entryId, changeType); |
|
46 } |
|
47 |
|
48 //---------------------------------------------------------------------------- |
|
49 // |
|
50 //---------------------------------------------------------------------------- |
|
51 void CaObserver::entryChanged(const CaEntry &entry, |
|
52 ChangeType changeType) const |
|
53 { |
|
54 qDebug() << "CaClientProxy::entryChanged changeType:" << changeType; |
|
55 CaEntry *caEntry = new CaEntry(entry); |
|
56 emit signalEntryChanged(*caEntry, changeType); |
|
57 } |
|
58 |
|
59 //---------------------------------------------------------------------------- |
|
60 // |
|
61 //---------------------------------------------------------------------------- |
|
62 void CaObserver::entryTouched(int id) const |
|
63 { |
|
64 qDebug() << "CaClientProxy::entryTouched id:" << id; |
|
65 emit signalEntryTouched(id); |
|
66 } |
|
67 |
|
68 //---------------------------------------------------------------------------- |
|
69 // |
|
70 //---------------------------------------------------------------------------- |
|
71 void CaObserver::groupContentChanged(int groupId) const |
|
72 { |
|
73 qDebug() << "CaClientProxy::groupContentChanged groupId:" << groupId; |
|
74 |
|
75 emit signalGroupContentChanged(groupId); |
|
76 } |
|
77 |