DbScript
|
The ControlCentre class is the main interface to all Control Center methods. THIS CLASS IS THE ONLY INTERFACE THAT MODIFIES THE DATABASE. All other interfaces simply define objects, and are used as arguments to the ControlCentre methods. More...
#include <scriptinterface.h>
Public Slots | |
Utility methods | |
String | messageLog () |
retrieve the Control Centre message log More... | |
void | printToConsole (const String &contents) |
print back to the telnet console over the network connection More... | |
String | realDbPath (const String &logicalPath) |
Convert to a real database path, as long as the logicalPath can be resolved. More... | |
Users | |
QVector< QObject * > | users () |
Retrieve a list of all users. More... | |
bool | addUser (User *user) |
Add a new user. More... | |
bool | deleteUser (User *user) |
Delete an existing user. More... | |
bool | modifyUser (User *user) |
Modify a user Current supported modifications are changes to the name, firstname and last name. More... | |
bool | verifyUser (User *user) |
Verify if a user exists in the database. More... | |
Environments | |
QVector< QObject * > | environments () |
Retrieve a list of all environments. More... | |
bool | addEnvironment (Environment *env) |
add a new environment More... | |
bool | deleteEnvironment (Environment *env) |
delete a existing environment More... | |
bool | verifyEnvironment (Environment *env) |
verify if an environment exists in the database More... | |
bool | modifyEnvironment (Environment *env) |
Modify a environment Current supported modifications are changes to the assetLock. More... | |
Jobs | |
Verify if a job exists in the database | |
QVector< QObject * > | jobs (Environment *env) |
Retrieve a list of all jobs in a given environment. More... | |
bool | addJob (Job *job) |
Add a job to an environment. More... | |
bool | deleteJob (Job *job) |
delete a job More... | |
bool | modifyJob (Job *job) |
Modify a job to an environment Current supported modifications are changes to the priority, approval policy and stage. More... | |
bool | verifyJob (Job *job) |
Verify if a job exists in the database. More... | |
Scenes | |
QVector< QObject * > | scenes (Job *job) |
Retrieve a list of all scenes in a given job. More... | |
QVector< QObject * > | lockedScenes (Job *job) |
Retrieve a list of all locked scenes in a given job. More... | |
QVector< QObject * > | lockedSceneVersions (Scene *scene) |
Retrieve a list of all locked scene versions in a given scene. More... | |
bool | addScene (Scene *scene, int addPos) |
Add a new scene to an existing job. More... | |
bool | deleteScene (Scene *scene) |
Delete an existing scene. More... | |
bool | forceUnlockScene (Scene *scene, const String &username) |
Force unlock a scene. More... | |
bool | forceUnlockSceneVersion (SceneVersion *scene, const String &username) |
Force unlock a scene version. More... | |
bool | renameScene (Scene *scene, const String &newName) |
rename a scene More... | |
bool | copyScene (Scene *fromScene, Scene *toScene, bool allData) |
copy a scene More... | |
bool | moveScene (Scene *scene, const String &fileSystem, bool override) |
move a scene More... | |
bool | preMoveSceneValidate (Scene *scene, const String &fileSystem) |
bool | fileSystemHasDirectory (Scene *scene, const String &fileSystem) |
int | sceneSize (Scene *scene) |
get the size of a scene in Mbytes More... | |
bool | clearScene (Scene *scene) |
clear a scene More... | |
bool | sceneHasXsheet (Scene *scene) |
Does a scene have an xsheet? More... | |
bool | changeSceneStage (Scene *scene, const String &stage) |
Change the stage of a scene. More... | |
bool | changeScenePriority (Scene *scene, int priority) |
Change the priority of a scene. More... | |
Import /Export | |
bool | importScene (ImportData *import) |
Import a scene into the database. More... | |
StringList | availableFileSystems () |
Get list of filesystems exposed to the database. More... | |
bool | exportScene (ExportData *exportData) |
Export a scene from the database. More... | |
QObject | calculateSizeOfExport (ExportData *exportData) |
Calculate size of export package - Calculates all fields of the ExportSize based on job and sceneNames of exportData. More... | |
Public Member Functions | |
ControlCentre (QObject *, TUDbSelect *dbSelector, DBS_Mediator *mediator, WHO_AppInfo *_appInfo) | |
~ControlCentre () | |
StringList | messagesForConsole () |
Elements, Drawings and Versions | |
QVector< QObject * > | elements (Scene *scene) |
Retrieve all elements within a scene. More... | |
QVector< QObject * > | versions (Scene *scene) |
Retrieve all versions of a scene. More... | |
QVector< QObject * > | drawings (Element *element) |
Retrieve all drawings within a element within a scene. More... | |
Locked Drawings and Palettes | |
StringList | lockedAssets (Scene *scene) |
Retrieve a list of all locked drawings and palettes within the scene. More... | |
bool | forceUnlockAsset (const String &asset) |
Force unlock a given drawing or palette ( as found in the call to lockedAssets ) More... | |
Private Member Functions | |
void | getCurrentProcessStrings (TUDbAccess::dba_queueEntry_struct *) |
Private Attributes | |
TUDbSelect * | _dbSelector |
DBS_Mediator * | _mediator |
WHO_AppInfo * | _appInfo |
StringList | _messagesForConsole |
String | _stateStr |
String | _userStr |
String | _machineStr |
String | _dateStr |
String | _timeStr |
DBS_VectOptionList * | _vectOptions |
Render and Vectorize Queues | |
StringList | pixmapFormatList () |
Retrieve the list of supported pixmap formats ( for unvectorize ) More... | |
QVector< QObject * > | getRenderJobs (Environment *env) |
Retrieve a list of all render jobs within a given environment. More... | |
QVector< QObject * > | getVectorJobs (Environment *env) |
Retrieve a list of all vectorize jobs within a given environment. More... | |
bool | renderScene (Environment *env, RenderData *renderData) |
Send a scene to the render queue. More... | |
StringList | namedResolutions () |
Returns list of defined resolutions. More... | |
bool | vectorizeElement (Environment *env, VectorData *renderData, const String &vectorizeStyle) |
Send a scene/element/drawing to the vectorize queue If no element is specified, all elements of the given scene will be sent. If no drawing is specified, all drawings of the given element will be sent. See VectorData for details. More... | |
StringList | vectorizationStyles () |
Retrieve a list of the available vectorization styles ( found in etc/VectOptions.conf ) More... | |
void | reReadVectFile () |
Force Control Centre to reread the list of the available vectorization styles ( found in etc/VectOptions.conf ) More... | |
bool | unVectorizeElement (Environment *env, VectorData *renderData, const String &procOptions, const String &suffix) |
Send a scene/element/drawing to the unVectorize queue If no element is specified, all elements of the given scene will be sent. If no drawing is specified, all drawings of the given element will be sent. See VectorData for details. More... | |
The ControlCentre class is the main interface to all Control Center methods. THIS CLASS IS THE ONLY INTERFACE THAT MODIFIES THE DATABASE. All other interfaces simply define objects, and are used as arguments to the ControlCentre methods.
ControlCentre::ControlCentre | ( | QObject * | , |
TUDbSelect * | dbSelector, | ||
DBS_Mediator * | mediator, | ||
WHO_AppInfo * | _appInfo | ||
) |
ControlCentre::~ControlCentre | ( | ) |
|
slot |
add a new environment
env | environment data |
|
slot |
Add a job to an environment.
job | job data |
|
slot |
Add a new scene to an existing job.
scene | new scene |
addPos | enumerated type of AddPositionType |
|
slot |
Add a new user.
user | user data |
|
slot |
Get list of filesystems exposed to the database.
|
slot |
Calculate size of export package - Calculates all fields of the ExportSize based on job and sceneNames of exportData.
exportData | Export Data - see ExportData for details |
|
slot |
Change the priority of a scene.
scene | Existing scene in the database |
priority | new priority |
|
slot |
Change the stage of a scene.
scene | Existing scene in the database |
stage | new stage |
|
slot |
clear a scene
fromScene | Existing scene in the database |
copy a scene
fromScene | Existing scene in the database |
toScene | Existing scene in the database |
allData | copy all data or not |
|
slot |
delete a existing environment
env | environment data |
|
slot |
delete a job
job | job data |
|
slot |
Delete an existing scene.
scene | Existing scene in the database |
|
slot |
Delete an existing user.
user | Existing user in the database |
QVector<QObject *> ControlCentre::drawings | ( | Element * | element | ) |
Retrieve all drawings within a element within a scene.
element | Existing element within the database |
QVector<QObject *> ControlCentre::elements | ( | Scene * | scene | ) |
Retrieve all elements within a scene.
scene | Existing Scene within the database |
|
slot |
Retrieve a list of all environments.
|
slot |
Export a scene from the database.
exportData | Export Data - see ExportData for details |
|
slot |
bool ControlCentre::forceUnlockAsset | ( | const String & | asset | ) |
Force unlock a given drawing or palette ( as found in the call to lockedAssets )
|
slot |
Force unlock a scene.
scene | Existing scene in the database |
username | The user performing the force unlock scene. Needed to determine permissions (Added in Harmony 11.0) |
|
slot |
Force unlock a scene version.
scene | Existing scene version in the database |
username | The user performing the force unlock scene version. Needed to determine permissions (Added in Harmony 11.0) |
|
private |
|
slot |
Retrieve a list of all render jobs within a given environment.
env | Existing Environment within the database |
|
slot |
Retrieve a list of all vectorize jobs within a given environment.
env | Existing Environment within the database |
|
slot |
Import a scene into the database.
import | Import Data - see ImportData for details |
|
slot |
Retrieve a list of all jobs in a given environment.
env | Existing environment in the database |
StringList ControlCentre::lockedAssets | ( | Scene * | scene | ) |
Retrieve a list of all locked drawings and palettes within the scene.
scene | Existing Scene within the database |
|
slot |
Retrieve a list of all locked scenes in a given job.
job | Existing job in the database |
|
slot |
Retrieve a list of all locked scene versions in a given scene.
scene | Existing scene in the database |
|
slot |
retrieve the Control Centre message log
|
inline |
|
slot |
Modify a environment Current supported modifications are changes to the assetLock.
env | env data |
|
slot |
Modify a job to an environment Current supported modifications are changes to the priority, approval policy and stage.
job | job data |
|
slot |
Modify a user Current supported modifications are changes to the name, firstname and last name.
user | Existing user in the database |
|
slot |
move a scene
scene | Existing scene in the database |
fileSystem | Existing fileSystem recognized by database |
|
slot |
Returns list of defined resolutions.
StringList ControlCentre::pixmapFormatList | ( | ) |
Retrieve the list of supported pixmap formats ( for unvectorize )
|
slot |
|
slot |
print back to the telnet console over the network connection
contents | String to print |
|
slot |
Convert to a real database path, as long as the logicalPath can be resolved.
returns empty string if the path does not exist
logicalPath | path relative to /USA_DB |
|
slot |
rename a scene
scene | Existing scene in the database |
newName | new name of scene |
|
slot |
Send a scene to the render queue.
env | Existing Environment within the database |
renderData | Object containing all paramaters for the render |
|
slot |
Force Control Centre to reread the list of the available vectorization styles ( found in etc/VectOptions.conf )
|
slot |
Does a scene have an xsheet?
scene | Existing scene in the database |
|
slot |
Retrieve a list of all scenes in a given job.
job | Existing job in the database |
|
slot |
get the size of a scene in Mbytes
scene | Existing scene in the database |
|
slot |
Send a scene/element/drawing to the unVectorize queue If no element is specified, all elements of the given scene will be sent. If no drawing is specified, all drawings of the given element will be sent. See VectorData for details.
env | Existing Environment within the database |
renderData | Object containing all paramaters for the unvectorize |
command | line options ( -antialialsing low | medium-low | medium | high -resolution scan | int int -bgcolor 1.0 1.0 1.0 |
suffix | ( TGA, PNG, etc...) |
|
slot |
Retrieve a list of all users.
|
slot |
Retrieve a list of the available vectorization styles ( found in etc/VectOptions.conf )
|
slot |
Send a scene/element/drawing to the vectorize queue If no element is specified, all elements of the given scene will be sent. If no drawing is specified, all drawings of the given element will be sent. See VectorData for details.
env | Existing Environment within the database |
renderData | Object containing all paramaters for the vectorize |
vectorizeStyle | name of the vectorization style |
|
slot |
verify if an environment exists in the database
env | environment data |
|
slot |
Verify if a job exists in the database.
job | job data |
|
slot |
Verify if a user exists in the database.
user | Existing user in the database |
QVector<QObject *> ControlCentre::versions | ( | Scene * | scene | ) |
Retrieve all versions of a scene.
scene | Existing Scene within the database |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |