equal
deleted
inserted
replaced
27 #include <protocolpresentitygroupsdatahost.h> |
27 #include <protocolpresentitygroupsdatahost.h> |
28 #include <protocolpresencedatahost.h> |
28 #include <protocolpresencedatahost.h> |
29 #include <ximpobjectcollection.h> |
29 #include <ximpobjectcollection.h> |
30 #include <ximpobjectfactory.h> |
30 #include <ximpobjectfactory.h> |
31 #include <presenceobjectfactory.h> |
31 #include <presenceobjectfactory.h> |
|
32 #include <escapeutils.h> |
32 |
33 |
33 #include "presencepluginvirtualgroup.h" |
34 #include "presencepluginvirtualgroup.h" |
34 #include "mpresencepluginconnectionobs.h" |
35 #include "mpresencepluginconnectionobs.h" |
35 #include "presenceplugincommon.h" |
36 #include "presenceplugincommon.h" |
36 #include "presencepluginwatcher.h" |
37 #include "presencepluginwatcher.h" |
137 |
138 |
138 HBufC8* pres8 = NULL; |
139 HBufC8* pres8 = NULL; |
139 pres8 = |
140 pres8 = |
140 CnvUtfConverter::ConvertFromUnicodeToUtf8L( iPresIdentity->Des() ); |
141 CnvUtfConverter::ConvertFromUnicodeToUtf8L( iPresIdentity->Des() ); |
141 CleanupStack::PushL( pres8 ); // << pres8 |
142 CleanupStack::PushL( pres8 ); // << pres8 |
142 |
143 |
|
144 // remove escapes |
|
145 HBufC8* encodedUsername = EscapeUtils::EscapeEncodeL( *pres8, EscapeUtils::EEscapeNormal ); |
|
146 CleanupStack::PopAndDestroy( pres8 ); |
|
147 CleanupStack::PushL( encodedUsername ); |
|
148 |
143 CPresencePluginEntityWatcher* watcher = |
149 CPresencePluginEntityWatcher* watcher = |
144 MatchWatcherL( pres8->Des(), ETrue ); |
150 MatchWatcherL( encodedUsername->Des(), ETrue ); |
145 watcher->StartSubscribeL( pres8->Des(), aStatus ); |
151 watcher->StartSubscribeL( encodedUsername->Des(), aStatus ); |
146 CleanupStack::PopAndDestroy( pres8 ); // >> pres8 |
152 CleanupStack::PopAndDestroy( encodedUsername ); |
147 } |
153 } |
148 |
154 |
149 // --------------------------------------------------------------------------- |
155 // --------------------------------------------------------------------------- |
150 // CPresencePluginWatcher::DoUpdatePresentityPresenceSubscriptionPifL() |
156 // CPresencePluginWatcher::DoUpdatePresentityPresenceSubscriptionPifL() |
151 // --------------------------------------------------------------------------- |
157 // --------------------------------------------------------------------------- |