kstars
customcatalog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 customcatalog.h - K Desktop Planetarium 00003 ------------------- 00004 begin : Fri 3 Jun 2005 00005 copyright : (C) 2005 by Jason Harris 00006 email : kstars@30doradus.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CUSTOM_CATALOG_H 00019 #define CUSTOM_CATALOG_H 00020 00021 #include <qptrlist.h> 00022 #include "skyobject.h" 00023 00024 class QString; 00025 00029 class CustomCatalog { 00030 public: 00031 CustomCatalog(); 00032 CustomCatalog( QString nm, QString px, QString co, float ep, QPtrList<SkyObject> ol ); 00033 ~CustomCatalog(); 00034 00035 QString name() const { return m_Name; } 00036 QString prefix() const { return m_Prefix; } 00037 QString color() const { return m_Color; } 00038 float epoch() const { return m_Epoch; } 00039 QPtrList<SkyObject> objList() const { return m_ObjList; } 00040 00041 void setName( const QString &name ) { m_Name = name; } 00042 void setPrefix( const QString &prefix ) { m_Prefix = prefix; } 00043 void setColor( const QString &color ) { m_Color = color; } 00044 void setEpoch( float epoch ) { m_Epoch = epoch; } 00045 void setObjectList( QPtrList<SkyObject> ol ) { m_ObjList = ol; } 00046 00047 private: 00048 QString m_Name, m_Prefix, m_Color; 00049 float m_Epoch; 00050 QPtrList<SkyObject> m_ObjList; 00051 }; 00052 00053 #endif //CUSTOM_CATALOG_H