From 656792e5a7a655c140aae178593896086cec25df Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 12 Mar 2001 10:46:02 +0000 Subject: Put some classes in separate files. Started setup dialog Use a QMap for Optionnames in config file. (prevents typos). --- kde2/kpsion/kpsionconfig.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 kde2/kpsion/kpsionconfig.h (limited to 'kde2/kpsion/kpsionconfig.h') diff --git a/kde2/kpsion/kpsionconfig.h b/kde2/kpsion/kpsionconfig.h new file mode 100644 index 0000000..95cbb50 --- /dev/null +++ b/kde2/kpsion/kpsionconfig.h @@ -0,0 +1,64 @@ +/*-*-c++-*- + * $Id$ + * + * This file is part of plptools. + * + * Copyright (C) 1999-2001 Fritz Elfert + * + * 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. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +#ifndef _KPSIONCONFIG_H_ +#define _KPSIONCONFIG_H_ + +#include +#include + +typedef QMap optMap; + +class KPsionConfig { +public: + + enum cfgOptions { + OPT_BACKUPDIR = 0, + OPT_INCINTERVAL = 1, + OPT_FULLINTERVAL = 2, + OPT_CONNRETRY = 3, + OPT_SERIALDEV = 4, + OPT_SERIALSPEED = 5, + OPT_BACKUPGEN = 6, + OPT_UIDS = 7, + OPT_MACHNAME = 8, + OPT_BACKUPDRIVES = 9, + }; + + KPsionConfig(); + + QStringList getConfigDevices(); + QStringList getConfigSpeeds(); + const QString getOptionName(int); + const QString getSectionName(int); + +private: + optMap optionNames; + +}; +#endif + +/* + * Local variables: + * c-basic-offset: 4 + * End: + */ -- cgit v1.2.3