Renaming error levels to less popular names

This commit is contained in:
mostafah%oeone.com 2003-06-26 18:24:44 +00:00
Родитель 6c9d8609a6
Коммит 46d7e287f6
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1696,7 +1696,7 @@ bool oeICalEventImpl::ParseIcalComponent( icalcomponent *comp )
tmpstr = icalproperty_get_uid( prop );
SetId( tmpstr );
} else {
ReportError( oeIICalError::WARN, oeIICalError::UID_NOT_FOUND, "oeICalEventImpl::ParseIcalComponent() : Warning UID not found! Assigning new one." );
ReportError( oeIICalError::CAL_WARN, oeIICalError::UID_NOT_FOUND, "oeICalEventImpl::ParseIcalComponent() : Warning UID not found! Assigning new one." );
char uidstr[40];
GenerateUUID( uidstr );
SetId( uidstr );

Просмотреть файл

@ -2135,7 +2135,7 @@ oeICalImpl::GetAllTodos(nsISimpleEnumerator **resultList )
NS_IMETHODIMP oeICalImpl::ReportError( PRInt16 severity, PRUint32 errorid, const char *errorstring ) {
if( severity >= oeIICalError::PROBLEM ) {
if( severity >= oeIICalError::CAL_PROBLEM ) {
#ifdef ICAL_DEBUG
printf( "oeICalImpl::ReportError(%d,%x) : %s\n", severity, errorid, errorstring );
#endif

Просмотреть файл

@ -274,10 +274,10 @@ interface oeIICalContainer : nsISupports
interface oeIICalError : nsISupports
{
//severity codes
const long DEBUG = 0;
const long WARN = 1;
const long PROBLEM = 2;
const long CRITICAL = 3;
const long CAL_DEBUG = 0;
const long CAL_WARN = 1;
const long CAL_PROBLEM = 2;
const long CAL_CRITICAL = 3;
//error codes
const long UID_NOT_FOUND = 1001;