Example #1
0
File: ctdow.cpp Project: loimu/zeit
QString CTDayOfWeek::describe() const {
	initializeNames();
	if (enabledCount() == CTDayOfWeek::MAXIMUM)
        return tr("every day ");
	else
		return CTUnit::genericDescribe(shortName);
}
Example #2
0
string CTDayOfMonth::describe() const
{
 initializeNames();
  return (count() == 31) ?
    (const char*)i18n("every day ").local8Bit() :
    CTUnit<1,31>::describe(shortName);
}
Example #3
0
File: ctdow.cpp Project: loimu/zeit
QString CTDayOfWeek::getName(const int ndx, const bool format) {
	initializeNames();
	return (format == shortFormat) ? shortName[ndx] : longName[ndx];
}
Example #4
0
File: ctdom.cpp Project: KDE/kcron
QString CTDayOfMonth::getName(const int ndx) {
	initializeNames();
	return shortName[ndx];
}
Example #5
0
File: ctdom.cpp Project: KDE/kcron
QString CTDayOfMonth::describe() const {
	initializeNames();
	return (enabledCount() == CTDayOfMonth::MAXIMUM) ? i18n("every day ") : CTUnit::genericDescribe(shortName);
}