30 TMsvEntry tentry; |
30 TMsvEntry tentry; |
31 TMsvId service; |
31 TMsvId service; |
32 aSession.GetEntry( aServiceId, service, tentry ); |
32 aSession.GetEntry( aServiceId, service, tentry ); |
33 |
33 |
34 CIpsSosAOBaseAgent* self = NULL; |
34 CIpsSosAOBaseAgent* self = NULL; |
35 if ( tentry.iMtm.iUid == KSenduiMtmImap4UidValue ) |
35 if ( tentry.iMtm == KUidMsgTypeIMAP4 ) |
36 { |
36 { |
37 CIpsSosAOImapAgent* imap = CIpsSosAOImapAgent::NewL( |
37 CIpsSosAOImapAgent* imap = CIpsSosAOImapAgent::NewL( |
38 aSession, aOpResponse, aServiceId ); |
38 aSession, aOpResponse, aServiceId ); |
39 self = static_cast<CIpsSosAOBaseAgent*>(imap); |
39 self = static_cast<CIpsSosAOBaseAgent*>(imap); |
40 self->iMtmType = KSenduiMtmImap4Uid; |
40 self->iMtmType = KUidMsgTypeIMAP4; |
41 } |
41 } |
42 else if ( tentry.iMtm.iUid == KSenduiMtmPop3UidValue ) |
42 else if ( tentry.iMtm == KUidMsgTypePOP3 ) |
43 { |
43 { |
44 CIpsSosAOPopAgent* pop = CIpsSosAOPopAgent::NewL( |
44 CIpsSosAOPopAgent* pop = CIpsSosAOPopAgent::NewL( |
45 aSession, aOpResponse, aServiceId ); |
45 aSession, aOpResponse, aServiceId ); |
46 self = static_cast<CIpsSosAOBaseAgent*>(pop); |
46 self = static_cast<CIpsSosAOBaseAgent*>(pop); |
47 self->iMtmType = KSenduiMtmPop3Uid; |
47 self->iMtmType = KUidMsgTypePOP3; |
48 } |
48 } |
49 else |
49 else |
50 { |
50 { |
51 User::Panic( KIpsAOPlgPanicLit, KErrGeneral ); |
51 User::Panic( KIpsAOPlgPanicLit, KErrGeneral ); |
52 } |
52 } |
147 // ---------------------------------------------------------------------------- |
147 // ---------------------------------------------------------------------------- |
148 TInt CIpsSosAOBaseAgent::GetFSPluginId() const |
148 TInt CIpsSosAOBaseAgent::GetFSPluginId() const |
149 { |
149 { |
150 FUNC_LOG; |
150 FUNC_LOG; |
151 TInt pluginId = 0; |
151 TInt pluginId = 0; |
152 if ( iMtmType.iUid == KSenduiMtmImap4UidValue ) |
152 if ( iMtmType == KUidMsgTypeIMAP4 ) |
153 { |
153 { |
154 pluginId = IPSSOSIMAP4PLUGIN_IMPLEMENTATION_UID; |
154 pluginId = IPSSOSIMAP4PLUGIN_IMPLEMENTATION_UID; |
155 } |
155 } |
156 else if ( iMtmType.iUid == KSenduiMtmPop3UidValue ) |
156 else if ( iMtmType == KUidMsgTypePOP3 ) |
157 { |
157 { |
158 pluginId = IPSSOSPOP3PLUGIN_IMPLEMENTATION_UID; |
158 pluginId = IPSSOSPOP3PLUGIN_IMPLEMENTATION_UID; |
159 } |
159 } |
160 return pluginId; |
160 return pluginId; |
161 } |
161 } |