|
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 : CSdpMLineTransportStrategy.cpp |
|
15 // Part of : SIP Client Resolver |
|
16 // Version : 1.0 |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #include "CSdpMLineTransportStrategy.h" |
|
22 #include "sdpmediafield.h" |
|
23 |
|
24 // ---------------------------------------------------------------------------- |
|
25 // CSdpMLineTransportStrategy::NewLC |
|
26 // ---------------------------------------------------------------------------- |
|
27 // |
|
28 CSdpMLineTransportStrategy* CSdpMLineTransportStrategy::NewLC( |
|
29 const MSipClients& aSipClients) |
|
30 { |
|
31 CSdpMLineTransportStrategy* self = |
|
32 new(ELeave)CSdpMLineTransportStrategy(aSipClients); |
|
33 CleanupStack::PushL(self); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ---------------------------------------------------------------------------- |
|
38 // CSdpMLineTransportStrategy::CSdpMLineTransportStrategy |
|
39 // ---------------------------------------------------------------------------- |
|
40 // |
|
41 CSdpMLineTransportStrategy::CSdpMLineTransportStrategy( |
|
42 const MSipClients& aSipClients) |
|
43 : CSdpMLineStrategyBase(aSipClients) |
|
44 { |
|
45 } |
|
46 |
|
47 // ---------------------------------------------------------------------------- |
|
48 // CSdpMLineTransportStrategy::~CSdpMLineTransportStrategy |
|
49 // ---------------------------------------------------------------------------- |
|
50 // |
|
51 CSdpMLineTransportStrategy::~CSdpMLineTransportStrategy () |
|
52 { |
|
53 } |
|
54 |
|
55 // ---------------------------------------------------------------------------- |
|
56 // CSdpMLineTransportStrategy::FieldsMatchL |
|
57 // ---------------------------------------------------------------------------- |
|
58 // |
|
59 TBool CSdpMLineTransportStrategy::FieldsMatchL( |
|
60 const CSdpMediaField& aReceivedMedia, |
|
61 const CSdpMediaField& aClientMedia) |
|
62 { |
|
63 if (aReceivedMedia.Media() == aClientMedia.Media() && |
|
64 aReceivedMedia.Protocol() == aClientMedia.Protocol()) |
|
65 { |
|
66 return ETrue; |
|
67 } |
|
68 return EFalse; |
|
69 } |