#ifndef PWS_H 
#define PWS_H 

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif 

#include <kapp.h>
#include <ktmainwindow.h>

#include "pwswidget.h"

class PWS : public KTMainWindow
{
    Q_OBJECT
public:
    PWS(QWidget *parent = 0, const char *name = 0);
    virtual ~PWS();

    void startServer() {
        PWSWidget::restart();
    }

    void stopServer() {
        PWSWidget::stop();
    }

    virtual void show();

signals:
    void quitPressed(QObject *);

protected slots:
    void invokeHelp();
    void closeView(QObject *);

private:
    KMenuBar   *menuBar;
    KStatusBar *statusBar;
    KToolBar   *toolBar;

    PWSWidget *view;

    bool createdUI;
};

#endif // PWS_H 
