Q4Wine  2.0
Q4Wine is a Qt GUI for Wine.
Public Member Functions | Static Public Member Functions | List of all members
q4wine::lib::Dir Class Reference

Describes an virtual directory. More...

#include <q4wine/src/lib/dir.hpp>

Inheritance diagram for q4wine::lib::Dir:
q4wine::lib::DBObject

Public Member Functions

 Dir ()
 
 Dir (std::string name, intptr_t prefixId=0, intptr_t dirId=0, intptr_t id=0)
 
 ~Dir ()
 
virtual bool save (void)
 Save Object into DB. More...
 
void setName (std::string name)
 
void setPrefixId (intptr_t prefixId)
 
void setDirId (intptr_t dirId)
 
const std::string getName (void) const
 
intptr_t getPrefixId (void) const
 
intptr_t getDirId (void) const
 
- Public Member Functions inherited from q4wine::lib::DBObject
 DBObject (std::string tableName, intptr_t id=0)
 
virtual ~DBObject ()
 
void setId (intptr_t id)
 
intptr_t getId (void) const
 

Static Public Member Functions

static DirgetInstance (intptr_t id)
 Create Dir object from DB by version.id. More...
 

Additional Inherited Members

- Protected Attributes inherited from q4wine::lib::DBObject
DBEnginedb_
 
std::string tableName_
 
intptr_t id_
 

Detailed Description

Author
Alexey S. Malakhov breze.nosp@m.rk@g.nosp@m.mail..nosp@m.com

Constructor & Destructor Documentation

q4wine::lib::Dir::Dir ( )

Constructs an empty Dir object.

q4wine::lib::Dir::Dir ( std::string  name,
intptr_t  prefixId = 0,
intptr_t  dirId = 0,
intptr_t  id = 0 
)

Constructs an Dir object.

Parameters
nameUser defined name.
prefixIdThe associated row id for WinePrefix object. If it set to 0, then the object is not associated with any database record. See also: setPrefixId getPrefixId
dirIdThe associated row id for WineApplication object. If it set to 0, then the object is not associated with any database record. See also: setDirId getDirId
idThe associated row id. If it set to 0, then the object is not associated with any database record. See also: DBObject::setId DBObject::getId
q4wine::lib::Dir::~Dir ( )

Member Function Documentation

intptr_t q4wine::lib::Dir::getDirId ( void  ) const
Dir * q4wine::lib::Dir::getInstance ( intptr_t  id)
static
Parameters
idRecord id.
Returns
Dir object or NULL if not found.
const std::string q4wine::lib::Dir::getName ( void  ) const
intptr_t q4wine::lib::Dir::getPrefixId ( void  ) const
bool q4wine::lib::Dir::save ( void  )
virtual
Returns
True on success

Implements q4wine::lib::DBObject.

void q4wine::lib::Dir::setDirId ( intptr_t  dirId)
void q4wine::lib::Dir::setName ( std::string  name)
void q4wine::lib::Dir::setPrefixId ( intptr_t  prefixId)

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