/***************************************************************************
xqlicon.h - description
-------------------
begin : Sun Mar 3 2002
copyright : (C) 2002 by Raoul Markus
email : raoul.markus@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef XQLICON_H
#define XQLICON_H
#include
/**provides Pixmaps stored in the database
*@author Raoul Markus
*/
class xqlIcon : public xqlObject {
public:
xqlIcon(xqlOdbc * pConnection);
~xqlIcon();
/** returns the classname of this type */
virtual char * className() const;
/** sets data of this pixmap */
virtual void setData(const char * pData, const int pSize);
/** loads the instance given by pInstId from the database.
*/
bool loadInstance(int pInstId);
/** returns a pointer to the data */
virtual const char * getData() const;
/** returns the size in bytes */
virtual int getSize() const;
/** saves the current instance of the object.
*/
virtual bool saveInstance();
/** opens given pixmap file and reads the data into memory */
virtual void setDataFromFile(std::string pFileName);
/** return the size of a given file, provided for convenience */
long fileSize(const std::string pName) const;
private: // Private attributes
/** holds a pointer to the pixmap */
char * mPixelData;
/** */
long mSize;
};
#endif
| Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |