kalzium
kalziumdataobject.h
Go to the documentation of this file.00001 #ifndef KALZIUMDATAOBJECT_H 00002 #define KALZIUMDATAOBJECT_H 00003 /*************************************************************************** 00004 * Copyright (C) 2005, 2006 by Carsten Niehaus * 00005 * cniehaus@kde.org * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, write to the * 00019 * Free Software Foundation, Inc., * 00020 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00021 ***************************************************************************/ 00022 00023 #include <element.h> 00024 #include <QHash> 00025 #include <QPixmap> 00026 00027 class Search; 00028 00047 class KalziumDataObject 00048 { 00049 public: 00053 static KalziumDataObject* instance(); 00054 00058 QList<Element*> ElementList; 00059 00063 void setSearch( Search *srch ); 00064 00068 Search* search() const; 00069 00074 Element* element( int number ); 00075 00079 QList<Isotope*> isotopes( int number ); 00080 00084 QList<Isotope*> isotopes( Element * element ); 00085 00086 QPixmap pixmap( int number ); 00087 00094 int numberOfElements() const { return m_numOfElements; } 00095 00096 private: 00097 KalziumDataObject(); 00098 ~KalziumDataObject(); 00099 00100 QList<QPixmap> PixmapList; 00101 00102 QHash<int, QList<Isotope*> > m_isotopes; 00103 00107 int m_numOfElements; 00108 00109 Search *m_search; 00110 }; 00111 #endif // KALZIUMDATAOBJECT_H
KDE 4.0 API Reference