85
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CACLIENTNOTIFIERPROXY_H
|
|
19 |
#define CACLIENTNOTIFIERPROXY_H
|
|
20 |
|
|
21 |
#include <QObject>
|
|
22 |
#include <QMutex>
|
|
23 |
|
|
24 |
#include "caclient_global.h"
|
|
25 |
#include "cadefs.h"
|
|
26 |
#include "canotifier_p.h"
|
|
27 |
|
|
28 |
class CaEntry;
|
|
29 |
class CaNotifierFilter;
|
93
|
30 |
class CaObserver;
|
85
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
class CACLIENT_EXPORT CaClientNotifierProxy: public QObject
|
|
36 |
{
|
87
|
37 |
Q_OBJECT
|
85
|
38 |
|
|
39 |
public:
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Constructor.
|
|
43 |
* @param parent pointer to parent. Defaults to NULL.
|
|
44 |
*/
|
|
45 |
explicit CaClientNotifierProxy(QObject *parent = 0);
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Destructor.
|
|
49 |
*/
|
|
50 |
~CaClientNotifierProxy();
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Method for registering notifier
|
|
54 |
*
|
|
55 |
* @param notifierFilter notifierFilter used to register notifier.
|
|
56 |
* @param notifierType type of notifier
|
|
57 |
* @return error code
|
|
58 |
*/
|
|
59 |
int registerNotifier(
|
|
60 |
const CaNotifierFilter *notifierFilter,
|
|
61 |
CaNotifierPrivate::NotifierType notifierType,
|
93
|
62 |
const CaObserver *observer);
|
85
|
63 |
|
|
64 |
/**
|
|
65 |
* Method for unregistering notifier.
|
|
66 |
*
|
|
67 |
* @param notifierFilter notifierFilter used to unregister notifier.
|
|
68 |
* @param notifierType type of notifier
|
|
69 |
*/
|
|
70 |
void unregisterNotifier(
|
|
71 |
const CaNotifierFilter ¬ifierFilter,
|
|
72 |
CaNotifierPrivate::NotifierType notifierType);
|
|
73 |
|
|
74 |
|
93
|
75 |
/**
|
|
76 |
* Reconnect all sessions when server was terminated
|
|
77 |
*
|
|
78 |
*/
|
|
79 |
void connectSessions();
|
85
|
80 |
|
|
81 |
private:
|
|
82 |
|
|
83 |
Q_DISABLE_COPY(CaClientNotifierProxy)
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif //_CACLIENTNOTIFIERPROXY_H
|