Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes
xptiInfoFlags Class Reference

#include <xptiprivate.h>

List of all members.

Public Member Functions

 xptiInfoFlags (uint8 n)
 xptiInfoFlags (const xptiInfoFlags &r)
void Clear ()
uint8 GetData () const
uint8 GetState () const
void SetState (uint8 state)
void SetFlagBit (uint8 flag, PRBool on)
PRBool GetFlagBit (uint8 flag) const

Static Public Member Functions

static uint8 GetStateMask ()

Private Types

enum  { STATE_MASK = 3 }

Private Attributes

uint8 mData

Detailed Description

Definition at line 489 of file xptiprivate.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
STATE_MASK 

Definition at line 491 of file xptiprivate.h.

{STATE_MASK = 3};

Constructor & Destructor Documentation

Definition at line 493 of file xptiprivate.h.

: mData(n) {}

Definition at line 494 of file xptiprivate.h.

: mData(r.mData) {}

Member Function Documentation

void xptiInfoFlags::Clear ( void  ) [inline]

Definition at line 499 of file xptiprivate.h.

        {mData = 0;}
uint8 xptiInfoFlags::GetData ( ) const [inline]

Definition at line 502 of file xptiprivate.h.

        {return mData;}
PRBool xptiInfoFlags::GetFlagBit ( uint8  flag) const [inline]

Definition at line 517 of file xptiprivate.h.

        {return (mData & flag) ? PR_TRUE : PR_FALSE;}

Here is the caller graph for this function:

uint8 xptiInfoFlags::GetState ( void  ) const [inline]

Definition at line 505 of file xptiprivate.h.

        {return mData & GetStateMask();}

Here is the call graph for this function:

Here is the caller graph for this function:

static uint8 xptiInfoFlags::GetStateMask ( ) [inline, static]

Definition at line 496 of file xptiprivate.h.

        {return uint8(STATE_MASK);}

Here is the caller graph for this function:

void xptiInfoFlags::SetFlagBit ( uint8  flag,
PRBool  on 
) [inline]

Definition at line 511 of file xptiprivate.h.

        {if(on)
            mData |= ~GetStateMask() & flag;
         else
            mData &= GetStateMask() | ~flag;}

Here is the call graph for this function:

Here is the caller graph for this function:

void xptiInfoFlags::SetState ( uint8  state) [inline]

Definition at line 508 of file xptiprivate.h.

        {mData &= ~GetStateMask(); mData |= state;}                                   

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 521 of file xptiprivate.h.


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