equal
deleted
inserted
replaced
83 iModCounter = 0; |
83 iModCounter = 0; |
84 iDelCounter = 0; |
84 iDelCounter = 0; |
85 #endif |
85 #endif |
86 |
86 |
87 InitializeL(); |
87 InitializeL(); |
88 |
|
89 iReconnect = CPeriodic::NewL(CActive::EPriorityIdle); |
|
90 |
88 |
91 TN_DEBUG1( "CThumbAGDaemon::ConstructL() - end" ); |
89 TN_DEBUG1( "CThumbAGDaemon::ConstructL() - end" ); |
92 } |
90 } |
93 |
91 |
94 // --------------------------------------------------------------------------- |
92 // --------------------------------------------------------------------------- |
126 iProcessor = NULL; |
124 iProcessor = NULL; |
127 } |
125 } |
128 |
126 |
129 iProcessor = CThumbAGProcessor::NewL(); |
127 iProcessor = CThumbAGProcessor::NewL(); |
130 |
128 |
|
129 // MDS session reconnect timer |
|
130 if (!iReconnect) |
|
131 { |
|
132 iReconnect = CPeriodic::NewL(CActive::EPriorityIdle); |
|
133 } |
|
134 |
131 TN_DEBUG1( "CThumbAGDaemon::InitializeL() - connect to MDS" ); |
135 TN_DEBUG1( "CThumbAGDaemon::InitializeL() - connect to MDS" ); |
132 |
136 |
133 if(iMdESession) |
137 if(iMdESession) |
134 { |
138 { |
135 TRAP_IGNORE( iMdESession->RemoveObjectObserverL( *this ) ); |
139 TRAP_IGNORE( iMdESession->RemoveObjectObserverL( *this ) ); |
188 // remove observer with uri |
192 // remove observer with uri |
189 TRAP_IGNORE( iMdESession->RemoveObjectObserverWithUriL( *this ) ); |
193 TRAP_IGNORE( iMdESession->RemoveObjectObserverWithUriL( *this ) ); |
190 #endif |
194 #endif |
191 |
195 |
192 //present observer |
196 //present observer |
193 TRAP_IGNORE(iMdESession->RemoveObjectPresentObserverL( * this )); |
197 TRAP_IGNORE( iMdESession->RemoveObjectPresentObserverL( *this ) ); |
194 |
198 |
195 delete iMdESession; |
199 delete iMdESession; |
196 iMdESession = NULL; |
200 iMdESession = NULL; |
197 } |
201 } |
198 |
202 |