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 : Content Arsenal client session
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CACLIENTSUBSESSION_H_
|
|
19 |
#define CACLIENTSUBSESSION_H_
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include "cadef.h"
|
|
23 |
|
|
24 |
class RCaClientNotifierSession;
|
|
25 |
class CCaClientNotifier;
|
|
26 |
class IDataObserver;
|
|
27 |
class CCaInnerNotifierFilter;
|
|
28 |
class CCaInnerEntry;
|
|
29 |
|
|
30 |
class RCaClientSubSession: public RSubSessionBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
RCaClientSubSession( const RCaClientNotifierSession* aSession,
|
|
34 |
const IDataObserver* aObserver,
|
|
35 |
const CCaInnerNotifierFilter* aInnerNotifierFilter );
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Create subsession.
|
|
39 |
*/
|
|
40 |
void CreateL();
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Close subsession
|
|
44 |
*/
|
|
45 |
void Close();
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Sends request for notification reqistering.
|
|
49 |
* @param aStatus status.
|
|
50 |
*/
|
|
51 |
void RegisterForNotificationsL( TRequestStatus& aStatus ) const;
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Send request for notification unregistering.
|
|
55 |
*/
|
|
56 |
void UnregisterForNotifications() const;
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Sends request for getting change information.
|
|
60 |
*/
|
|
61 |
void GetChangeInfoAndNotifyObserverL() const;
|
|
62 |
|
|
63 |
private:
|
|
64 |
/**
|
|
65 |
* Notify observer.
|
|
66 |
* @param aEntry pointer to inner entry.
|
|
67 |
* @param aChangeType change type.
|
|
68 |
*/
|
|
69 |
void NotifyObserver(
|
|
70 |
CCaInnerEntry* aEntry,
|
|
71 |
TChangeType aChangeType ) const;
|
|
72 |
|
|
73 |
private:
|
|
74 |
/**
|
|
75 |
* Not own.
|
|
76 |
*/
|
|
77 |
const RCaClientNotifierSession* iSession;
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Not own.
|
|
81 |
*/
|
|
82 |
const IDataObserver* iObserver;
|
|
83 |
|
|
84 |
/**
|
|
85 |
* Not own.
|
|
86 |
*/
|
|
87 |
const CCaInnerNotifierFilter* iInnerNotifierFilter;
|
|
88 |
|
|
89 |
/**
|
|
90 |
* Own.
|
|
91 |
*/
|
|
92 |
CCaClientNotifier* iNotifier;
|
|
93 |
|
|
94 |
/**
|
|
95 |
* Own.
|
|
96 |
*/
|
|
97 |
TPckgBuf<TInt>* iMessageSize;
|
|
98 |
};
|
|
99 |
|
|
100 |
#endif /* CACLIENTSUBSESSION_H_ */
|