equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef BUILDERVISITOR_H |
|
17 #define BUILDERVISITOR_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <btsdp.h> |
|
21 #include "sdputil.h" |
|
22 #include "MAttributeVisitor.h" |
|
23 |
|
24 class CSdpAttr; |
|
25 class CSdpServRecord; |
|
26 |
|
27 NONSHARABLE_CLASS(CBuilderAdapterVisitor) : public CBase, public MAttributeVisitor |
|
28 { |
|
29 public: |
|
30 IMPORT_C CBuilderAdapterVisitor(MSdpElementBuilder* aBuilder); |
|
31 void SetBuilder(MSdpElementBuilder* aBuilder); |
|
32 MSdpElementBuilder* Builder(); |
|
33 |
|
34 private: |
|
35 // Implementation of MAttributeVisitor interface |
|
36 void VisitAttributeL(CSdpAttr &aAttribute); |
|
37 void VisitAttributeValueL(CSdpAttrValue &aValue, TSdpElementType aType); |
|
38 void StartListL(CSdpAttrValueList &aList); |
|
39 void EndListL(); |
|
40 |
|
41 private: |
|
42 //CSdpAttrValue* iParent; |
|
43 MSdpElementBuilder* iBuilder; |
|
44 }; |
|
45 |
|
46 inline void CBuilderAdapterVisitor::SetBuilder(MSdpElementBuilder* aBuilder) |
|
47 { |
|
48 iBuilder = aBuilder; |
|
49 } |
|
50 |
|
51 inline MSdpElementBuilder* CBuilderAdapterVisitor::Builder() |
|
52 { |
|
53 return iBuilder; |
|
54 } |
|
55 |
|
56 |
|
57 |
|
58 #endif |