DumontEXE 0.0.1
Public Slots | Public Member Functions
cmcQueue Class Reference

Process Queue. More...

#include <cmcQueue.h>

Inheritance diagram for cmcQueue:

List of all members.

Public Slots

bool add (const QString &itemName, long priority, const QString &program, const QString &value)
 Add a named item to the Queue
.
bool add (long priority, const QString &program, const QString &arguments)
 Add a unnamed item to the Queue
.
bool clear ()
 Clear the queue of all its items
.
long count ()
 Count of items in the queue
.
cmcCursorcursor ()
 Return the cursor
.
bool hasQueueCategory ()
 Return True if Application has Queue Category
.
bool isBusy ()
 Check the Busy status
.
bool isHalted ()
 Check the Halt status
.
void processFinished (int exitCode, QProcess::ExitStatus exitStatus)
 Internal Call-back function
.
QString queueCategoryName ()
 Return the Category Name
.
bool setHalt (bool state)
 Set the Halt status
.
void timerEvent (QTimerEvent *event)
 Application Timer Event
.

Public Member Functions

 cmcQueue (const QString &queueName, cmcApplication *app, QObject *parent)
 Standard Constructor
.

Detailed Description

Process Queue.

This object represents a 'Process' queue. A process queue is a container that manages a list of items that must be sent sequentially to a process of some sort. An example of such a list of items would be a list of programs to run in sequence to accomplish a particular task.

For instance. Consider that Commence does a good job of firing agents to accomplish various tasks. If a calendar item is edited, and saved, for instance, Commence can respond by firing an agent to post-process that calendar item to, say, sync it with another application like Outlook.

However, a problem arises when one client computer syncs with the workgroup, and the workgroup pushes dozens of calendar item changes to your client. This often results in dozens of agents firing very quickly causing dozens of scripts to run simultaneously causing a virtual halt of your system.

Instead of the agent launching multiple .vbs applications to perform these post-process functions, the agent can add 'Queue Items' to the queue category for handling by this object. This object, then, continuously scans the Dumont Queue Category for new items and processes them one by one.

Definition at line 66 of file cmcQueue.h.


Constructor & Destructor Documentation

cmcQueue ( const QString &  queueName,
cmcApplication app,
QObject *  parent 
)

Standard Constructor
.

Definition at line 14 of file cmcQueue.cpp.


Member Function Documentation

bool add ( const QString &  itemName,
long  priority,
const QString &  program,
const QString &  value 
) [slot]

Add a named item to the Queue
.

Definition at line 76 of file cmcQueue.cpp.

bool add ( long  priority,
const QString &  program,
const QString &  arguments 
) [slot]

Add a unnamed item to the Queue
.

An unnamed item is an item that ends up having a guid value as it's name field value. The guid value is random and is generated automatically by the system when the item is added.

Definition at line 59 of file cmcQueue.cpp.

bool clear ( void  ) [slot]

Clear the queue of all its items
.

Definition at line 255 of file cmcQueue.cpp.

long count ( void  ) [slot]

Count of items in the queue
.

Definition at line 236 of file cmcQueue.cpp.

cmcCursor * cursor ( ) [slot]

Return the cursor
.

This cursor is filtered and sorted

Definition at line 185 of file cmcQueue.cpp.

bool hasQueueCategory ( ) [slot]

Return True if Application has Queue Category
.

Definition at line 44 of file cmcQueue.cpp.

bool isBusy ( ) [slot]

Check the Busy status
.

Definition at line 219 of file cmcQueue.cpp.

bool isHalted ( ) [slot]

Check the Halt status
.

Definition at line 224 of file cmcQueue.cpp.

void processFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [slot]

Internal Call-back function
.

Definition at line 292 of file cmcQueue.cpp.

QString queueCategoryName ( ) [slot]

Return the Category Name
.

Defaults to "DumontQueue"

Definition at line 52 of file cmcQueue.cpp.

bool setHalt ( bool  state) [slot]

Set the Halt status
.

Definition at line 229 of file cmcQueue.cpp.

void timerEvent ( QTimerEvent *  event) [slot]

Application Timer Event
.

Application Timer Event.

Definition at line 130 of file cmcQueue.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com