Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

rtkimage.h

00001 /*<<<<<COPYRIGHT*/
00002 /*
00003  * RTK The report toolkit
00004  * Copyright (C) 2003 Francisco Santiago Capel Torres
00005 
00006  * rtkimage.h RTK Image object
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  */
00019 /*>>>>>COPYRIGHT*/
00020 #ifndef RTKIMAGE_H
00021 #define RTKIMAGE_H
00022 
00023 
00024 #include <qimage.h>
00025 
00026 #include "rtknamespace.h"
00027 
00028 namespace RTK
00029 {
00030 
00035 class Image
00036 {
00037 
00038 /*<<<<<IMAGE_CONSTRUCTOR*/
00039 public:
00040         Image(String name = String::null, String url = String::null, 
00041                 String mimetype = String::null, String imagestyle = String::null)
00042         :mName(name), mUrl(url), 
00043                 mMimeType(mimetype), mImageStyle(imagestyle)
00044 /*>>>>>IMAGE_CONSTRUCTOR*/
00045                 , pImage(0)
00046         {}
00047         ~Image() { if( pImage ) delete pImage; }
00048         
00049         const QImage *getImage(const QString &paths, const QString &pwd = QString::null);
00050         
00051 /*<<<<<IMAGE_GETSET*/
00052 public:
00054         String getName() const { return mName; };
00056         void setName(String name) { mName = name; };
00058         String getUrl() const { return mUrl; };
00060         void setUrl(String url) { mUrl = url; };
00062         String getMimeType() const { return mMimeType; };
00064         void setMimeType(String mimetype) { mMimeType = mimetype; };
00066         String getImageStyle() const { return mImageStyle; };
00068         void setImageStyle(String imagestyle) { mImageStyle = imagestyle; };
00069 protected:
00070         String mName;
00071         String mUrl;
00072         String mMimeType;
00073         String mImageStyle;
00074 /*>>>>>IMAGE_GETSET*/
00075 private:
00076         void read(const QString &path, const QString &cwd  = QString::null);
00077         QImage *pImage;
00078 };
00079 
00080 }; // Namespace
00081 
00082 #endif

Generated on Tue Feb 22 14:44:37 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1