[rkward-cvs] SF.net SVN: rkward:[4488] trunk/rkward/rkward/plugin

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Jan 9 18:39:59 UTC 2013


Revision: 4488
          http://rkward.svn.sourceforge.net/rkward/?rev=4488&view=rev
Author:   tfry
Date:     2013-01-09 18:39:57 +0000 (Wed, 09 Jan 2013)
Log Message:
-----------
Beginnings of plugin depedency handling. This is not much of anything so far, but committing now saved me from forgetting to 'svn add' later.

Added Paths:
-----------
    trunk/rkward/rkward/plugin/rkcomponentmeta.cpp
    trunk/rkward/rkward/plugin/rkcomponentmeta.h

Added: trunk/rkward/rkward/plugin/rkcomponentmeta.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponentmeta.cpp	                        (rev 0)
+++ trunk/rkward/rkward/plugin/rkcomponentmeta.cpp	2013-01-09 18:39:57 UTC (rev 4488)
@@ -0,0 +1,19 @@
+/***************************************************************************
+                          rkcomponentmeta  -  description
+                             -------------------
+    begin                : Wed Jan 09 2013
+    copyright            : (C) 2013 by Thomas Friedrichsmeier
+    email                : tfry at users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   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.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "rkcomponentmeta.h"
+

Added: trunk/rkward/rkward/plugin/rkcomponentmeta.h
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponentmeta.h	                        (rev 0)
+++ trunk/rkward/rkward/plugin/rkcomponentmeta.h	2013-01-09 18:39:57 UTC (rev 4488)
@@ -0,0 +1,40 @@
+/***************************************************************************
+                          rkcomponentmeta  -  description
+                             -------------------
+    begin                : Wed Jan 09 2013
+    copyright            : (C) 2013 by Thomas Friedrichsmeier
+    email                : tfry at users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   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 RKCOMPONENTMETA_H
+#define RKCOMPONENTMETA_H
+
+struct RKComponentDependency {
+	RKComponentDependency (_type, _package, _min_version, _max_version) : type (_type), package (_package), min_version (_min_version), max_version (_max_version);
+	enum DependencyType {
+		RBaseInstallation,
+		RPackage,
+		RKWardPackage
+	};
+	DependencyType type;
+	QString package;
+	int min_version;
+	int max_version;
+};
+
+class RKComponentMeta {
+	static bool isRKWardVersionCompatible (const QDomElement &e, bool optional);
+	static QList<RKComponentDependency> parseDependencies (const QDomElement &e);
+	KAboutData parseAboutData (const QDomElement &e);
+};
+
+#endif

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list