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