85
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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 <QMutexLocker>
|
|
20 |
|
|
21 |
#include "caclientnotifierproxy.h"
|
|
22 |
#include "caentry.h"
|
|
23 |
#include "caobjectadapter.h"
|
|
24 |
#include "canotifiers.h"
|
|
25 |
|
|
26 |
//----------------------------------------------------------------------------
|
|
27 |
//
|
|
28 |
//----------------------------------------------------------------------------
|
|
29 |
CaClientNotifierProxy::CaClientNotifierProxy(QObject *parent) :
|
|
30 |
QObject(parent)
|
|
31 |
{
|
|
32 |
}
|
|
33 |
//----------------------------------------------------------------------------
|
|
34 |
//
|
|
35 |
//----------------------------------------------------------------------------
|
|
36 |
CaClientNotifierProxy::~CaClientNotifierProxy()
|
|
37 |
{
|
|
38 |
}
|
|
39 |
|
|
40 |
//----------------------------------------------------------------------------
|
|
41 |
//
|
|
42 |
//----------------------------------------------------------------------------
|
|
43 |
int CaClientNotifierProxy::registerNotifier(
|
|
44 |
const CaNotifierFilter *notifierFilter,
|
|
45 |
CaNotifierPrivate::NotifierType notifierType,
|
93
|
46 |
const CaObserver *observer)
|
85
|
47 |
{
|
|
48 |
qDebug() << "CaClientProxy::registerNotifier notifierType:"
|
87
|
49 |
<< notifierType;
|
93
|
50 |
return CaNotifiers::addNotifier(notifierFilter, notifierType, observer);
|
85
|
51 |
}
|
|
52 |
|
|
53 |
//----------------------------------------------------------------------------
|
|
54 |
//
|
|
55 |
//----------------------------------------------------------------------------
|
|
56 |
void CaClientNotifierProxy::unregisterNotifier(
|
87
|
57 |
const CaNotifierFilter ¬ifierFilter,
|
|
58 |
CaNotifierPrivate::NotifierType notifierType)
|
85
|
59 |
{
|
|
60 |
qDebug() << "CaClientProxy::unregisterNotifier notifierType:"
|
87
|
61 |
<< notifierType;
|
85
|
62 |
CaNotifiers::removeNotifier(¬ifierFilter, notifierType);
|
|
63 |
}
|
|
64 |
|
93
|
65 |
|
|
66 |
//----------------------------------------------------------------------------
|
|
67 |
//
|
|
68 |
//----------------------------------------------------------------------------
|
|
69 |
void CaClientNotifierProxy::connectSessions()
|
|
70 |
{
|
|
71 |
qDebug() << "Nothing to do on windows";
|
|
72 |
}
|
|
73 |
|
|
74 |
|