|
1 /* |
|
2 * Copyright (c) 2006 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 |
|
19 #ifndef NCDPARSEROBSERVERBUNDLEIMPL_H |
|
20 #define NCDPARSEROBSERVERBUNDLEIMPL_H |
|
21 |
|
22 #include "ncdparserobserver.h" |
|
23 |
|
24 class MNcdProtocolDefaultObserver; |
|
25 |
|
26 class CNcdParserObserverBundleImpl : public CBase, |
|
27 public MNcdParserObserverBundle |
|
28 { |
|
29 public: |
|
30 static CNcdParserObserverBundleImpl* NewL( |
|
31 MNcdProtocolDefaultObserver* aDefaultObserver ); |
|
32 |
|
33 ~CNcdParserObserverBundleImpl(); |
|
34 private: |
|
35 CNcdParserObserverBundleImpl( |
|
36 MNcdProtocolDefaultObserver* aDefaultObserver ); |
|
37 void ConstructL(); |
|
38 |
|
39 public: // From MNcdParserObserverBundle |
|
40 void SetParserObserver( |
|
41 MNcdParserObserver* aObserver ); |
|
42 MNcdParserObserver* ParserObserver() const; |
|
43 |
|
44 void SetEntityObserver( |
|
45 MNcdParserEntityObserver* aObserver ); |
|
46 MNcdParserEntityObserver* EntityObserver() const; |
|
47 |
|
48 void SetPurchaseObserver( |
|
49 MNcdParserPurchaseObserver* aObserver ); |
|
50 MNcdParserPurchaseObserver* PurchaseObserver() const; |
|
51 |
|
52 void SetSubscriptionObserver( |
|
53 MNcdParserSubscriptionObserver* aObserver ); |
|
54 MNcdParserSubscriptionObserver* SubscriptionObserver() const; |
|
55 |
|
56 void SetSessionObserver( |
|
57 MNcdParserSessionObserver* aObserver ); |
|
58 MNcdParserSessionObserver* SessionObserver() const; |
|
59 |
|
60 void SetConfigurationProtocolObserver( MNcdParserConfigurationProtocolObserver* aObserver ); |
|
61 MNcdParserConfigurationProtocolObserver* ConfigurationProtocolObserver() const; |
|
62 |
|
63 void SetInformationObserver( MNcdParserInformationObserver* aObserver ); |
|
64 MNcdParserInformationObserver* InformationObserver() const; |
|
65 |
|
66 void SetDataBlocksObserver( MNcdParserDataBlocksObserver* aObserver ); |
|
67 MNcdParserDataBlocksObserver* DataBlocksObserver() const; |
|
68 |
|
69 void SetErrorObserver( MNcdParserErrorObserver* aObserver ); |
|
70 MNcdParserErrorObserver* ErrorObserver() const; |
|
71 |
|
72 void SetQueryObserver( MNcdParserQueryObserver* aObserver ); |
|
73 MNcdParserQueryObserver* QueryObserver() const; |
|
74 |
|
75 const TDesC& SessionOrigin() const; |
|
76 public: |
|
77 void SetSessionOriginL( const TDesC& aSessionOrigin ); |
|
78 private: |
|
79 MNcdParserObserver* iObserver; |
|
80 MNcdParserEntityObserver* iEntityObserver; |
|
81 MNcdParserPurchaseObserver* iPurchaseObserver; |
|
82 MNcdParserSubscriptionObserver* iSubscriptionObserver; |
|
83 MNcdParserSessionObserver* iSessionObserver; |
|
84 MNcdParserInformationObserver* iInformationObserver; |
|
85 MNcdParserDataBlocksObserver* iDataBlocksObserver; |
|
86 MNcdParserConfigurationProtocolObserver* iConfigurationProtocolObserver; |
|
87 MNcdParserErrorObserver* iErrorObserver; |
|
88 MNcdParserQueryObserver* iQueryObserver; |
|
89 HBufC* iSessionOrigin; |
|
90 }; |
|
91 |
|
92 #endif |