void UIDaemonHandler::UnlockAll() { for(int i = 0; i < appList.count(); i++) { if(!((UIAppDesc*)appList.values().at(i))->IsLocked()) continue; if(((UIAppDesc*)appList.values().at(i))->IsComplexApp()) { } else if(((UIAppDesc*)appList.values().at(i))->IsDBusService()) { RemoveSearch(((UIAppDesc*)appList.values().at(i))->getAppName()); } else if(((UIAppDesc*)appList.values().at(i))->IsScript()) { RemoveCMDLine(((UIAppDesc*)appList.values().at(i))->getAppName()); } else { RemoveApp(((UIAppDesc*)appList.values().at(i))->getAppName()); } } }
/** Creates and adds a new document using the specified application factory. The document may be a main document or an embedded document. Any document created with this function must be destroyed using DestroyDocument(). @param aApplicationFactory Should be created implicitly by passing a pointer to a factory function, an ECOM plugin UID, or a CImplementationInformation reference. @return A pointer to the new document. @see CApaProcess::DestroyDocument() @see CApaApplication */ EXPORT_C CApaDocument* CApaProcess::AddNewDocumentL(TApaApplicationFactory aApplicationFactory) { __SHOW_TRACE(_L("Starting CApaProcess::AddNewDocumentL")); __APA_PROFILE_START(0); RApaApplication* app = AddAppL(aApplicationFactory); // use the app to create a doc CApaDocument* doc = NULL; TRAPD(err, doc = CreateDocL(app->Application())); if (err) RemoveApp(app); // remove app as it has been orphaned User::LeaveIfError(err); __PROFILE_END(0); return doc; } //lint !e1762 Member function could be made const - Not true