/*------------------------------------------------------------------------------*\ () - \*------------------------------------------------------------------------------*/ bool BmPrefsSendMailView::SanityCheck() { return DoSanityCheck( TheSmtpAccountList.Get(), Name()); }
/*------------------------------------------------------------------------------*\ () - \*------------------------------------------------------------------------------*/ bool BmPrefsFilterView::SanityCheck() { return DoSanityCheck( TheFilterList.Get(), Name()); }
void CStartupProperties::ConstructFromResourceL(TResourceReader& aSource) { const TStartupCommandType commandType = static_cast<TStartupCommandType>(aSource.ReadUint16()); iStartupType = ((commandType==EStartupApp)||(commandType==EStartupApp2)) ? EStartApp : EStartProcess; iFileName = aSource.ReadHBufCL(); if(iFileName) { TPtr writeableFilename = iFileName->Des(); writeableFilename.TrimAll(); } iArgs = aSource.ReadHBufCL(); if(iArgs) { TPtr writeableArgs = iArgs->Des(); writeableArgs.TrimAll(); } iStartMethod = static_cast<TStartMethod>(aSource.ReadUint16()); switch(commandType) { case EStartupApp: delete iArgs; // deleted for backwards compatibility iArgs = NULL; iViewless = static_cast<TUint16>(aSource.ReadUint16()); iStartInBackground = static_cast<TUint16>(aSource.ReadUint16()); iTimeout = aSource.ReadInt32(); iRecoveryMethod.iActionOnCommandFailure = static_cast<TActionOnCommandFailure> (aSource.ReadUint16()); iNoOfRetries = static_cast<TUint16> (aSource.ReadUint16()); break; case EStartupApp2: iViewless = static_cast<TUint16>(aSource.ReadUint16()); iStartInBackground = static_cast<TUint16>(aSource.ReadUint16()); iTimeout = aSource.ReadInt32(); iRecoveryMethod.iRecoveryMethod = static_cast<TRecoveryMethod> (aSource.ReadUint16()); iNoOfRetries = static_cast<TUint16> (aSource.ReadUint16()); iMonitored = static_cast<TUint16>(aSource.ReadUint16()); iRestartMode = aSource.ReadInt16(); break; case EStartupProcess: iTimeout = aSource.ReadInt32(); iRecoveryMethod.iActionOnCommandFailure = static_cast<TActionOnCommandFailure>(aSource.ReadUint16()); iNoOfRetries = static_cast<TUint16> (aSource.ReadUint16()); break; case EStartupProcess2: iTimeout = aSource.ReadInt32(); iRecoveryMethod.iRecoveryMethod = static_cast<TRecoveryMethod>(aSource.ReadUint16()); iNoOfRetries = static_cast<TUint16> (aSource.ReadUint16()); iMonitored = static_cast<TUint16>(aSource.ReadUint16()); iRestartMode = aSource.ReadInt16(); break; default: PanicNow(KPanicStartupProperties, EInvalidCommandType); break; } DoSanityCheck(commandType); }
/*------------------------------------------------------------------------------*\ () - \*------------------------------------------------------------------------------*/ bool BmPrefsIdentityView::SanityCheck() { return DoSanityCheck( TheIdentityList.Get(), Name()); }