summaryrefslogtreecommitdiffstats
path: root/src/dpkg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 20:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 20:23:29 +0000
commitea4406b4779306f4d0c65f0619cd8241bbdcef7b (patch)
treea63d24ddd768559eb993d9bb847acbc3750ef261 /src/dpkg.h
downloadtdeio-apt-ea4406b4779306f4d0c65f0619cd8241bbdcef7b.tar.gz
tdeio-apt-ea4406b4779306f4d0c65f0619cd8241bbdcef7b.zip
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
Diffstat (limited to 'src/dpkg.h')
-rw-r--r--src/dpkg.h50
1 files changed, 50 insertions, 0 deletions
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 *
+ * *
+ * 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 <config.h>
+
+#include "packagemanager.h"
+#include <kprocio.h>
+
+/**
+@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