a.append( QString( " )<br> " ) + tr( "in directory" ) + QString( " " ));
a.append( BOLD( c_info.cdir ) );
+ time_t aTime;
a.append( QString( "<br>" ) + tr( "begins" ) + QString( " " ) );
- char * t1 = (char * )duplicate(ctime(&c_info.tc_start));
+ aTime = time_t(c_info.tc_start);
+ char * t1 = (char * )duplicate(ctime(&aTime));
t1 [strlen(t1) -1 ] = ' ';
a.append( BOLD( t1 ) );
delete [] t1;
if (c_info.tc_hello != 0 )
{
- char * t2 = (char * )duplicate(ctime(&c_info.tc_hello));
+ aTime = time_t(c_info.tc_hello);
+ char * t2 = (char * )duplicate(ctime(&aTime));
t2 [strlen(t2) -1 ] = ' ';
a.append( tr( "last signal" ) + QString(" : ") );
a.append( BOLD( t2 ) );
}
if ((c_info.tc_end - c_info.difftime) != 0)
{
- char * t3 = (char * )duplicate(ctime(&c_info.tc_end));
+ aTime = time_t(c_info.tc_end);
+ char * t3 = (char * )duplicate(ctime(&aTime));
t3 [strlen(t3) -1 ] = ' ';
a.append( tr( "ends" ) + QString( " " ) );
a.append( BOLD( t3 ) );
_history->clear();
try
{
+ time_t aTime;
_serverhistory = _VarComponents->history();
for (CORBA::ULong i=0; i<_serverhistory->length(); i++)
{
ASSERT( c_info.name!=NULL);
QString a;
a.setNum(int(c_info.pid));
- char * t1 = (char * )duplicate(ctime(&c_info.tc_start));
+ aTime = time_t(c_info.tc_start);
+ char * t1 = (char * )duplicate(ctime(&aTime));
t1 [strlen(t1) -1 ] = ' ';
- char * t2 = (char * )duplicate(ctime(&c_info.tc_end));
+ aTime = time_t(c_info.tc_end);
+ char * t2 = (char * )duplicate(ctime(&aTime));
t2 [strlen(t2) -1 ] = ' ';
QListViewItem * item = new QListViewItem(_history, QString(c_info.name),\
a, QString(c_info.pwname), QString(c_info.machine), \
_clients->clear();
try
{
+ time_t aTime;
_serverclients = _VarComponents->getall();
for (CORBA::ULong i=0; i<_serverclients->length(); i++)
{
ASSERT( c_info.name!=NULL);
QString a;
a.setNum(int(c_info.pid));
- char * t1 = (char * )duplicate(ctime(&c_info.tc_start));
+ aTime = time_t(c_info.tc_start);
+ char * t1 = (char * )duplicate(ctime(&aTime));
t1 [strlen(t1) -1 ] = ' ';
- char * t2 = (char * )duplicate(ctime(&c_info.tc_hello));
+ aTime = time_t(c_info.tc_hello);
+ char * t2 = (char * )duplicate(ctime(&aTime));
t2 [strlen(t2) -1 ] = ' ';
QListViewItem * item = new QListViewItem(_clients, QString(c_info.name),\
a, QString(c_info.pwname), QString(c_info.machine), \
END_OF("slotSelectRefresh");
}
+/*!
+ SLOT: called when button OK is clicked in interval window
+*/
void RegWidget::slotIntervalOk()
{
BEGIN_OF("slotIntervalOk");