Term Class Reference

#include <Term.h>

List of all members.

Public Types

typedef QMap< QString,
Translation
TranslationMap
typedef QMap< BilingualKey,
QString > 
CommentMap

Public Member Functions

 Term (int id=0, int vocabId=0)
 Term (const Term &term)
 ~Term ()
const int getId () const
const int getVocabId () const
bool isMarkedForStudy () const
void setMarkedForStudy (bool isMarkedForStudy)
void addTranslation (const Translation &translation)
void removeTranslation (const QString &language)
bool isTranslationExists (const QString &language) const
TranslationgetTranslation (const QString &language)
Translation getTranslation (const QString &language) const
TranslationMap::ConstIterator translationsBegin () const
TranslationMap::ConstIterator translationsEnd () const
int getTranslationCount () const
void addComment (const BilingualKey &key, const QString &comment)
void removeComment (const BilingualKey &key)
void removeComments (const QString &language)
bool isCommentExists (const BilingualKey &key) const
QString & getComment (const BilingualKey &key)
QString getComment (const BilingualKey &key) const
CommentMap::ConstIterator commentsBegin () const
CommentMap::ConstIterator commentsEnd () const
const QString getImagePath () const
void setImagePath (const QString &imagePath)

Friends

QDataStream & operator<< (QDataStream &out, const Term &term)
QDataStream & operator>> (QDataStream &in, Term &term)


Detailed Description

Definition at line 12 of file Term.h.


Member Typedef Documentation

typedef QMap<QString, Translation> Term::TranslationMap

Definition at line 20 of file Term.h.

typedef QMap<BilingualKey, QString> Term::CommentMap

Definition at line 21 of file Term.h.


Constructor & Destructor Documentation

Term::Term ( int  id = 0,
int  vocabId = 0 
)

Definition at line 3 of file Term.cpp.

Term::Term ( const Term term  ) 

Definition at line 6 of file Term.cpp.

Term::~Term (  ) 

Definition at line 18 of file Term.cpp.


Member Function Documentation

const int Term::getId (  )  const

Definition at line 21 of file Term.cpp.

const int Term::getVocabId (  )  const

Definition at line 25 of file Term.cpp.

bool Term::isMarkedForStudy (  )  const

Definition at line 29 of file Term.cpp.

void Term::setMarkedForStudy ( bool  isMarkedForStudy  ) 

Definition at line 33 of file Term.cpp.

void Term::addTranslation ( const Translation translation  ) 

Definition at line 37 of file Term.cpp.

void Term::removeTranslation ( const QString &  language  ) 

Definition at line 41 of file Term.cpp.

bool Term::isTranslationExists ( const QString &  language  )  const

Definition at line 45 of file Term.cpp.

Translation & Term::getTranslation ( const QString &  language  ) 

Definition at line 49 of file Term.cpp.

Translation Term::getTranslation ( const QString &  language  )  const

Definition at line 53 of file Term.cpp.

Term::TranslationMap::ConstIterator Term::translationsBegin (  )  const

Definition at line 57 of file Term.cpp.

Term::TranslationMap::ConstIterator Term::translationsEnd (  )  const

Definition at line 61 of file Term.cpp.

int Term::getTranslationCount (  )  const

Definition at line 65 of file Term.cpp.

void Term::addComment ( const BilingualKey key,
const QString &  comment 
)

Definition at line 69 of file Term.cpp.

void Term::removeComment ( const BilingualKey key  ) 

Definition at line 73 of file Term.cpp.

void Term::removeComments ( const QString &  language  ) 

Definition at line 77 of file Term.cpp.

bool Term::isCommentExists ( const BilingualKey key  )  const

Definition at line 85 of file Term.cpp.

QString & Term::getComment ( const BilingualKey key  ) 

Definition at line 89 of file Term.cpp.

QString Term::getComment ( const BilingualKey key  )  const

Definition at line 93 of file Term.cpp.

Term::CommentMap::ConstIterator Term::commentsBegin (  )  const

Definition at line 97 of file Term.cpp.

Term::CommentMap::ConstIterator Term::commentsEnd (  )  const

Definition at line 101 of file Term.cpp.

const QString Term::getImagePath (  )  const

Definition at line 105 of file Term.cpp.

void Term::setImagePath ( const QString &  imagePath  ) 

Definition at line 109 of file Term.cpp.


Friends And Related Function Documentation

QDataStream& operator<< ( QDataStream &  out,
const Term term 
) [friend]

Definition at line 113 of file Term.cpp.

QDataStream& operator>> ( QDataStream &  in,
Term term 
) [friend]

Definition at line 118 of file Term.cpp.


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

Generated on Sun Mar 1 17:30:48 2009 for toMOTko by  doxygen 1.5.6