96 { |
96 { |
97 RApaLsSession apparcSession; |
97 RApaLsSession apparcSession; |
98 User::LeaveIfError( apparcSession.Connect() ); |
98 User::LeaveIfError( apparcSession.Connect() ); |
99 |
99 |
100 apparcSession.PrepareNonNativeApplicationsUpdatesL(); |
100 apparcSession.PrepareNonNativeApplicationsUpdatesL(); |
101 apparcSession.DeregisterNonNativeApplicationL( aUid ); |
101 apparcSession.DeregisterNonNativeApplicationL( aUid ); |
102 apparcSession.DeregisterNonNativeApplicationTypeL( aUid ); |
|
103 apparcSession.CommitNonNativeApplicationsUpdatesL(); |
102 apparcSession.CommitNonNativeApplicationsUpdatesL(); |
104 apparcSession.Close(); |
103 apparcSession.Close(); |
105 } |
104 } |
|
105 |
|
106 // ============================================================================ |
|
107 // CWidgetRegistrationManager::DeregisterWidgetL() |
|
108 // Deregister installed widgets as non native app |
|
109 // |
|
110 // @since 5.1 |
|
111 // ============================================================================ |
|
112 // |
|
113 void CWidgetRegistrationManager::DeregisterWidgetsL( const RArray<TUid>& aUidList ) |
|
114 { |
|
115 RApaLsSession apparcSession; |
|
116 User::LeaveIfError( apparcSession.Connect() ); |
|
117 |
|
118 apparcSession.PrepareNonNativeApplicationsUpdatesL(); |
|
119 for(TInt i = 0;i<aUidList.Count();i++) |
|
120 { |
|
121 apparcSession.DeregisterNonNativeApplicationL( aUidList[i] ); |
|
122 } |
|
123 apparcSession.CommitNonNativeApplicationsUpdatesL(); |
|
124 apparcSession.Close(); |
|
125 } |
106 |
126 |
107 // ============================================================================ |
127 // ============================================================================ |
108 // CWidgetRegistrationManager::RegisterWidgetL() |
128 // CWidgetRegistrationManager::RegisterWidgetL() |
109 // Register installed widget as non native app |
129 // Register installed widget as non native app |
110 // |
130 // |