StateInfo Class Reference

#include <domain.h>

List of all members.

Public Types

enum  Field {
  SHA = 1, FILE_NAME = 2, DIFF_TO_SHA = 4, ALL_MERGE_FILES = 8,
  ANY = 15
}

Public Member Functions

 StateInfo ()
StateInfooperator= (const StateInfo &newState)
bool operator== (const StateInfo &newState) const
bool operator!= (const StateInfo &newState) const
void clear ()
const QString sha (bool n=true) const
const QString fileName (bool n=true) const
const QString diffToSha (bool n=true) const
bool selectItem (bool n=true) const
bool isMerge (bool n=true) const
bool allMergeFiles (bool n=true) const
void setSha (const QString &s)
void setFileName (const QString &s)
void setDiffToSha (const QString &s)
void setSelectItem (bool b)
void setIsMerge (bool b)
void setAllMergeFiles (bool b)
bool isChanged (uint what=ANY) const

Private Member Functions

bool requestPending () const
void setLock (bool b)
void commit ()
void rollBack ()
bool flushQueue ()

Private Attributes

S curS
S prevS
S nextS
bool isLocked

Friends

class Domain

Classes

class  S


Detailed Description

Definition at line 31 of file domain.h.


Member Enumeration Documentation

enum Field

Enumerator:
SHA 
FILE_NAME 
DIFF_TO_SHA 
ALL_MERGE_FILES 
ANY 

Definition at line 52 of file domain.h.


Constructor & Destructor Documentation

StateInfo (  )  [inline]

Definition at line 33 of file domain.h.


Member Function Documentation

StateInfo & operator= ( const StateInfo newState  ) 

Definition at line 49 of file domain.cpp.

bool operator== ( const StateInfo newState  )  const

Definition at line 60 of file domain.cpp.

Referenced by operator!=().

bool operator!= ( const StateInfo newState  )  const

Definition at line 68 of file domain.cpp.

void clear (  ) 

Definition at line 41 of file domain.cpp.

Referenced by RevsView::clear(), PatchView::clear(), FileView::clear(), Domain::Domain(), and StateInfo().

const QString sha ( bool  n = true  )  const [inline]

Definition at line 38 of file domain.h.

Referenced by MainImpl::ActCheckWorkDir_toggled(), MainImpl::ActSaveFile_activated(), PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), FileView::doUpdate(), ListView::filterRightButtonPressed(), MainImpl::getExternalDiffArgs(), isChanged(), FileContent::lookupAnnotation(), Domain::on_contextMenu(), ListView::on_currentChanged(), RevsView::on_loadCompleted(), FileView::on_spinBoxRevision_valueChanged(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), Domain::populateState(), FileContent::rangeFilter(), TreeView::update(), ListView::update(), ListBoxFiles::update(), FileContent::update(), RevsView::updateLineEditSHA(), and PatchView::updatePatch().

const QString fileName ( bool  n = true  )  const [inline]

Definition at line 39 of file domain.h.

Referenced by MainImpl::ActSaveFile_activated(), PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), FileView::doUpdate(), MainImpl::getExternalDiffArgs(), isChanged(), FileContent::lookupAnnotation(), FileContent::on_annotateReady(), TreeView::on_currentChanged(), ListBoxFiles::on_currentChanged(), TreeView::update(), ListBoxFiles::update(), FileContent::update(), and FileView::updateProgressBar().

const QString diffToSha ( bool  n = true  )  const [inline]

Definition at line 40 of file domain.h.

Referenced by PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), ListView::filterRightButtonPressed(), MainImpl::getExternalDiffArgs(), isChanged(), PatchView::on_buttonGroupDiff_clicked(), ListView::update(), ListBoxFiles::update(), and PatchView::updatePatch().

bool selectItem ( bool  n = true  )  const [inline]

Definition at line 41 of file domain.h.

Referenced by RevsView::doUpdate(), ListView::update(), and ListBoxFiles::update().

