ManaPlus
Public Member Functions | Private Attributes
ModInfo Class Reference

#include <modinfo.h>

Public Member Functions

 ModInfo ()
 
void setName (const std::string &name)
 
const std::string & getName () const
 
void setDescription (const std::string &text)
 
const std::string & getDescription () const
 
void setHelp (const std::string &text)
 
const std::string & getHelp () const
 
void setLocalDir (const std::string &text)
 
const std::string & getLocalDir () const
 

Private Attributes

std::string mName
 
std::string mDescription
 
std::string mHelp
 
std::string mLocalDir
 

Detailed Description

Definition at line 30 of file modinfo.h.

Constructor & Destructor Documentation

◆ ModInfo()

ModInfo::ModInfo ( )

Definition at line 28 of file modinfo.cpp.

28  :
29  // TRANSLATORS: being info default name
30  mName(_("unnamed")),
31  mDescription(),
32  mHelp(),
33  mLocalDir()
34 {
35 }
std::string mName
Definition: modinfo.h:62
std::string mDescription
Definition: modinfo.h:63
std::string mHelp
Definition: modinfo.h:64
std::string mLocalDir
Definition: modinfo.h:65
#define _(s)
Definition: gettext.h:35

Member Function Documentation

◆ getDescription()

const std::string& ModInfo::getDescription ( ) const
inline

Definition at line 46 of file modinfo.h.

47  { return mDescription; }

References mDescription.

◆ getHelp()

const std::string& ModInfo::getHelp ( ) const
inline

Definition at line 52 of file modinfo.h.

53  { return mHelp; }

References mHelp.

◆ getLocalDir()

const std::string& ModInfo::getLocalDir ( ) const
inline

Definition at line 58 of file modinfo.h.

59  { return mLocalDir; }

References mLocalDir.

Referenced by UpdaterWindow::loadDirMods(), and UpdaterWindow::unloadMods().

◆ getName()

const std::string& ModInfo::getName ( ) const
inline

Definition at line 40 of file modinfo.h.

41  { return mName; }

References mName.

◆ setDescription()

void ModInfo::setDescription ( const std::string &  text)
inline

Definition at line 43 of file modinfo.h.

44  { mDescription = text; }

References mDescription.

Referenced by ModDB::loadXmlFile().

◆ setHelp()

void ModInfo::setHelp ( const std::string &  text)
inline

Definition at line 49 of file modinfo.h.

50  { mHelp = text; }

References mHelp.

Referenced by ModDB::loadXmlFile().

◆ setLocalDir()

void ModInfo::setLocalDir ( const std::string &  text)
inline

Definition at line 55 of file modinfo.h.

56  { mLocalDir = text; }

References mLocalDir.

Referenced by ModDB::loadXmlFile().

◆ setName()

void ModInfo::setName ( const std::string &  name)
inline

Definition at line 37 of file modinfo.h.

38  { mName = name; }

References mName.

Referenced by ModDB::loadXmlFile().

Field Documentation

◆ mDescription

std::string ModInfo::mDescription
private

Definition at line 63 of file modinfo.h.

Referenced by getDescription(), and setDescription().

◆ mHelp

std::string ModInfo::mHelp
private

Definition at line 64 of file modinfo.h.

Referenced by getHelp(), and setHelp().

◆ mLocalDir

std::string ModInfo::mLocalDir
private

Definition at line 65 of file modinfo.h.

Referenced by getLocalDir(), and setLocalDir().

◆ mName

std::string ModInfo::mName
private

Definition at line 62 of file modinfo.h.

Referenced by getName(), and setName().


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