Package rocks.xmpp.extensions.version
Interface SoftwareVersionManager
-
- All Superinterfaces:
DiscoverableInfo
,ExtensionProtocol
,SoftwareInfoProvider<SoftwareVersion>
- All Known Implementing Classes:
ClientSoftwareVersionManager
public interface SoftwareVersionManager extends SoftwareInfoProvider<SoftwareVersion>
Represents XEP-0092: Software Version.It handles IQ queries and provides the required service discovery features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SoftwareVersion
getSoftwareVersion()
Gets my own software version.AsyncResult<SoftwareVersion>
getSoftwareVersion(Jid jid)
Queries another entity for its software version.void
setSoftwareVersion(SoftwareVersion softwareVersion)
Sets my own software version.-
Methods inherited from interface rocks.xmpp.extensions.disco.model.info.DiscoverableInfo
getExtensions, getFeatures, getIdentities
-
Methods inherited from interface rocks.xmpp.core.ExtensionProtocol
getNamespace, isEnabled
-
Methods inherited from interface rocks.xmpp.extensions.softwareinfo.SoftwareInfoProvider
getSoftwareInfo, setSoftwareInfo
-
-
-
-
Method Detail
-
getSoftwareVersion
AsyncResult<SoftwareVersion> getSoftwareVersion(Jid jid)
Queries another entity for its software version.- Parameters:
jid
- The entity's JID.- Returns:
- The result containing the software version.
-
getSoftwareVersion
SoftwareVersion getSoftwareVersion()
Gets my own software version.- Returns:
- My software version.
- See Also:
setSoftwareVersion(SoftwareVersion)
-
setSoftwareVersion
void setSoftwareVersion(SoftwareVersion softwareVersion)
Sets my own software version. The set version is returned when this handler is queried for the software version.- Parameters:
softwareVersion
- My software version.- See Also:
getSoftwareVersion()
-
-