bool isMerge ( bool  n = true  )  const [inline]

Definition at line 42 of file domain.h.

Referenced by PatchView::centerOnFileHeader(), ListBoxFiles::insertFiles(), ListBoxFiles::on_contextMenuRequested(), ListBoxFiles::on_currentChanged(), MainImpl::on_fileList_doubleClicked(), and PatchView::updatePatch().

bool allMergeFiles ( bool  n = true  )  const [inline]

Definition at line 43 of file domain.h.

Referenced by PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), ListBoxFiles::insertFiles(), isChanged(), ListBoxFiles::on_currentChanged(), ListBoxFiles::update(), and PatchView::updatePatch().

void setSha ( const QString &  s  )  [inline]

Definition at line 44 of file domain.h.

Referenced by RevsView::doUpdate(), MainImpl::filterList(), MainImpl::lineEditSHA_returnPressed(), ListView::on_currentChanged(), MainImpl::on_goRef_activated(), RevsView::on_lanesContextMenuRequested(), RevDesc::on_linkClicked(), RevsView::on_loadCompleted(), and FileView::on_spinBoxRevision_valueChanged().

void setFileName ( const QString &  s  )  [inline]

Definition at line 45 of file domain.h.

Referenced by TreeView::on_currentChanged(), and ListBoxFiles::on_currentChanged().

void setDiffToSha ( const QString &  s  )  [inline]

Definition at line 46 of file domain.h.

Referenced by ListView::filterRightButtonPressed(), and PatchView::on_buttonGroupDiff_clicked().

void setSelectItem ( bool  b  )  [inline]

Definition at line 47 of file domain.h.

Referenced by TreeView::on_currentChanged(), ListView::on_currentChanged(), ListBoxFiles::on_currentChanged(), RevsView::on_loadCompleted(), and FileView::on_spinBoxRevision_valueChanged().

void setIsMerge ( bool  b  )  [inline]

Definition at line 48 of file domain.h.

Referenced by Domain::populateState().

void setAllMergeFiles ( bool  b  )  [inline]

Definition at line 49 of file domain.h.

Referenced by ListBoxFiles::on_currentChanged().

bool isChanged ( uint  what = ANY  )  const

Definition at line 73 of file domain.cpp.

Referenced by RevsView::doUpdate(), PatchView::doUpdate(), and FileView::doUpdate().

bool requestPending (  )  const [inline, private]

Definition at line 63 of file domain.h.

Referenced by Domain::customEvent(), flushQueue(), and Domain::update().

void setLock ( bool  b  )  [inline, private]

Definition at line 64 of file domain.h.

Referenced by Domain::update().

void commit (  )  [inline, private]

Definition at line 65 of file domain.h.

Referenced by Domain::update().

void rollBack (  )  [inline, private]

Definition at line 66 of file domain.h.

Referenced by Domain::update().

bool flushQueue (  )  [inline, private]

Definition at line 71 of file domain.h.

Referenced by Domain::flushQueue().


Friends And Related Function Documentation

friend class Domain [friend]

Definition at line 61 of file domain.h.


Member Data Documentation

S curS [private]

Definition at line 93 of file domain.h.

Referenced by allMergeFiles(), clear(), commit(), diffToSha(), fileName(), flushQueue(), isMerge(), operator=(), operator==(), requestPending(), rollBack(), selectItem(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), setSha(), and sha().

S prevS [private]

Definition at line 94 of file domain.h.

Referenced by allMergeFiles(), clear(), commit(), diffToSha(), fileName(), isMerge(), rollBack(), selectItem(), and sha().

S nextS [private]

Definition at line 95 of file domain.h.

Referenced by clear(), flushQueue(), operator=(), requestPending(), rollBack(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), and setSha().

bool isLocked [private]

Definition at line 96 of file domain.h.

Referenced by clear(), operator=(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), and setSha().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:40 2007 for QGit by  doxygen 1.5.3