duh, make these attributes not read-only so I can actually save them

This commit is contained in:
alecf%netscape.com 2000-05-12 03:27:26 +00:00
parent 0a6fc9df09
commit 06f57087ae
2 changed files with 43 additions and 5 deletions

View File

@ -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,

View File

@ -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
//-----------------------------------------------------------------------------