/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
*/
/*
- * Version $Id$
- *
* MediaList Class
*
* Dirk Bartley, March 2007
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* Dirk Bartley, March 2007
*/
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
m_tableMedia->setRowCount(results.size());
foreach (resultline, results) { // should have only one result
+ int index = 0;
QString VolBytes, MediaType, LastWritten, VolStatus;
fieldlist = resultline.split("\t");
if (fieldlist.size() != 10) {
continue;
}
QStringListIterator fld(fieldlist);
- int index=0;
TableItemFormatter mediaitem(*m_tableMedia, row);
/* VolumeName */
/* Usage */
usage = 0;
if (hash_size.contains(MediaType) &&
- hash_size[MediaType] != 0)
- {
+ hash_size[MediaType] != 0) {
usage = VolBytes.toLongLong() * 100 / hash_size[MediaType];
}
mediaitem.setPercent(index++, usage);
</property>
<column>
<property name="text" >
- <string>Volume Name</string>
+ <string> Volume Name </string>
</property>
</column>
<column>
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
*/
/*
- * Version $Id$
*
* Helper functions for tree widget formatting
*
char suffix = 's';
if (dfld) {
for (int pos = 0 ; sufs[pos] ; ++pos) {
- if (dfld % divs[pos] == 0) {
- dfld /= divs[pos];
- suffix = sufs[pos];
- break;
- }
+ if (dfld % divs[pos] == 0) {
+ dfld /= divs[pos];
+ suffix = sufs[pos];
+ break;
+ }
}
}
QString msg;
dfld = fld.trimmed().toLongLong();
msg = "";
for (int pos = 0 ; sufs[pos] ; ++pos) {
- if (dfld / divs[pos] != 0) {
- msg += QString(" %1%2").arg(dfld / divs[pos]).arg(sufs[pos]);
- dfld %= divs[pos];
- }
+ if (dfld / divs[pos] != 0) {
+ msg += QString(" %1%2").arg(dfld / divs[pos]).arg(sufs[pos]);
+ dfld %= divs[pos];
+ }
}
if (dfld)
- msg += QString(" %1s").arg(dfld);
+ msg += QString(" %1s").arg(dfld);
}
setNumericFld(index, msg, fld.trimmed().toLongLong());
{
return parent->item(row, col);
}
-
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* TreeView formatting helpers - Riccardo Ghetta, May 2008
*/