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

Describes a wine version configuration. More...

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

Inheritance diagram for q4wine::lib::WineVersion:
q4wine::lib::DBObject

Public Member Functions

 WineVersion ()
 
 WineVersion (std::string name, std::string binary, std::string server=std::string(), std::string loader=std::string(), std::string libs32=std::string(), std::string libs64=std::string(), intptr_t id=0)
 
 ~WineVersion ()
 
virtual bool save (void)
 Object into DB. More...
 
const std::string getEnvVariables (const std::string arch) const
 
void setName (std::string name)
 
void setBinary (std::string binary)
 
void setServer (std::string server)
 
void setLoader (std::string loader)
 
void setLibs32 (std::string libs32)
 
void setLibs64 (std::string libs64)
 
const std::string getName (void) const
 
const std::string getBinary (void) const
 
const std::string getServer (void) const
 
const std::string getLoader (void) const
 
const std::string getLibs32 (void) const
 
const std::string getLibs64 (void) const
 
const std::string getLibs (const std::string arch) 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 WineVersiongetInstance (intptr_t id)
 Create WineVersion 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

Wine Terms

Wine allows user to set WINESERVER, WINELOADER and WINEDLLPATH env variables to use different binaries. This allows user to have multiple wine instances installed on the system.

Q4Wine Terms
Note
It is possible to have multiple WinePrefix pointed to the single directory. In combination with WineVersion: setups is possible to run a number of truly independent wine processes.
Author
Alexey S. Malakhov breze.nosp@m.rk@g.nosp@m.mail..nosp@m.com

Constructor & Destructor Documentation

q4wine::lib::WineVersion::WineVersion ( )

Constructs an empty WineVersion object.

q4wine::lib::WineVersion::WineVersion ( std::string  name,
std::string  binary,
std::string  server = std::string(),
std::string  loader = std::string(),
std::string  libs32 = std::string(),
std::string  libs64 = std::string(),
intptr_t  id = 0 
)

Constructs an WineVersion object.

Parameters
nameUser defined name. See alse: setName getName
binaryThe general wine binary. Defaults to /usr/bin/wine if not set and if this doesn't exist we will then look for a file named "wine" in the path and in a few other likely locations. See also: setBinary getBinary
loaderSpecifies the path and name of the wine binary to use to launch new Windows processes. If not set, Wine will try to load /usr/bin/wine, and if this doesn't exist it will then look for a file named "wine" in the path and in a few other likely locations. See also: setLoader getLoader
serverSpecifies the path and name of the wineserver binary. If not set, Wine will try to load /usr/bin/wineserver, and if this doesn't exist it will then look for a file named "wineserver" in the path and in a few other likely locations. See also: setServer getServer
libs32Specifies the path(s) in which to search for builtin dlls and Winelib applications. This is a list of directories separated by ":". In addition to any directory specified in WINEDLLPATH, Wine will also look in /usr/lib32/wine. See also: setLibs32 getLibs32 getLibs
libs64Specifies the path(s) in which to search for builtin dlls and Winelib applications. This is a list of directories separated by ":". In addition to any directory specified in WINEDLLPATH, Wine will also look in /usr/lib64/wine. See also: setLibs64 getLibs64 getLibs
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::WineVersion::~WineVersion ( )

Member Function Documentation

const std::string q4wine::lib::WineVersion::getBinary ( void  ) const
const std::string q4wine::lib::WineVersion::getEnvVariables ( const std::string  arch) const

Constructs env variables (WINESERVER, WINELOADER, WINEDLLPATH) from WineVersion data.

Example: WINESERVER='/usr/bin/wineserver' WINELOADER='/usr/bin/wine' WINEDLLPATH='/usr/lib64/wine/'

Parameters
archDesired Wine Arch
See also
WinePrefix.
Returns
Formatted env variables.
WineVersion * q4wine::lib::WineVersion::getInstance ( intptr_t  id)
static
Parameters
idRecord id.
Returns
WineVersion object or NULL if not found.
const std::string q4wine::lib::WineVersion::getLibs ( const std::string  arch) const

Return libs configured for provided version

const std::string q4wine::lib::WineVersion::getLibs32 ( void  ) const
const std::string q4wine::lib::WineVersion::getLibs64 ( void  ) const
const std::string q4wine::lib::WineVersion::getLoader ( void  ) const
const std::string q4wine::lib::WineVersion::getName ( void  ) const
const std::string q4wine::lib::WineVersion::getServer ( void  ) const
bool q4wine::lib::WineVersion::save ( void  )
virtual
Returns
True on success.

Implements q4wine::lib::DBObject.

void q4wine::lib::WineVersion::setBinary ( std::string  binary)
void q4wine::lib::WineVersion::setLibs32 ( std::string  libs32)
void q4wine::lib::WineVersion::setLibs64 ( std::string  libs64)
void q4wine::lib::WineVersion::setLoader ( std::string  loader)
void q4wine::lib::WineVersion::setName ( std::string  name)
void q4wine::lib::WineVersion::setServer ( std::string  server)

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