Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Public Attributes | Protected Types | Protected Attributes | Private Attributes
nsMsgSearchValidityTable Class Reference

#include <nsMsgSearchAdapter.h>

Inheritance diagram for nsMsgSearchValidityTable:
Inheritance graph
[legend]
Collaboration diagram for nsMsgSearchValidityTable:
Collaboration graph
[legend]

List of all members.

Classes

struct  vtBits

Public Member Functions

 nsMsgSearchValidityTable ()
void setAvailable (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in boolean active)
void setEnabled (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in boolean enabled)
void setValidButNotShown (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in boolean valid)
boolean getAvailable (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op)
boolean getEnabled (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op)
boolean getValidButNotShown (in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op)
void validateTerms (in nsISupportsArray terms)
void getAvailableAttributes (out unsigned long length,[retval, array, size_is(length)] out nsMsgSearchAttribValue attrs)
void getAvailableOperators (in nsMsgSearchAttribValue attrib, out unsigned long length,[retval, array, size_is(length)] out nsMsgSearchOpValue operators)
void setDefaultAttrib (in nsMsgSearchAttribValue defaultAttrib)

Public Attributes

readonly attribute long numAvailAttribs

Protected Types

typedef struct
nsMsgSearchValidityTable::vtBits 
vtBits

Protected Attributes

int m_numAvailAttribs
vtBits m_table [nsMsgSearchAttrib::kNumMsgSearchAttributes][nsMsgSearchOp::kNumMsgSearchOperators]

Private Attributes

nsMsgSearchAttribValue m_defaultAttrib

Detailed Description

Definition at line 151 of file nsMsgSearchAdapter.h.


Class Documentation

struct nsMsgSearchValidityTable::vtBits

Definition at line 160 of file nsMsgSearchAdapter.h.

Class Members
PRUint16 bitAvailable: 1
PRUint16 bitEnabled: 1
PRUint16 bitValidButNotShown: 1

Member Typedef Documentation


Constructor & Destructor Documentation

Definition at line 879 of file nsMsgSearchAdapter.cpp.

{
       // Set everything to be unavailable and disabled
       for (int i = 0; i < nsMsgSearchAttrib::kNumMsgSearchAttributes; i++)
    for (int j = 0; j < nsMsgSearchOp::kNumMsgSearchOperators; j++)
              {
                     SetAvailable (i, j, PR_FALSE);
                     SetEnabled (i, j, PR_FALSE);
                     SetValidButNotShown (i,j, PR_FALSE);
              }
       m_numAvailAttribs = 0;   // # of attributes marked with at least one available operator
  // assume default is Subject, which it is for mail and news search
  // it's not for LDAP, so we'll call SetDefaultAttrib()
  m_defaultAttrib = nsMsgSearchAttrib::Subject;
}

Member Function Documentation

void nsIMsgSearchValidityTable::getAvailableAttributes ( out unsigned long  length,
[retval, array, size_is(length)] out nsMsgSearchAttribValue  attrs 
) [inherited]
void nsIMsgSearchValidityTable::getAvailableOperators ( in nsMsgSearchAttribValue  attrib,
out unsigned long  length,
[retval, array, size_is(length)] out nsMsgSearchOpValue  operators 
) [inherited]

Member Data Documentation

Definition at line 168 of file nsMsgSearchAdapter.h.

Definition at line 159 of file nsMsgSearchAdapter.h.

Definition at line 166 of file nsMsgSearchAdapter.h.

Definition at line 62 of file nsIMsgSearchValidityTable.idl.


The documentation for this class was generated from the following files: