From ea4406b4779306f4d0c65f0619cd8241bbdcef7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Feb 2010 20:23:29 +0000 Subject: Added abandoned version of kio-apt git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1088432 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/dpkg.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/dpkg.h (limited to 'src/dpkg.h') diff --git a/src/dpkg.h b/src/dpkg.h new file mode 100644 index 0000000..1092386 --- /dev/null +++ b/src/dpkg.h @@ -0,0 +1,50 @@ +/*************************************************************************** + * Copyright (C) 2003 by Sylvain Joyeux * + * sylvain.joyeux@m4x.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. * + ***************************************************************************/ +#ifndef DPKG_H +#define DPKG_H + +#include + +#include "packagemanager.h" +#include + +/** +@author Sylvain Joyeux +*/ +class Dpkg : public PackageManager +{ + Q_OBJECT + + typedef void (Dpkg::*ReceiveMethod) (const QStringList& lines); + ReceiveMethod m_receive; + + KProcIO m_process; + QString m_buffer; + +private slots: + void readReady(KProcIO* io); + +private: + void receiveSearch(const QStringList& line); + void receiveList(const QStringList& line); + +public: + Dpkg(QObject *parent = 0, const char *name = 0); + ~Dpkg(); + + virtual bool list(const QString& package); + virtual bool search(const QString& file); + + virtual int capabilities(int query) const; + + virtual QString getOnlineForm(); +}; + +#endif -- cgit v1.2.1