equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <tmscall.h> |
|
19 #include "tmscallbody.h" |
|
20 |
|
21 using namespace TMS; |
|
22 |
|
23 EXPORT_C TMSCall::TMSCall() : |
|
24 iBody(NULL) |
|
25 { |
|
26 } |
|
27 |
|
28 EXPORT_C TMSCall::~TMSCall() |
|
29 { |
|
30 delete iBody; |
|
31 } |
|
32 |
|
33 EXPORT_C TMSCallType TMSCall::GetCallType() |
|
34 { |
|
35 TMSCallType calltype(-1); |
|
36 if (iBody) |
|
37 { |
|
38 calltype = iBody->GetCallType(); |
|
39 } |
|
40 return calltype; |
|
41 } |
|
42 |
|
43 EXPORT_C gint TMSCall::GetCallContextId(guint& ctxid) |
|
44 { |
|
45 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
46 if (iBody) |
|
47 { |
|
48 status = iBody->GetCallContextId(ctxid); |
|
49 } |
|
50 return status; |
|
51 } |
|
52 |
|
53 EXPORT_C gint TMSCall::CreateStream(const TMSStreamType type, TMSStream*& strm) |
|
54 { |
|
55 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
56 if (iBody) |
|
57 { |
|
58 status = iBody->CreateStream(type, strm); |
|
59 } |
|
60 return status; |
|
61 } |
|
62 |
|
63 EXPORT_C gint TMSCall::DeleteStream(TMSStream*& strm) |
|
64 { |
|
65 gint status(TMS_RESULT_UNINITIALIZED_OBJECT); |
|
66 if (iBody) |
|
67 { |
|
68 status = iBody->DeleteStream(strm); |
|
69 } |
|
70 return status; |
|
71 } |
|
72 |
|
73 // End of file |