コード例 #1
0
// -----------------------------------------------------------------------------
// CUpnpSecurityDbConnection::CreateTablesL
// Create tables.
// -----------------------------------------------------------------------------
//
void CUpnpSecurityDbConnection::CreateTablesL()
    {
    ExecuteL( KUpnpSecSqlDropAddressList );
    ExecuteL( KUpnpSecSqlDropFileList );

    ExecuteL( KUpnpSecSqlCreateAddressList );
    ExecuteL( KUpnpSecSqlCreateFileList );
    }
コード例 #2
0
void CMdSSqLiteConnection::DoAnalyzeL() 
    {
    _LIT( KAnalyze, "ANALYZE;");
    
    RRowData emptyRow;
    CleanupClosePushL( emptyRow );
    ExecuteL(KAnalyze, emptyRow);
    CleanupStack::PopAndDestroy( &emptyRow ); 
    }
コード例 #3
0
void CTcTestRunner::BearerCompletion( MTcBearerObserver::TOperation aOp,
									  TInt aStatus )
	{
	// If we get an error from the bearer, "recommend" disconnect to the AppUi :-)
	// (usually the only error is KErrDisconnected)
	if( aStatus != KErrNone )
		{
		iObserver.NotifyDisconnect();
		return;
		}

	switch( aOp )
		{
		case MTcBearerObserver::ESend:
			{
			// Clear buffers
			iResponse.Zero();
			iRequest.Zero();
			// Start receiving data again
			Start();
			break;
			}
		case MTcBearerObserver::EReceive:
			{
			// Update request data length (add new data).
			iRequest.SetLength( iRequest.Length() + iFreeRequest.Length() );
			// Do we have a complete request in iRequest?
			if( !iCodec.IsComplete() )
				{
				// No, read more
				Start();
				}
			else
				{
				// Yes, try to execute the request
				TRAPD( err, ExecuteL() );
				// Report any errors
				if( err )
					{
					SendErrorResponse( err );
					}
				iCurrentRequest.Zero();
				iObserver.NotifyStatusChange();
				}
			break;
			}
		default:
			{
			// does not happen, ignored
			break;
			}
		}
	}
コード例 #4
0
TVerdict CT_DataTypeMappingWithSid1::doTestStepL()
{
    INFO_PRINTF1(_L("APPFWK-APPARC-0036: DataTypeMappingWithSid1 - Started"));

    RTestableApaLsSession apaLsSession;
    TEST(apaLsSession.Connect()==KErrNone);
    CleanupClosePushL(apaLsSession);

    //DONT_CHECK since array in type store is uncompressed
    HEAP_TEST_LS_SESSION(apaLsSession, 0, DONT_CHECK, ExecuteL(apaLsSession), NO_CLEANUP);

    CleanupStack::PopAndDestroy(&apaLsSession);


    INFO_PRINTF1(_L("APPFWK-APPARC-0036: DataTypeMappingWithSid1 - Finished"));

    return TestStepResult();
}
コード例 #5
0
TVerdict CTRuleBasedLaunchingStep::doTestStepL()
	{
	INFO_PRINTF1(_L("TRuleBasedLaunchingStep test started...."));
	
	User::LeaveIfError(FbsStartup());
	TInt ret=RFbsSession::Connect();

	User::LeaveIfError(iFs.Connect());
	User::LeaveIfError(iWs.Connect());
	
	TEST(ret==KErrNone);
	__UHEAP_MARK;			
	TRAPD(err, ExecuteL()); 	
	TEST(err == KErrNone);
	INFO_PRINTF2(_L("execute tests ended with return value '%d'"), err);
	__UHEAP_MARKEND; 			
	
	RFbsSession::Disconnect();
	INFO_PRINTF1(_L(".... TRuleBasedLaunchingStep test finished!!"));
	return TestStepResult();
	}
コード例 #6
0
void CMdSSqLiteConnection::TransactionRollbackL()
    {
    if ( !iTransactionOngoing )
        {
        return;
        }
    _LIT(KRollback, "ROLLBACK;");
    RRowData emptyRow;
    CleanupClosePushL( emptyRow );
    TRAPD( err, ExecuteL(KRollback, emptyRow) );
    if (err != KErrNone)
        {
        _LIT( KMdsTransactionRollback, "Transaction rollback error" );
        TraceAndLeaveL( KMdsTransactionRollback, err );
        }    
    if( !iNotFinishFindQuery )
        {
        iEnableTransaction = ETrue;
        }
    iTransactionOngoing = EFalse;
	CleanupStack::PopAndDestroy( &emptyRow );
    }
コード例 #7
0
void CMdSSqLiteConnection::TransactionBeginL()
    {
    if ( !iEnableTransaction || iMdeSqlDb.InTransaction() )
        {
        return;
        }
    iEnableTransaction = EFalse;
    iTransactionOngoing = ETrue;
    _LIT(KBeginTransaction, "BEGIN;");
    RRowData emptyRow;
    CleanupClosePushL( emptyRow );
    TRAPD( err, ExecuteL(KBeginTransaction, emptyRow) );
    if (err != KErrNone)
    	{
    	_LIT( KMdsTransactionBegin, "Transaction begin error" );
        if( !iNotFinishFindQuery )
            {
            iEnableTransaction = ETrue;
            }
        iTransactionOngoing = EFalse;
    	TraceAndLeaveL( KMdsTransactionBegin, err );
    	}
	CleanupStack::PopAndDestroy( &emptyRow );
    }
コード例 #8
0
ファイル: TestCase.cpp プロジェクト: cdaffara/symbiandump-mw1
// From MTest:
void CTestCase::ExecuteTestL(TTestResult& aResult,
                             TInt /*aIndex */)
    { 
    ExecuteL(aResult);
    }
コード例 #9
0
// ---------------------------------------------------------------------------
// CAknMemorySelectionDialogMultiDrive::ExecuteL
// ---------------------------------------------------------------------------
//
EXPORT_C CAknCommonDialogsBase::TReturnKey
    CAknMemorySelectionDialogMultiDrive::ExecuteL(
        TDriveNumber& aSelectedDrive )
    {
    return ExecuteL( aSelectedDrive, NULL, NULL );
    }