/***************************************************************************
 *   Copyright (C) 2004 by Judd Baileys                                    *
 *   jbaileys@bigpond.net.au                                               *
 *                                                                         *
 *   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 DOCBROWSER_H
#define DOCBROWSER_H

#include <kmainwindow.h>
#include <qvariant.h>
#include <qwidget.h>
#include <kparts/part.h>
#include <kparts/browserextension.h>
#include <kio/statusbarprogress.h>
#include "progresswidget.h"

class QVBoxLayout;
class QGridLayout;
class KHTMLPart;
class QGridLayout;
class QGroupBox;
class KLineEdit;
class KStatusBar;
class KToolBar;
class StatusBarProgress;


/**
@author Judd Baileys
*/
class DocBrowser : public QWidget
{
Q_OBJECT
public:
    DocBrowser(QWidget *parent=0, const char *name = 0, WFlags fl = 0);
    ~DocBrowser();
     QGroupBox* advancedGroupBox;
     void closeWin();
     KHTMLPart *khtmlpart;    
     void closeURL();
     KLineEdit *wwwLineEdit;
     KIO::StatusbarProgress *statusProgress;    
      KStatusBar* statusbar;
     KToolBar * toolbar;
     ProgressWidget * loadingProgress;
     
public slots: 
     void openURLRequest(const KURL &url, const KParts::URLArgs & );
//	void formSubmitNotification (const char *action, const QString &url, const QByteArray &formData, const QString &target, const QString &contentType, const QString &boundary);
     void slotNewURL ();
     void homeURL ();
     void webURL ();
     void statusBarText(const QString &url);
     
protected:

    QGridLayout* DocBrowserLayout;    
    QVBoxLayout* layout10;
    
signals:
void resetaccounts();

};

#endif
