]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/tags/class_Tagable.php
Merge branch 'contrib'
[hub.git] / application / hub / interfaces / tags / class_Tagable.php
index c00b71010d63b41b76c560aa717de1f255595ef1..98000f5c7944fbf7fc3acbc04834a6ef509fd267 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * An interface for tags
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.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
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface Tagable extends FrameworkInterface {
+       /**
+        * Chooses the right protocol from given package data
+        *
+        * @param       $packageData    Raw package data
+        * @return      $protocolName   Name of the choosen procotol
+        */
+       function chooseProtocolFromPackageData (array $packageData);
+
+       /**
+        * Checks whether the given package data is accepted by the listener
+        *
+        * @param       $packageData            Raw package data
+        * @param       $listenerInstance       A Listenable instance
+        * @return      $accepts                        Whether it is accepted
+        */
+       function ifPackageDataIsAcceptedByListener (array $packageData, Listenable $listenerInstance);
 }
 
 // [EOF]