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 "tmsglobalvoleffectbodyimpl.h" |
19 #include "tmsglobalvoleffectbodyimpl.h" |
20 #include "tmsutility.h" |
|
21 #include "tmsglobalvoleffectimpl.h" |
20 #include "tmsglobalvoleffectimpl.h" |
22 |
21 |
23 using namespace TMS; |
22 using namespace TMS; |
24 |
23 |
25 TMSGlobalVolEffectImpl::TMSGlobalVolEffectImpl() |
24 TMSGlobalVolEffectImpl::TMSGlobalVolEffectImpl() |
43 |
42 |
44 if (ret == TMS_RESULT_SUCCESS) |
43 if (ret == TMS_RESULT_SUCCESS) |
45 { |
44 { |
46 this->iBody = bodyimpl; |
45 this->iBody = bodyimpl; |
47 } |
46 } |
48 |
|
49 TRACE_PRN_FN_EXT; |
47 TRACE_PRN_FN_EXT; |
50 return ret; |
48 return ret; |
51 } |
49 } |
52 |
50 |
53 gint TMSGlobalVolEffectImpl::Create(TMSEffect*& tmseffect) |
51 gint TMSGlobalVolEffectImpl::Create(TMSEffect*& tmseffect) |
63 { |
61 { |
64 delete self; |
62 delete self; |
65 self = NULL; |
63 self = NULL; |
66 } |
64 } |
67 } |
65 } |
68 |
|
69 if (self && ret == TMS_RESULT_SUCCESS) |
66 if (self && ret == TMS_RESULT_SUCCESS) |
70 { |
67 { |
71 tmseffect = self; |
68 tmseffect = self; |
72 ret = self->SetParentEffect(tmseffect); |
69 ret = self->SetParent(tmseffect); |
73 } |
70 } |
74 |
|
75 TRACE_PRN_FN_EXT; |
71 TRACE_PRN_FN_EXT; |
76 return ret; |
72 return ret; |
77 } |
73 } |
78 |
74 |
79 gint TMSGlobalVolEffectImpl::SetParentEffect(TMSEffect*& parenteffect) |
75 gint TMSGlobalVolEffectImpl::SetParent(TMSEffect*& parent) |
80 { |
76 { |
81 gint ret(TMS_RESULT_SUCCESS); |
77 gint ret(TMS_RESULT_SUCCESS); |
82 if (this->iBody) |
78 if (this->iBody) |
83 { |
79 { |
84 ((TMSGlobalVolEffectBodyImpl*) this->iBody)->SetParentEffect(parenteffect); |
80 ((TMSGlobalVolEffectBodyImpl*) this->iBody)->SetParent(parent); |
85 } |
81 } |
86 else |
82 else |
87 { |
83 { |
88 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
84 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
89 } |
85 } |
90 return ret; |
86 return ret; |
91 } |
87 } |
92 |
88 |
93 // End of file |
|