DumontDLL.cpp File Reference

#include <stdlib.h>
#include <QClipboard>
#include <QStringList>
#include <QTextEdit>
#include <QDate>
#include <QTime>
#include <QFile>
#include <QDir>
#include <QMetaObject>
#include <QMetaMethod>
#include <QTimer>
#include <QUuid>
#include "DumontDLL.h"
#include "multidate\QMultiDateDialog.h"
#include "util.h"
#include "typelib/TypeLib.h"
#include <QTextStream>
#include <QTextCodec>
#include <SpellTextEditDialog.h>
#include "selectItemDialog.h"

Go to the source code of this file.

Defines

#define _LOG_(x)   log( scriptPath() + "/dumont.log", QString(__FILE__) + ":" + QString::number(__LINE__), x );

Enumerations

enum  FIXED_COLUMNS {
  CN_KEYFIELD, CN_VARFIELD, CN_DATESTART, CN_DATEEND,
  CN_STARTTIME, CN_ENDTIME, CN_END, CN_KEYFIELD,
  CN_VARFIELD, CN_DATESTART, CN_DATEEND, CN_STARTTIME,
  CN_ENDTIME, CN_END
}

Functions

QCommenceApplicationcmcApp (void)
 Provide global access to the Commence application object.
QCommenceDatabasecmcDB (void)
QDumontDLLdumDLL (void)
void loadCourtContact (QString connection, QString courtKey, QDomDocument &doc, QDomElement &parent)
static void modRow (QCommenceRowSet *rs, long row, long column, QString connection)

Variables

QPointer< QCommenceApplications_cmcApp
 DumontDLL.cpp.
QPointer< QCommenceDatabases_cmcDB
QPointer< QDumontDLLs_dumDLL
QTextEdit * messageWindow


Define Documentation

#define _LOG_ (  )     log( scriptPath() + "/dumont.log", QString(__FILE__) + ":" + QString::number(__LINE__), x );

Definition at line 102 of file DumontDLL.cpp.


Enumeration Type Documentation

Enumerator:
CN_KEYFIELD 
CN_VARFIELD 
CN_DATESTART 
CN_DATEEND 
CN_STARTTIME 
CN_ENDTIME 
CN_END 
CN_KEYFIELD 
CN_VARFIELD 
CN_DATESTART 
CN_DATEEND 
CN_STARTTIME 
CN_ENDTIME 
CN_END 

Definition at line 1391 of file DumontDLL.cpp.


Function Documentation

QCommenceApplication* cmcApp ( void   ) 

Provide global access to the Commence application object.

Warning:
This pointer is the Commence application object. It must be set up with one of the calls to ddll.start Form from scripting so that the start routine can record (for posterity) the application instance of Commence that it's referring to. HOWEVER, you MUST manually delete the database() pointer that you fetch from this application object. This is because the application object is persistent, and therefore makes the database object persistent. When that happens, Commence thinks it has an open reference pointer to the database object, even though you may be finished using it (ie; your function has returned). It's a pointer, but it must be freed, which is a real PITA at this point.

Definition at line 80 of file DumontDLL.cpp.

QCommenceDatabase* cmcDB ( void   ) 

Definition at line 85 of file DumontDLL.cpp.

QDumontDLL* dumDLL ( void   ) 

Definition at line 97 of file DumontDLL.cpp.

void loadCourtContact ( QString  connection,
QString  courtKey,
QDomDocument &  doc,
QDomElement &  parent 
)

Definition at line 1183 of file DumontDLL.cpp.

static void modRow ( QCommenceRowSet rs,
long  row,
long  column,
QString  connection 
) [static]

Definition at line 1366 of file DumontDLL.cpp.


Variable Documentation

QTextEdit * messageWindow

Definition at line 524 of file DumontDLL.cpp.

DumontDLL.cpp.

Global/Static Commence Application Object This is the global/static Commence application object. At some point this value has got to be set by the application. This is usually done in vbScript with a series of calls to the DumontDLL:

 dim dumDLL: set dumDLL = CreateObject("DumontDLL")
 dumDLL.application = Application
   ..or..
 dumDLL.start Application

Definition at line 58 of file DumontDLL.cpp.

Definition at line 59 of file DumontDLL.cpp.

QPointer<QDumontDLL> s_dumDLL

Definition at line 149 of file QCosFactory.cpp.





~ ~ ~ ~ ~ ~
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