00001 /* 00002 This file is part of the Opie Project 00003 =. (C) 2005 Michael 'Mickey' Lauer <mickey@Vanille.de> 00004 .=l. 00005 .>+-= 00006 _;:, .> :=|. This program is free software; you can 00007 .> <`_, > . <= redistribute it and/or modify it under 00008 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00009 .="- .-=="i, .._ License as published by the Free Software 00010 - . .-<_> .<> Foundation; either version 2 of the License, 00011 ._= =} : or (at your option) any later version. 00012 .%`+i> _;_. 00013 .i_,=:_. -<s. This program is distributed in the hope that 00014 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00015 : .. .:, . . . without even the implied warranty of 00016 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00017 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00018 ..}^=.= = ; Library General Public License for more 00019 ++= -. .` .: details. 00020 : = ...= . :.=- 00021 -. .:....=;==+<; You should have received a copy of the GNU 00022 -_. . . )=. = Library General Public License along with 00023 -- :-=` this library; see the file COPYING.LIB. 00024 If not, write to the Free Software Foundation, 00025 Inc., 59 Temple Place - Suite 330, 00026 Boston, MA 02111-1307, USA. 00027 00028 */ 00029 00030 #ifndef CONFIGDIALOG_H 00031 #define CONFIGDIALOG_H 00032 00033 #include "configdialogbase.h" 00034 00035 namespace Opie { namespace Core { class OPcmciaSocket; class OConfig; }; }; 00036 00037 typedef QMap<QString,QString> StringMap; 00038 00039 class ConfigDialog : public ConfigDialogBase 00040 { 00041 Q_OBJECT 00042 public: 00043 ConfigDialog( const Opie::Core::OPcmciaSocket* card, QWidget* parent ); 00044 ~ConfigDialog(); 00045 static QString preferredAction( const Opie::Core::OPcmciaSocket* card, const QString& type ); 00046 static QString readConfigEntry( const Opie::Core::OPcmciaSocket* card, const QString& key, const QString& defaultValue ); 00047 static void writeConfigEntry( const Opie::Core::OPcmciaSocket* card, const QString& key, const QString& value ); 00048 static Opie::Core::OConfig* cardConfig( const Opie::Core::OPcmciaSocket* card ); 00049 void writeConfiguration( const Opie::Core::OPcmciaSocket* card ); 00050 StringMap bindEntries; 00051 }; 00052 00053 #endif
1.4.2