OpenMW
Public Types | Public Member Functions | Static Public Attributes | Properties | Private Attributes
ContentSelectorModel::EsmFile Class Reference

#include <esmfile.hpp>

List of all members.

Public Types

enum  FileProperty {
  FileProperty_FileName = 0, FileProperty_Author = 1, FileProperty_Format = 2, FileProperty_DateModified = 3,
  FileProperty_FilePath = 4, FileProperty_Description = 5, FileProperty_GameFile = 6
}

Public Member Functions

 EsmFile (QString fileName=QString(), ModelItem *parent=0)
 ~EsmFile ()
void setFileProperty (const FileProperty prop, const QString &value)
void setFileName (const QString &fileName)
void setAuthor (const QString &author)
void setSize (const int size)
void setDate (const QDateTime &modified)
void setFormat (const int format)
void setFilePath (const QString &path)
void setGameFiles (const QStringList &gameFiles)
void setDescription (const QString &description)
void addGameFile (const QString &name)
QVariant fileProperty (const FileProperty prop) const
QString fileName () const
QString author () const
QDateTime modified () const
float format () const
QString filePath () const
const QStringList & gameFiles () const
QString description () const
QString toolTip () const
bool isGameFile () const
QByteArray encodedData () const

Static Public Attributes

static int sPropertyCount = 7
static QString sToolTip

Properties

QString filename

Private Attributes

QString mFileName
QString mAuthor
QDateTime mModified
int mFormat
QString mPath
QStringList mGameFiles
QString mDescription
QString mToolTip

Member Enumeration Documentation

Enumerator:
FileProperty_FileName 
FileProperty_Author 
FileProperty_Format 
FileProperty_DateModified 
FileProperty_FilePath 
FileProperty_Description 
FileProperty_GameFile 

Constructor & Destructor Documentation

ContentSelectorModel::EsmFile::EsmFile ( QString  fileName = QString(),
ModelItem parent = 0 
)

Member Function Documentation

void ContentSelectorModel::EsmFile::addGameFile ( const QString &  name) [inline]
QString ContentSelectorModel::EsmFile::author ( ) const [inline]
QString ContentSelectorModel::EsmFile::description ( ) const [inline]
QString ContentSelectorModel::EsmFile::fileName ( ) const [inline]
QString ContentSelectorModel::EsmFile::filePath ( ) const [inline]
float ContentSelectorModel::EsmFile::format ( ) const [inline]
const QStringList& ContentSelectorModel::EsmFile::gameFiles ( ) const [inline]
QDateTime ContentSelectorModel::EsmFile::modified ( ) const [inline]
void ContentSelectorModel::EsmFile::setAuthor ( const QString &  author)
void ContentSelectorModel::EsmFile::setDate ( const QDateTime &  modified)
void ContentSelectorModel::EsmFile::setDescription ( const QString &  description)
void ContentSelectorModel::EsmFile::setFileName ( const QString &  fileName)
void ContentSelectorModel::EsmFile::setFilePath ( const QString &  path)
void ContentSelectorModel::EsmFile::setFileProperty ( const FileProperty  prop,
const QString &  value 
)
void ContentSelectorModel::EsmFile::setFormat ( const int  format)
void ContentSelectorModel::EsmFile::setGameFiles ( const QStringList &  gameFiles)
void ContentSelectorModel::EsmFile::setSize ( const int  size)
QString ContentSelectorModel::EsmFile::toolTip ( ) const [inline]

Member Data Documentation

Initial value:
 QString("<b>Author:</b> %1<br/> \
                                              <b>Version:</b> %2<br/> \
                                              <b>Path:</b><br/>%3<br/> \
                                              <br/><b>Description:</b><br/>%4<br/> \
                                              <br/><b>Dependencies: </b>%5<br/>")

Property Documentation


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