#include <qdialog.h>
#include <qlistbox.h>
#include <qpushbt.h>
#include <qfiledlg.h>


class KPK : public QDialog
{
	Q_OBJECT
	
	public:
	
	KPK(QWidget *parent=0, const char *name=0, char *path="/var/adm/packages");
	
	public slots:
	
	void showpress();
	void removepress();
	void exitpress();
	void installpress();
	void listdblclk(const char *fname);
	void recinput(KProcess *proc, char *buffer, int buflen);
	void processexited(KProcess *proc);	
	
	private:
	
	char path[1024];
	QListBox * packages, *results;
	QPushButton * Bshow, *Bremove, *Bexit, *Binstall;
	QPushButton *Lstatus;
	
	void load_pkg();
};
