Describes a wine version configuration.
More...
#include <q4wine/src/lib/wineversion.hpp>
- 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
q4wine::lib::WineVersion::WineVersion |
( |
| ) |
|
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
-
name | User defined name. See alse: setName getName |
binary | The 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 |
loader | Specifies 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 |
server | Specifies 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 |
libs32 | Specifies 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 |
libs64 | Specifies 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 |
id | The 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 |
( |
| ) |
|
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
-
- See also
- WinePrefix.
- Returns
- Formatted env variables.
WineVersion * q4wine::lib::WineVersion::getInstance |
( |
intptr_t |
id | ) |
|
|
static |
- Parameters
-
- 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 |
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: