Classes | Public Member Functions | List of all members
ARCSGeneralLogger Class Reference

General purpose logging component. More...

#include <arcsgenerallogger.h>

Inheritance diagram for ARCSGeneralLogger:
Inheritance graph
Collaboration diagram for ARCSGeneralLogger:
Collaboration graph

Public Member Functions

 ARCSGeneralLogger (QObject *parent=0)
 
virtual int qt_metacall (QMetaObject::Call call, int id, void **arguments)
 Method performing the actual callback task. More...
 
virtual QStringList getSignalList ()
 
virtual QStringList getSlotList ()
 
virtual int prepareSlotConnect (QString sigName, QString sltName, QString objectName=QString::null, QString actualSignal=QString::null, bool simulate=false)
 Prepares a connection with a slot which is belonging to this object. More...
 
virtual int prepareSignalConnect (QString sigName, QString sltName, QString objectName=QString::null, QString actualSlot=QString::null, bool simulate=false)
 Prepares a connection with a slot which does not belong to this object. More...
 
virtual int cleanSlotConnect (QString sigName, QString sltName, QString objectName, QString actualSignal)
 
virtual int cleanSignalConnect (QString sigName, QString sltName, QString objectName, QString actualSlot)
 
- Public Member Functions inherited from ARCSGeneralLoggerBase
 ARCSGeneralLoggerBase (QObject *parent=0)
 

Additional Inherited Members

- Public Slots inherited from ARCSGeneralLoggerBase
void setFilename (QString s)
 
void setSeparator (QString sep)
 
void endLine ()
 
- Protected Member Functions inherited from ARCSGeneralLoggerBase
bool canLog ()
 
- Protected Attributes inherited from ARCSGeneralLoggerBase
std::ofstream logFile
 
QString separator
 

Detailed Description

General purpose logging component.

Author
Jean-Yves Didier
Date
September, the 28th, 2009

Definition at line 71 of file arcsgenerallogger.h.

Member Function Documentation

int ARCSGeneralLogger::cleanSignalConnect ( QString  signame,
QString  sltName,
QString  objectName,
QString  actualSlot 
)
virtual

If a lot of things were required to prepare a signal connection, then the disconnection should also be implemented !

Implements ARCSQDynamicObject.

Definition at line 94 of file arcsgenerallogger.cpp.

int ARCSGeneralLogger::cleanSlotConnect ( QString  sigName,
QString  sltName,
QString  objectName,
QString  actualSignal 
)
virtual

If a lot of things were required to prepare a slot connection, then the disconnection should also be implemented !

Implements ARCSQDynamicObject.

Definition at line 77 of file arcsgenerallogger.cpp.

QStringList ARCSGeneralLogger::getSignalList ( )
virtual

Returns the list of signals implemented inside this component.

Implements ARCSQDynamicObject.

Definition at line 71 of file arcsgenerallogger.cpp.

QStringList ARCSGeneralLogger::getSlotList ( )
virtual

Returns the list of slots implemented inside this component.

Implements ARCSQDynamicObject.

Definition at line 64 of file arcsgenerallogger.cpp.

int ARCSGeneralLogger::prepareSignalConnect ( QString  sigName,
QString  sltName,
QString  objectName = QString::null,
QString  actualSlot = QString::null,
bool  simulate = false 
)
virtual

Prepares a connection with a slot which does not belong to this object.

This method has two purposes. First it should check wether the arguments of the given signals and slots are compatible. Second, it should set up what is needed in order to perform a clean connection and return the signal id.

Parameters
sigNamename and signature of the signal which belong to this object
sltNamename and signature of the slot which is triggered by the signal
objectNamename of the object which owns the slot.
simulateif true then the actual preparation is not performed, if false then everything is performed.
Returns
the id of the signal, -1 if it failed.

Implements ARCSQDynamicObject.

Definition at line 123 of file arcsgenerallogger.cpp.

int ARCSGeneralLogger::prepareSlotConnect ( QString  sigName,
QString  sltName,
QString  objectName = QString::null,
QString  actualSignal = QString::null,
bool  simulate = false 
)
virtual

Prepares a connection with a slot which is belonging to this object.

This method has two purposes. First it should check wether the arguments of the given signals and slots are compatible. Second, it should set up what is needed in order to perform a clean connection and return the slot id.

Parameters
sigNamename and signature of the signal which should trigger the slot.
sltNamename and signature of the slot which is triggered
objectNamename of the object emitting the signal
simulateif true then the actual preparation is not performed, if false then everything is performed.
Returns
the id of the slot, -1 if it failed.

Implements ARCSQDynamicObject.

Definition at line 97 of file arcsgenerallogger.cpp.

int ARCSGeneralLogger::qt_metacall ( QMetaObject::Call  call,
int  id,
void **  arguments 
)
virtual

Method performing the actual callback task.

This method is at the core of a QObject and is usually automatically created by moc Here the user has to reimplement it.

Parameters
callshould usually take the value QMetaObject::InvokeMetaMethod
idis the id of a slot or a signal given by indexOfSlot() or indexOfSignal()
argumentsarray of values (the first pointer is usually for the return value.
Returns
-1 when the call has been performed.

Implements ARCSQDynamicObject.

Definition at line 129 of file arcsgenerallogger.cpp.

Here is the call graph for this function:


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