summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/package.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbd9e6617827818fd043452c08c606f07b78014a0 (patch)
tree425bb4c3168f9c02f10150f235d2cb998dcc6108 /kbugbuster/backend/package.h
downloadtdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz
tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/backend/package.h')
-rw-r--r--kbugbuster/backend/package.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/kbugbuster/backend/package.h b/kbugbuster/backend/package.h
new file mode 100644
index 00000000..7b5c69a1
--- /dev/null
+++ b/kbugbuster/backend/package.h
@@ -0,0 +1,43 @@
+#ifndef __package_h__
+#define __package_h__
+
+#include "person.h"
+
+#include <qvaluelist.h>
+
+#include <ksharedptr.h>
+
+class PackageImpl;
+
+class Package
+{
+public:
+ typedef QValueList<Package> List;
+
+ Package();
+ Package( PackageImpl *impl );
+ Package( const Package &other );
+ Package &operator=( const Package &rhs );
+ ~Package();
+
+ QString name() const;
+ QString description() const;
+ uint numberOfBugs() const;
+ Person maintainer() const;
+ const QStringList components() const;
+
+ bool isNull() const { return m_impl == 0; }
+
+ PackageImpl *impl() const { return m_impl; }
+
+ bool operator==( const Package &rhs );
+ bool operator<( const Package &rhs ) const;
+
+private:
+ KSharedPtr<PackageImpl> m_impl;
+};
+
+#endif
+
+/* vim: set sw=4 ts=4 et softtabstop=4: */
+