mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Renamed some classes from Julian.* to nsCal.* .
This commit is contained in:
parent
7688640b11
commit
501f37fd08
@ -41,7 +41,7 @@ class nsCalStreamReader
|
||||
private:
|
||||
/*char * m_Buffer;*/
|
||||
|
||||
static JulianUtility::MimeEncoding stringToEncodingType(UnicodeString & propVal);
|
||||
static nsCalUtility::MimeEncoding stringToEncodingType(UnicodeString & propVal);
|
||||
|
||||
JulianPtrArray * m_OutCalendars;
|
||||
nsCapiCallbackReader * m_Reader;
|
||||
|
@ -35,7 +35,7 @@
|
||||
CLASS_EXPORT_CAPI nsCalStreamReader
|
||||
{
|
||||
private:
|
||||
static JulianUtility::MimeEncoding stringToEncodingType(UnicodeString & propVal);
|
||||
static nsCalUtility::MimeEncoding stringToEncodingType(UnicodeString & propVal);
|
||||
|
||||
|
||||
/* dont deallocate these */
|
||||
|
@ -75,7 +75,7 @@ private:
|
||||
|
||||
|
||||
/** encoding of stream */
|
||||
JulianUtility::MimeEncoding m_Encoding;
|
||||
nsCalUtility::MimeEncoding m_Encoding;
|
||||
|
||||
/** need to deallocate */
|
||||
JulianPtrArray * m_Chunks;
|
||||
@ -103,7 +103,7 @@ public:
|
||||
** CONSTRUCTORS and DESTRUCTORS
|
||||
**---------------------------*/
|
||||
nsCapiCallbackReader(PRMonitor * monitor,
|
||||
JulianUtility::MimeEncoding encoding = JulianUtility::MimeEncoding_7bit);
|
||||
nsCalUtility::MimeEncoding encoding = nsCalUtility::MimeEncoding_7bit);
|
||||
~nsCapiCallbackReader();
|
||||
|
||||
/*-----------------------------
|
||||
@ -113,7 +113,7 @@ public:
|
||||
virtual void * getMonitor() { return m_Monitor; }
|
||||
|
||||
void setFinished() { m_bFinished = TRUE; }
|
||||
void setEncoding(JulianUtility::MimeEncoding encoding) { m_Encoding = encoding; }
|
||||
void setEncoding(nsCalUtility::MimeEncoding encoding) { m_Encoding = encoding; }
|
||||
t_bool isFinished() const { return m_bFinished; }
|
||||
|
||||
/**
|
||||
|
@ -64,23 +64,23 @@ nsCalStreamReader::nsCalStreamReader(nsCapiCallbackReader * reader,
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
JulianUtility::MimeEncoding
|
||||
nsCalUtility::MimeEncoding
|
||||
nsCalStreamReader::stringToEncodingType(UnicodeString & propVal)
|
||||
{
|
||||
if (propVal.compareIgnoreCase(JulianKeyword::Instance()->ms_s7bit) == 0)
|
||||
{
|
||||
return JulianUtility::MimeEncoding_7bit;
|
||||
return nsCalUtility::MimeEncoding_7bit;
|
||||
}
|
||||
else if (propVal.compareIgnoreCase(JulianKeyword::Instance()->ms_sQUOTED_PRINTABLE) == 0)
|
||||
{
|
||||
return JulianUtility::MimeEncoding_QuotedPrintable;
|
||||
return nsCalUtility::MimeEncoding_QuotedPrintable;
|
||||
}
|
||||
else if (propVal.compareIgnoreCase(JulianKeyword::Instance()->ms_sBase64) == 0)
|
||||
{
|
||||
return JulianUtility::MimeEncoding_Base64;
|
||||
return nsCalUtility::MimeEncoding_Base64;
|
||||
}
|
||||
else
|
||||
return JulianUtility::MimeEncoding_7bit;
|
||||
return nsCalUtility::MimeEncoding_7bit;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
@ -107,7 +107,7 @@ void nsCalStreamReader::ParseCalendars(ICalReader * reader,
|
||||
JLog * log = 0;
|
||||
ErrorCode status = ZERO_ERROR;
|
||||
UnicodeString strLine, propName, propVal;
|
||||
JulianUtility::MimeEncoding encoding = JulianUtility::MimeEncoding_7bit;
|
||||
nsCalUtility::MimeEncoding encoding = nsCalUtility::MimeEncoding_7bit;
|
||||
|
||||
nsCapiCallbackReader * cr = (nsCapiCallbackReader *) reader;
|
||||
|
||||
|
@ -42,7 +42,7 @@ nsCapiCallbackReader::AddBuffer(nsCapiBufferStruct * cBuf)
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
nsCapiCallbackReader::nsCapiCallbackReader(PRMonitor * monitor,
|
||||
JulianUtility::MimeEncoding encoding)
|
||||
nsCalUtility::MimeEncoding encoding)
|
||||
{
|
||||
m_Monitor = monitor;
|
||||
m_bFinished = FALSE;
|
||||
@ -113,7 +113,7 @@ t_int8 nsCapiCallbackReader::read(ErrorCode & status)
|
||||
char c;
|
||||
if ((size_t) m_Pos < cbBuf->m_pBufSize)
|
||||
{
|
||||
if (JulianUtility::MimeEncoding_QuotedPrintable == m_Encoding)
|
||||
if (nsCalUtility::MimeEncoding_QuotedPrintable == m_Encoding)
|
||||
{
|
||||
char * buf = cbBuf->m_pBuf;
|
||||
c = buf[m_Pos];
|
||||
|
Loading…
Reference in New Issue
Block a user