|
1 // Copyright (c) 2005-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 // Name : CSIPClientDiscovery.cpp |
|
15 // Part of : SIP Client Resolver |
|
16 // SIP Client Discovery API |
|
17 // Version : 1.0 |
|
18 // |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include "sipclientdiscovery.h" |
|
24 #include "CSIPClientDiscoveryImpl.h" |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CSIPClientDiscovery::NewL |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CSIPClientDiscovery* CSIPClientDiscovery::NewL ( |
|
31 MSIPClientDiscoveryObserver& aObserver, |
|
32 TUid aSelf) |
|
33 { |
|
34 CSIPClientDiscovery* self = CSIPClientDiscovery::NewLC (aObserver, aSelf); |
|
35 CleanupStack::Pop (self); |
|
36 return self; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CSIPClientDiscovery::NewLC |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 EXPORT_C CSIPClientDiscovery* CSIPClientDiscovery::NewLC ( |
|
44 MSIPClientDiscoveryObserver& aObserver, |
|
45 TUid aSelf) |
|
46 { |
|
47 CSIPClientDiscovery* self = new(ELeave)CSIPClientDiscovery; |
|
48 CleanupStack::PushL (self); |
|
49 self->ConstructL (aObserver, aSelf); |
|
50 return self; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CSIPClientDiscovery::ConstructL |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void CSIPClientDiscovery::ConstructL ( |
|
58 MSIPClientDiscoveryObserver& aObserver, |
|
59 TUid aSelf) |
|
60 { |
|
61 iCSIPClientDiscoveryImpl = CSIPClientDiscoveryImpl::NewL (aObserver,aSelf); |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CSIPClientDiscovery::~CSIPClientDiscovery |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 EXPORT_C CSIPClientDiscovery::~CSIPClientDiscovery() |
|
69 { |
|
70 delete iCSIPClientDiscoveryImpl; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CSIPClientDiscovery::RegisterL |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C void CSIPClientDiscovery::RegisterL(TUid aChannel) |
|
78 { |
|
79 iCSIPClientDiscoveryImpl->RegisterL(aChannel); |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CSIPClientDiscovery::Deregister |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C TInt CSIPClientDiscovery::Deregister(TUid aChannel) |
|
87 { |
|
88 return iCSIPClientDiscoveryImpl->Deregister(aChannel); |
|
89 } |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // CSIPClientDiscovery::ChannelL |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 EXPORT_C TUint32 CSIPClientDiscovery::ChannelL(RStringF aRequestMethod, |
|
96 const TDesC8& aRequestUri, |
|
97 const RPointerArray<CSIPHeaderBase>& aHeaders, |
|
98 const TDesC8& aContent, |
|
99 const CSIPContentTypeHeader* aContentType) |
|
100 { |
|
101 return iCSIPClientDiscoveryImpl->ChannelL (aRequestMethod, |
|
102 aRequestUri, |
|
103 aHeaders, |
|
104 aContent, |
|
105 aContentType); |
|
106 } |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // CSIPClientDiscovery::ChannelL |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 EXPORT_C TUint32 CSIPClientDiscovery::ChannelL(TUid aResolver, |
|
113 RStringF aRequestMethod, |
|
114 const TDesC8& aRequestUri, |
|
115 const RPointerArray<CSIPHeaderBase>& aHeaders, |
|
116 const TDesC8& aContent, |
|
117 const CSIPContentTypeHeader* aContentType) |
|
118 { |
|
119 return iCSIPClientDiscoveryImpl->ChannelL(aResolver, |
|
120 aRequestMethod, |
|
121 aRequestUri, |
|
122 aHeaders, |
|
123 aContent, |
|
124 aContentType); |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // CSIPClientDiscovery::Cancel |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 EXPORT_C void CSIPClientDiscovery::Cancel(TUint32 aRequestId) |
|
132 { |
|
133 iCSIPClientDiscoveryImpl->Cancel (aRequestId); |
|
134 } |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 // CSIPClientDiscovery::CancelAll |
|
138 // ----------------------------------------------------------------------------- |
|
139 // |
|
140 EXPORT_C void CSIPClientDiscovery::CancelAll() |
|
141 { |
|
142 iCSIPClientDiscoveryImpl->CancelAll(); |
|
143 } |
|
144 |
|
145 // End of File |