equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Telephony Multimedia Service |
14 * Description: Telephony Multimedia Service |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <tms.h> |
18 #include "tmsutility.h" |
19 #include "tmsgaineffectbodyimpl.h" |
19 #include "tmsgaineffectbodyimpl.h" |
20 #include "tmsutility.h" |
|
21 #include "tmsgaineffectimpl.h" |
20 #include "tmsgaineffectimpl.h" |
22 |
21 |
23 using namespace TMS; |
22 using namespace TMS; |
24 |
23 |
25 TMSGainEffectImpl::TMSGainEffectImpl() |
24 TMSGainEffectImpl::TMSGainEffectImpl() |
62 { |
61 { |
63 delete self; |
62 delete self; |
64 self = NULL; |
63 self = NULL; |
65 } |
64 } |
66 } |
65 } |
67 |
|
68 if (self && ret == TMS_RESULT_SUCCESS) |
66 if (self && ret == TMS_RESULT_SUCCESS) |
69 { |
67 { |
70 tmseffect = self; |
68 tmseffect = self; |
71 ret = self->SetParentEffect(tmseffect); |
69 ret = self->SetParent(tmseffect); |
72 } |
70 } |
73 TRACE_PRN_FN_EXT; |
71 TRACE_PRN_FN_EXT; |
74 return ret; |
|
75 } |
|
76 |
|
77 gint TMSGainEffectImpl::SetParentEffect(TMSEffect*& parenteffect) |
|
78 { |
|
79 gint ret(TMS_RESULT_SUCCESS); |
|
80 if (this->iBody) |
|
81 { |
|
82 ((TMSGainEffectBodyImpl*) this->iBody)->SetParentEffect(parenteffect); |
|
83 } |
|
84 else |
|
85 { |
|
86 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
|
87 } |
|
88 return ret; |
72 return ret; |
89 } |
73 } |
90 |
74 |
91 gint TMSGainEffectImpl::SetProxy(TMSCallProxy* aProxy, gpointer queuehandler) |
75 gint TMSGainEffectImpl::SetProxy(TMSCallProxy* aProxy, gpointer queuehandler) |
92 { |
76 { |
100 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
84 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
101 } |
85 } |
102 return ret; |
86 return ret; |
103 } |
87 } |
104 |
88 |
105 // End of file |
89 gint TMSGainEffectImpl::SetParent(TMSEffect*& parent) |
|
90 { |
|
91 gint ret(TMS_RESULT_SUCCESS); |
|
92 if (this->iBody) |
|
93 { |
|
94 ((TMSGainEffectBodyImpl*) this->iBody)->SetParent(parent); |
|
95 } |
|
96 else |
|
97 { |
|
98 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
|
99 } |
|
100 return ret; |
|
101 } |
|
102 |