superkaramba
sensorparams.h
00001 /* 00002 * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org> 00003 * Copyright (c) 2005 Ryan Nickell <p0z3r@earthlink.net> 00004 * 00005 * This file is part of SuperKaramba. 00006 * 00007 * SuperKaramba 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 * SuperKaramba 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 SuperKaramba; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 ****************************************************************************/ 00021 #ifndef SENSORPARAMS_H 00022 #define SENSORPARAMS_H 00023 00024 #include "meter.h" 00025 #include <tqstring.h> 00026 #include <tqmap.h> 00031 class SensorParams : public QObject 00032 { 00033 public: 00034 SensorParams( Meter* ); 00035 00036 ~SensorParams(); 00037 00038 void addParam( const TQString &name, const TQString &value); 00039 TQString getParam( const TQString& ) const; 00040 00041 Meter* getMeter() const; 00042 private: 00043 Meter *meter; 00044 TQMap<TQString,TQString> params; 00045 00046 }; 00047 00048 #endif