mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
duh, make these attributes not read-only so I can actually save them
This commit is contained in:
parent
0a6fc9df09
commit
06f57087ae
@ -33,12 +33,12 @@ native nsCStringRef(nsCString&);
|
||||
|
||||
[scriptable, uuid(52db94d7-71c8-46c9-9692-91ff880a8cb7)]
|
||||
interface nsIMsgSearchTerm : nsISupports {
|
||||
readonly attribute nsMsgSearchAttribValue attrib;
|
||||
readonly attribute nsMsgSearchOpValue op;
|
||||
readonly attribute nsIMsgSearchValue value;
|
||||
attribute nsMsgSearchAttribValue attrib;
|
||||
attribute nsMsgSearchOpValue op;
|
||||
attribute nsIMsgSearchValue value;
|
||||
|
||||
readonly attribute boolean booleanAnd;
|
||||
readonly attribute string arbitraryHeader;
|
||||
attribute boolean booleanAnd;
|
||||
attribute string arbitraryHeader;
|
||||
|
||||
boolean matchRfc822String(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;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::SetAttrib(nsMsgSearchAttribValue aValue)
|
||||
{
|
||||
m_attribute = aValue;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aResult)
|
||||
{
|
||||
@ -1158,6 +1165,14 @@ nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::SetOp(nsMsgSearchOpValue aValue)
|
||||
{
|
||||
m_operator = aValue;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::GetValue(nsIMsgSearchValue **aResult)
|
||||
{
|
||||
@ -1167,6 +1182,13 @@ nsMsgSearchTerm::GetValue(nsIMsgSearchValue **aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::SetValue(nsIMsgSearchValue* aValue)
|
||||
{
|
||||
nsMsgResultElement::AssignValues (aValue, &m_value);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
|
||||
{
|
||||
@ -1175,6 +1197,15 @@ nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::SetBooleanAnd(PRBool aValue)
|
||||
{
|
||||
m_booleanOp =
|
||||
aValue ? nsMsgSearchBooleanOp::BooleanAND :
|
||||
nsMsgSearchBooleanOp::BooleanOR;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::GetArbitraryHeader(char* *aResult)
|
||||
{
|
||||
@ -1183,6 +1214,13 @@ nsMsgSearchTerm::GetArbitraryHeader(char* *aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgSearchTerm::SetArbitraryHeader(const char* aValue)
|
||||
{
|
||||
m_arbitraryHeader = aValue;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// nsMsgSearchScopeTerm implementation
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user