// preamble
TVerdict RTSUMmTsthStep02::OpenL()
{
    // initialise iScript and associated objects for tests. if this fails, tests are
    // inconclusive (will not run)
    iLogClient  = iSuite->LogSystem();
    TRAPD(err, iTestUtils  = CTestUtils::NewL(iLogClient));
    if(err != KErrNone)
    {
        ERR_PRINTF2(_L("Could not initialise CTestUtils, error code %d"), err);
        return iTestStepResult = EInconclusive;
    }

    // NB : CScript has a NewL() for completion only : it is through NewLC that the Test
    // Framework initialises its CScripts
    TInt64 defTime(-1);
    TRAPD(err2, iTestScript = CScript::NewLC(iTestUtils, iLogClient, defTime, KNullDesC);
          CleanupStack::Pop(iTestScript) );
    if(err2 != KErrNone)
    {
        ERR_PRINTF2(_L("Could not initialise CScript, error code %d"), err2);
        return iTestStepResult = EInconclusive;
    }

    return iTestStepResult = EPass;
}
Example #2
0
/******************************************************************************
* Read all relevant items from KAlarm config.
* Executed on DCOP call to notify a time related value change in the KAlarm
* config file.
*/
void AlarmDaemon::readKAlarmConfig()
{
    KConfig config(locate("config", "kalarmrc"));
    config.setGroup(QString::fromLatin1("General"));
    QDateTime defTime(QDate(1900, 1, 1), QTime());
    mStartOfDay = config.readDateTimeEntry(START_OF_DAY, &defTime).time();
    kdDebug(5900) << "AlarmDaemon::readKAlarmConfig()" << endl;
}