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> |
|
19 #include "tmsutility.h" |
18 #include "tmsutility.h" |
20 #include "tmsglobalroutingbodyimpl.h" |
19 #include "tmsglobalroutingbodyimpl.h" |
21 #include "tmsglobalroutingimpl.h" |
20 #include "tmsglobalroutingimpl.h" |
22 |
21 |
23 using namespace TMS; |
22 using namespace TMS; |
47 } |
46 } |
48 TRACE_PRN_FN_EXT; |
47 TRACE_PRN_FN_EXT; |
49 return ret; |
48 return ret; |
50 } |
49 } |
51 |
50 |
52 // TO DO stop exporting this function |
|
53 EXPORT_C gint TMSGlobalRoutingImpl::Create(TMSGlobalRouting*& globrouting) |
51 EXPORT_C gint TMSGlobalRoutingImpl::Create(TMSGlobalRouting*& globrouting) |
54 { |
52 { |
55 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
53 gint ret(TMS_RESULT_INSUFFICIENT_MEMORY); |
56 TMSGlobalRoutingImpl *self = new TMSGlobalRoutingImpl(); |
54 TMSGlobalRoutingImpl *self = new TMSGlobalRoutingImpl(); |
57 |
55 |
63 { |
61 { |
64 delete self; |
62 delete self; |
65 self = NULL; |
63 self = NULL; |
66 } |
64 } |
67 } |
65 } |
68 globrouting = self; |
66 if (self && ret == TMS_RESULT_SUCCESS) |
|
67 { |
|
68 globrouting = self; |
|
69 ret = self->SetParent(globrouting); |
|
70 } |
69 TRACE_PRN_FN_EXT; |
71 TRACE_PRN_FN_EXT; |
70 return ret; |
72 return ret; |
71 } |
73 } |
72 |
74 |
73 EXPORT_C gint TMSGlobalRoutingImpl::Delete(TMSGlobalRouting*& globrouting) |
75 EXPORT_C gint TMSGlobalRoutingImpl::Delete(TMSGlobalRouting*& globrouting) |
78 globrouting = NULL; |
80 globrouting = NULL; |
79 TRACE_PRN_FN_EXT; |
81 TRACE_PRN_FN_EXT; |
80 return ret; |
82 return ret; |
81 } |
83 } |
82 |
84 |
83 // End of file |
85 gint TMSGlobalRoutingImpl::SetParent(TMSGlobalRouting*& parent) |
|
86 { |
|
87 gint ret(TMS_RESULT_SUCCESS); |
|
88 if (this->iBody) |
|
89 { |
|
90 ((TMSGlobalRoutingBodyImpl*) this->iBody)->SetParent(parent); |
|
91 } |
|
92 else |
|
93 { |
|
94 ret = TMS_RESULT_UNINITIALIZED_OBJECT; |
|
95 } |
|
96 return ret; |
|
97 } |
|
98 |