void CTrkConnSettingsList::ControlStateChangedBeforeL(TInt aIndex) { CAknSettingItemArray* array = SettingItemArray(); CTrkConnIndexPopupSettingItem* connTypePopUp = (CTrkConnIndexPopupSettingItem *)array->At(0); TInt index = connTypePopUp->CurrentIndex(); CAknSettingItem* portEditor = array->At(1); CAknSettingItem* baudRatePopUp = array->At(2); switch(aIndex) { case 1: { switch(index) { case 2: { _LIT(KPortNumberInfo, "Recommended port for IR connection is 0."); CAknGlobalNote* globalNote = CAknGlobalNote::NewLC(); globalNote->ShowNoteL(EAknGlobalInformationNote, KPortNumberInfo); CleanupStack::PopAndDestroy(globalNote); break; } default: break; } } default: break; } }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CMgAppUi::ShowNoteL(const TDesC& aMessage) { CAknGlobalNote* dialog = CAknGlobalNote::NewLC(); TInt NoteId = dialog->ShowNoteL(EAknGlobalInformationNote,aMessage); User::After(2000000); dialog->CancelNoteL(NoteId); CleanupStack::PopAndDestroy(dialog); }
TInt StartWaitingDlg(const TInt& aTextResourceId) { HBufC* prompt = StringLoader::LoadLC( aTextResourceId ); CAknGlobalNote* globalNote = CAknGlobalNote::NewL(); CleanupStack::PushL( globalNote ); TInt noteId = globalNote->ShowNoteL( EAknGlobalWaitNote, prompt->Des() ); CleanupStack::PopAndDestroy(2); return noteId; }
void TRMainWindow::showKMLSavedNotification() { #ifdef Q_OS_SYMBIAN QString msg = tr("KML File saved on C: Drive, transfer to the PC to open it with Google Earth"); TPtrC message (reinterpret_cast<const TText*>(msg.constData()),msg.length()); CAknGlobalNote *notification = CAknGlobalNote::NewLC(); notification->ShowNoteL(EAknGlobalInformationNote,message); CleanupStack::PopAndDestroy(notification); #else QMessageBox::information(0, "KML File saved", "KML File saved on C: Drive, transfer to the PC to open it with Google Earth"); #endif }
void ShowNoteL(const TDesC& aNote) { __LOGSTR("ShowNote"); __LOGSTR1("ShowGlobalNote: %S",&aNote); CAknGlobalNote* note = CAknGlobalNote::NewLC(); TInt NoteId; NoteId = note->ShowNoteL(EAknGlobalInformationNote,aNote); User::After(5000000); note->CancelNoteL(NoteId); __CPOPD(note); }
// --------------------------------------------------------------------------- // CTrkSettingsContainer::SaveSettingsL // Save all settings. // --------------------------------------------------------------------------- // void CTrkSettingsContainer::SaveSettingsL() { TRAPD(err, iSettingsList->StoreSettingsL()); if (!err) { err = iSettingsData->SaveSettings(); } if (err!= KErrNone) { _LIT(KUnableToSave, "Unable to save the specified settings"); CAknGlobalNote* globalNote = CAknGlobalNote::NewLC(); globalNote->ShowNoteL(EAknGlobalErrorNote, KUnableToSave); CleanupStack::PopAndDestroy(globalNote); } }
// // CTrkAppUi::ConstructL // void CTrkAppUi::ConstructL() { BaseConstructL(EAknEnableSkin); TInt err = iTrkSession.ConnectToServer(); if(err) { CAknGlobalNote* errNote = CAknGlobalNote::NewL(); CleanupStack::PushL( errNote ); TInt noteid = errNote->ShowNoteL(EAknGlobalErrorNote, KErrorNotification); CleanupStack::PopAndDestroy(); User::Leave(err); } iSettingsData = CTrkSettingsData::NewL(iTrkSession); iAppView = CTrkAppView::NewL(iSettingsData, iTrkSession); AddViewL(iAppView); iSettingsView = CTrkSettingsView::NewL(iSettingsData); AddViewL(iSettingsView); //set the main app view as the default view SetDefaultViewL(*iAppView); }