/*
 *  kcmsmserver.h
 *  Copyright (c) 2000 Oswald Buddenhagen <ob6@inf.tu-dresden.de>
 *
 *  based on kcmtaskbar.h
 *  Copyright (c) 2000 Kurt Granroth <granroth@kde.org>
 *
 *  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
 */
#ifndef __kcmsmserver_h__
#define __kcmsmserver_h__

#define KDE3_SUPPORT
#include <kcmodule.h>
#undef KDE3_SUPPORT

class SMServerConfigImpl;


class SMServerConfig : public KCModule
{
  Q_OBJECT

public:
  explicit SMServerConfig( QWidget *parent=0, const QVariantList &list=QVariantList() );

  void load();
  void save();
  void defaults();

private:
  void loadWMs( const QString& current );
  QString currentWM() const;
  QHash< QString, QString > wms; // i18n text -> internal name
  QString oldwm; // the original value
  SMServerConfigImpl* dialog;
};

#endif
