OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Properties | Private Attributes | List of all members
ContentSelectorModel::EsmFile Class Reference

#include <esmfile.hpp>

Inheritance diagram for ContentSelectorModel::EsmFile:
Collaboration diagram for ContentSelectorModel::EsmFile:

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
 
- Public Member Functions inherited from ContentSelectorModel::ModelItem
 ModelItem (ModelItem *parent=0)
 
 ~ModelItem ()
 
ModelItemparent () const
 
int row () const
 
int childCount () const
 
int childRow (ModelItem *child) const
 
ModelItemchild (int row)
 
void appendChild (ModelItem *child)
 
void removeChild (int row)
 
bool hasFormat (const QString &mimetype) 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
 

Additional Inherited Members

- Protected Attributes inherited from ContentSelectorModel::ModelItem
ModelItemmParentItem
 
QList< ModelItem * > mChildItems
 

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 
)
ContentSelectorModel::EsmFile::~EsmFile ( )
inline

Member Function Documentation

void ContentSelectorModel::EsmFile::addGameFile ( const QString &  name)
inline

Here is the caller graph for this function:

QString ContentSelectorModel::EsmFile::author ( ) const
inline
QString ContentSelectorModel::EsmFile::description ( ) const
inline
QByteArray ContentSelectorModel::EsmFile::encodedData ( ) const
QString ContentSelectorModel::EsmFile::fileName ( ) const
inline

Here is the caller graph for this function:

QString ContentSelectorModel::EsmFile::filePath ( ) const
inline

Here is the caller graph for this function:

QVariant ContentSelectorModel::EsmFile::fileProperty ( const FileProperty  prop) const

Here is the caller graph for this function:

float ContentSelectorModel::EsmFile::format ( ) const
inline
const QStringList& ContentSelectorModel::EsmFile::gameFiles ( ) const
inline
Note
Contains file names, not paths.

Here is the caller graph for this function:

bool ContentSelectorModel::EsmFile::isGameFile ( ) const

Here is the caller graph for this function:

QDateTime ContentSelectorModel::EsmFile::modified ( ) const
inline
void ContentSelectorModel::EsmFile::setAuthor ( const QString &  author)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setDate ( const QDateTime &  modified)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setDescription ( const QString &  description)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setFileName ( const QString &  fileName)
void ContentSelectorModel::EsmFile::setFilePath ( const QString &  path)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setFileProperty ( const FileProperty  prop,
const QString &  value 
)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setFormat ( const int  format)

Here is the caller graph for this function:

void ContentSelectorModel::EsmFile::setGameFiles ( const QStringList &  gameFiles)
void ContentSelectorModel::EsmFile::setSize ( const int  size)
QString ContentSelectorModel::EsmFile::toolTip ( ) const
inline

Here is the caller graph for this function:

Member Data Documentation

QString ContentSelectorModel::EsmFile::mAuthor
private
QString ContentSelectorModel::EsmFile::mDescription
private
QString ContentSelectorModel::EsmFile::mFileName
private
int ContentSelectorModel::EsmFile::mFormat
private
QStringList ContentSelectorModel::EsmFile::mGameFiles
private
QDateTime ContentSelectorModel::EsmFile::mModified
private
QString ContentSelectorModel::EsmFile::mPath
private
QString ContentSelectorModel::EsmFile::mToolTip
private
int ContentSelectorModel::EsmFile::sPropertyCount = 7
static
QString ContentSelectorModel::EsmFile::sToolTip
static
Initial value:
= QString("<b>Author:</b> %1<br/> \
<b>Version:</b> %2<br/> \
<b>Modified:</b> %3<br/> \
<b>Path:</b><br/>%4<br/> \
<br/><b>Description:</b><br/>%5<br/> \
<br/><b>Dependencies: </b>%6<br/>")

Property Documentation

QString ContentSelectorModel::EsmFile::filename
read

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