Inheritance diagram for DbPhotoService:

Public Member Functions | |
| DbPhotoService (int sockDescripter, QDomDocument *pdoc, long ttl=0, QObject *parent=0) | |
| void | setMaxCache (int n) |
Protected Member Functions | |
| void | clearLocks () |
| QSqlDatabase | getServerParms (QString host) |
| void | processRequest (QMap< QString, QVariant > *req, QMap< QString, QVariant > *rsp) |
The DbPhotoService class is a subclass for the QcjHttpService class. It handles requests for individual photos. It will resize and properly set the number of colors as requested.
Definition at line 36 of file dbPhotoService.h.
| void DbPhotoService::clearLocks | ( | ) | [protected, virtual] |
This function has proven useless, kept just in case it can be made to work later. The point of it is to clear any locks that may be set for this object. Unfortunately, you cannot arbitarely clear unlocked locks, nor can you test is a lock is locked.
Reimplemented from QcjHttpService.
Definition at line 82 of file dbPhotoService.cpp.
| QSqlDatabase DbPhotoService::getServerParms | ( | QString | host | ) | [protected] |
Retrieves the parameters from the XML definition file for the host named by the parameter host and returns a pointer to the QSqlDatabase object for accessing it.
Definition at line 862 of file dbPhotoService.cpp.
Referenced by processRequest().
| void DbPhotoService::processRequest | ( | QMap< QString, QVariant > * | req, | |
| QMap< QString, QVariant > * | rsp | |||
| ) | [protected, virtual] |
Processes the incoming request parameter req. It then formulates a response and puts it into the map pointed to by the parameter req. Both parameters must point to valid, though possibly emtpy QMaps.
Reimplemented from QcjHttpService.
Definition at line 105 of file dbPhotoService.cpp.
References QcjHttpService::errorResponse(), getServerParms(), and QcjHttpService::parseArguments().
| void DbPhotoService::setMaxCache | ( | int | n | ) |
Sets the maximum number of entries allowed in the photo cache. The photo resize cache is set to 5 times the value of the parameter n as well.
Definition at line 69 of file dbPhotoService.cpp.
Referenced by PhotoGrotto::incomingConnection().
1.5.0