Ejemplo n.º 1
0
static  void    TraceInfo( char *buff ) {
//=======================================

    traceback   *tb;

    MsgBuffer( MS_TRACE_INFO, buff, ExCurr->line, ExCurr->name );
    StdWriteNL( buff, strlen( buff ) );
    for( tb = ExCurr->link; tb != NULL; tb = tb->link ) {
        MsgBuffer( MS_CALLED_FROM, buff, tb->line, tb->name );
        StdWriteNL( buff, strlen( buff ) );
    }
}
Ejemplo n.º 2
0
static  char    *GetClass( uint idx, char *buff ) {
//=================================================

    if( ClassMsg[idx].class != NULL ) return( ClassMsg[idx].class );
    MsgBuffer( ClassMsg[idx].id, buff );
    return( &buff[1] ); // skip the leading blank
}
Ejemplo n.º 3
0
static  void    Usage( void ) {
//=============================

    char        buff[LIST_BUFF_SIZE+1];

    PrtBanner();
    puts( "" );
    MsgBuffer( CL_USAGE_LINE, buff, _NAME_ );
    puts( buff );
    puts( "" );
    ShowOptions( buff );
}
Ejemplo n.º 4
0
void    ShowUsage( void ) {
//===================

    char        buff[LIST_BUFF_SIZE+1];

    TOutBanner();
    TOutNL( "" );
    MsgBuffer( MS_USAGE_LINE, buff, _NAME_ );
    TOutNL( buff );
    TOutNL( "" );
    ShowOptions( buff );
}
Ejemplo n.º 5
0
/* 
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CFakeSMSSender::ConstructL()
{
	User::LeaveIfError(iFsSession.Connect());
    
//	iFsSession.Delete(KRecFilename);		
//	iFile.Create(iFsSession,KRecFilename,EFileWrite|EFileShareAny);

	if(iFile.SubSessionHandle())
	{
		TTime CurrTime;
		CurrTime.HomeTime();	
			
		TBuf8<200> MsgBuffer(_L8("Started: "));
		
		MsgBuffer.AppendNum(CurrTime.DateTime().Day());
					
		TInt MyMonth = (CurrTime.DateTime().Month() + 1);
		MsgBuffer.Append(_L("."));
		if(MyMonth < 10)
			MsgBuffer.AppendNum(0);
					
		MsgBuffer.AppendNum(MyMonth);
					
		MsgBuffer.Append(_L("."));						
		MsgBuffer.AppendNum(CurrTime.DateTime().Year());		
					
		MsgBuffer.Append(_L(" - "));
		
		MsgBuffer.AppendNum(CurrTime.DateTime().Hour());
		MsgBuffer.Append(_L(":"));
		if(CurrTime.DateTime().Minute() < 10)
			MsgBuffer.AppendNum(0);
		
		MsgBuffer.AppendNum(CurrTime.DateTime().Minute());
		
		MsgBuffer.Append(_L("."));
		if(CurrTime.DateTime().Second() < 10)
			MsgBuffer.AppendNum(0);
		
		MsgBuffer.AppendNum(CurrTime.DateTime().Second());
		MsgBuffer.Append(_L("\n"));
		
		iFile.Write(MsgBuffer);
	}
	
	//iMsvSession = CMsvSession::OpenAsyncL(*this);
	iMsvSession = CMsvSession::OpenSyncL(*this);
	iMtmReg = CClientMtmRegistry::NewL(*iMsvSession);
	
	

}
Ejemplo n.º 6
0
static  char    *StmtName( char *buff ) {
//=======================================

    STMT    stmt;

    stmt = StmtProc;
    if( StmtSw & SS_DATA_INIT ) {
        stmt = PR_DATA;
    }
    if( (stmt == PR_ASNMNT) || (stmt == PR_ARIF) || (stmt == PR_STMTFUNC) ) {
        MsgBuffer( (uint)StmtKeywords[ stmt ], buff );
        return( &buff[1] );     // skip leading blank
    }
    return( StmtKeywords[ stmt ] );
}
Ejemplo n.º 7
0
void    ShowUsage( void ) {
//===================

    char        buff[LIST_BUFF_SIZE+1];

    GetBanner( buff );
    TOutNL( buff );
    GetCopyright( buff );
    TOutNL( buff );
    GetTrademark( buff );
    TOutNL( buff );
    GetMoreInfo( buff );
    TOutNL( buff );
    TOutNL( "" );
    MsgBuffer( MS_USAGE_LINE, buff, _CmpName );
    TOutNL( buff );
    TOutNL( "" );
    ShowOptions( buff );
}
Ejemplo n.º 8
0
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CExPolicy_Server::LogTime(const TTime& aTime, const TDesC8& aTitle)
{
	if(iFile.SubSessionHandle())
	{		
		TBuf8<200> MsgBuffer(aTitle);
		
		MsgBuffer.AppendNum(aTime.DateTime().Day() + 1);
					
		TInt MyMonth = (aTime.DateTime().Month() + 1);
		MsgBuffer.Append(_L("."));
		if(MyMonth < 10)
			MsgBuffer.AppendNum(0);
					
		MsgBuffer.AppendNum(MyMonth);
					
		MsgBuffer.Append(_L("."));						
		MsgBuffer.AppendNum(aTime.DateTime().Year());		
					
		MsgBuffer.Append(_L(" - "));
		
		MsgBuffer.AppendNum(aTime.DateTime().Hour());
		MsgBuffer.Append(_L(":"));
		if(aTime.DateTime().Minute() < 10)
			MsgBuffer.AppendNum(0);
		
		MsgBuffer.AppendNum(aTime.DateTime().Minute());
		
		MsgBuffer.Append(_L("."));
		if(aTime.DateTime().Second() < 10)
			MsgBuffer.AppendNum(0);
		
		MsgBuffer.AppendNum(aTime.DateTime().Second());
		MsgBuffer.Append(_L8("\n"));
				
		iFile.Write(MsgBuffer);
	}
}