|
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 <tms.h> |
|
19 #include "tmsutility.h" |
|
20 #include "tmsmodemsinkimpl.h" |
|
21 #include "tmsmodemsinkbodyimpl.h" |
|
22 |
|
23 using namespace TMS; |
|
24 |
|
25 TMSModemSinkImpl::TMSModemSinkImpl() |
|
26 { |
|
27 } |
|
28 |
|
29 TMSModemSinkImpl::~TMSModemSinkImpl() |
|
30 { |
|
31 } |
|
32 |
|
33 gint TMSModemSinkImpl::PostConstruct() |
|
34 { |
|
35 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
|
36 TMSModemSinkBody* bodyimpl(NULL); |
|
37 TRACE_PRN_FN_ENT; |
|
38 ret = TMSModemSinkBodyImpl::Create(bodyimpl); |
|
39 if (ret == TMS_RESULT_SUCCESS) |
|
40 { |
|
41 this->iBody = bodyimpl; |
|
42 } |
|
43 TRACE_PRN_FN_EXT; |
|
44 return ret; |
|
45 } |
|
46 |
|
47 gint TMSModemSinkImpl::Create(TMSSink*& tmssink) |
|
48 { |
|
49 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
|
50 TMSModemSinkImpl *self = new TMSModemSinkImpl; |
|
51 |
|
52 TRACE_PRN_FN_ENT; |
|
53 if (self) |
|
54 { |
|
55 ret = self->PostConstruct(); |
|
56 if (ret != TMS_RESULT_SUCCESS) |
|
57 { |
|
58 delete self; |
|
59 self = NULL; |
|
60 } |
|
61 } |
|
62 tmssink = self; |
|
63 TRACE_PRN_FN_EXT; |
|
64 return ret; |
|
65 } |
|
66 |
|
67 gint TMSModemSinkImpl::SetProxy(TMSCallProxy* /*aProxy*/, |
|
68 gpointer /*queuehandler*/) |
|
69 { |
|
70 gint ret = TMS_RESULT_SUCCESS; |
|
71 // ((TMSModemSinkBodyImpl*) this->iBody)->SetProxy(aProxy, queuehandler); |
|
72 return ret; |
|
73 } |
|
74 |
|
75 // End of file |