void CPackagerAppUi::RunTestStepL(TInt aNumStep)
{
    TKeyEvent theKeyEvent;
    Mem::FillZ(&theKeyEvent, sizeof(TKeyEvent));
    TBuf<128> buf;

    //only for debug
#ifdef FORCE_AUTO
    User::After(TTimeIntervalMicroSeconds32(1000000));
#endif
    switch(aNumStep)
    {
    case 1:
    {
        RDebug::Print(_L("\nGet the language"));
        buf.Copy(_L("\nGet the language"));
        SetFromString(buf, ((TText8*)__FILE__), __LINE__);
        TLanguage appLang = ApplicationLanguageL();
        buf.Copy(_L("\nLanguage is "));
        buf.AppendNum(appLang);
        SetFromString(buf, ((TText8*)__FILE__), __LINE__);
        if(appLang != ELangFrench)
        {
            buf.Format(_L("\nLanguage is %d but should be enum for ELangFrench"), appLang);
            SetErrorFromString(buf, ((TText8*)__FILE__), __LINE__, 1);
            AutoTestManager().FinishAllTestCases(CAutoTestManager::EFailed);
        }
        else
        {
            AutoTestManager().FinishAllTestCases(CAutoTestManager::EPass);
        }
        break;
    }
    }
}
Example #2
0
void TextBanner::SetFromSong( const Song *pSong )
{
	if( pSong == NULL )
	{
		SetFromString( "", "", "", "", "", "" );
		return;
	}
	SetFromString( pSong->GetDisplayMainTitle(),				pSong->GetTranslitMainTitle(),
			pSong->GetDisplaySubTitle(),				pSong->GetTranslitSubTitle(),
			m_sArtistPrependString + pSong->GetDisplayArtist(),	m_sArtistPrependString + pSong->GetTranslitArtist() );
}
Example #3
0
void CGameToken::SetValueAsString( const char* sValue,bool bDefault )
{
	if(bDefault)
	{
		SetFromString( m_value,sValue );
	}
	else
	{
		// if(strcmp(sValue,GetValueAsString()))
		{
			SetFromString( m_value,sValue );
			m_nFlags |= EGAME_TOKEN_MODIFIED;

			m_changed=gEnv->pTimer->GetFrameStartTime();
			g_pGameTokenSystem->Notify( EGAMETOKEN_EVENT_CHANGE,this );
		}
	}
}
Example #4
0
fixed::fixed(std::string value, CurrencyFormat format) : m_precision(2)
{
    SetFromString(value, format);
}
Example #5
0
//-----------------------------------------------------------------------------
// Purpose: Constructor
// Input  : pchSteamID -		text representation of a Steam ID
//-----------------------------------------------------------------------------
CSteamID::CSteamID( const char *pchSteamID, EUniverse eDefaultUniverse /* = k_EUniverseInvalid */  )
{
	SetFromString( pchSteamID, eDefaultUniverse );
}
Example #6
0
 void CArgMap::RemoveMultiValues ( void )
 {
     if ( HasMultiValues () )
         SetFromString ( ToString (), false );
 }