Update CMake to 3.2.1 in .travis.yml
[supertux.git] / src / addon / addon.hpp
index 66b3a16..37da298 100644 (file)
@@ -1,5 +1,6 @@
 //  SuperTux - Add-on
 //  Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//                2014 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  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
@@ -41,7 +42,7 @@ private:
   std::string m_license;
 
   // additional fields provided for addons from an addon repository
-  std::string m_http_url;
+  std::string m_url;
   std::string m_md5;
 
   // fields filled by the AddonManager
@@ -53,13 +54,14 @@ private:
 
 public:
   std::string get_id() const { return m_id; }
+  int get_version() const { return m_version; }
 
   Type get_type() const { return m_type; }
   std::string get_title() const { return m_title; }
   std::string get_author() const { return m_author; }
   std::string get_license() const { return m_license; }
 
-  std::string get_http_url() const { return m_http_url; }
+  std::string get_url() const { return m_url; }
   std::string get_md5() const { return m_md5; }
 
   std::string get_filename() const;
@@ -68,7 +70,7 @@ public:
   bool is_installed() const;
   bool is_enabled() const;
 
-  void set_install_filename(const std::string& absolute_filename);
+  void set_install_filename(const std::string& absolute_filename, const std::string& md5);
   void set_enabled(bool v);
 
 private: