зеркало из https://github.com/mozilla/gecko-dev.git
duh, make these attributes not read-only so I can actually save them
This commit is contained in:
Родитель
0a6fc9df09
Коммит
06f57087ae
|
@ -33,12 +33,12 @@ native nsCStringRef(nsCString&);
|
||||||
|
|
||||||
[scriptable, uuid(52db94d7-71c8-46c9-9692-91ff880a8cb7)]
|
[scriptable, uuid(52db94d7-71c8-46c9-9692-91ff880a8cb7)]
|
||||||
interface nsIMsgSearchTerm : nsISupports {
|
interface nsIMsgSearchTerm : nsISupports {
|
||||||
readonly attribute nsMsgSearchAttribValue attrib;
|
attribute nsMsgSearchAttribValue attrib;
|
||||||
readonly attribute nsMsgSearchOpValue op;
|
attribute nsMsgSearchOpValue op;
|
||||||
readonly attribute nsIMsgSearchValue value;
|
attribute nsIMsgSearchValue value;
|
||||||
|
|
||||||
readonly attribute boolean booleanAnd;
|
attribute boolean booleanAnd;
|
||||||
readonly attribute string arbitraryHeader;
|
attribute string arbitraryHeader;
|
||||||
|
|
||||||
boolean matchRfc822String(in string aString, in string charset);
|
boolean matchRfc822String(in string aString, in string charset);
|
||||||
boolean matchString(in string aString, in string charset,
|
boolean matchString(in string aString, in string charset,
|
||||||
|
|
|
@ -1150,6 +1150,13 @@ nsMsgSearchTerm::GetAttrib(nsMsgSearchAttribValue *aResult)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMsgSearchTerm::SetAttrib(nsMsgSearchAttribValue aValue)
|
||||||
|
{
|
||||||
|
m_attribute = aValue;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aResult)
|
nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aResult)
|
||||||
{
|
{
|
||||||
|
@ -1158,6 +1165,14 @@ nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aResult)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMsgSearchTerm::SetOp(nsMsgSearchOpValue aValue)
|
||||||
|
{
|
||||||
|
m_operator = aValue;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsMsgSearchTerm::GetValue(nsIMsgSearchValue **aResult)
|
nsMsgSearchTerm::GetValue(nsIMsgSearchValue **aResult)
|
||||||
{
|
{
|
||||||
|
@ -1167,6 +1182,13 @@ nsMsgSearchTerm::GetValue(nsIMsgSearchValue **aResult)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMsgSearchTerm::SetValue(nsIMsgSearchValue* aValue)
|
||||||
|
{
|
||||||
|
nsMsgResultElement::AssignValues (aValue, &m_value);
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
|
nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
|
||||||
{
|
{
|
||||||
|
@ -1175,6 +1197,15 @@ nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMsgSearchTerm::SetBooleanAnd(PRBool aValue)
|
||||||
|
{
|
||||||
|
m_booleanOp =
|
||||||
|
aValue ? nsMsgSearchBooleanOp::BooleanAND :
|
||||||
|
nsMsgSearchBooleanOp::BooleanOR;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsMsgSearchTerm::GetArbitraryHeader(char* *aResult)
|
nsMsgSearchTerm::GetArbitraryHeader(char* *aResult)
|
||||||
{
|
{
|
||||||
|
@ -1183,6 +1214,13 @@ nsMsgSearchTerm::GetArbitraryHeader(char* *aResult)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
nsMsgSearchTerm::SetArbitraryHeader(const char* aValue)
|
||||||
|
{
|
||||||
|
m_arbitraryHeader = aValue;
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// nsMsgSearchScopeTerm implementation
|
// nsMsgSearchScopeTerm implementation
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
Загрузка…
Ссылка в новой задаче