Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/glooxwrapper/glooxwrapper.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | public: | ||||
template<class T> | template<class T> | ||||
inline const T* findExtension(int type) const | inline const T* findExtension(int type) const | ||||
{ | { | ||||
return static_cast<const T*>(findExtension(type)); | return static_cast<const T*>(findExtension(type)); | ||||
} | } | ||||
gloox::IQ::IqType subtype() const; | gloox::IQ::IqType subtype() const; | ||||
const string id() const; | |||||
Itms: This could return a `const string`. | |||||
const gloox::JID& from() const; | |||||
gloox::StanzaError error_error() const; // wrapper for ->error()->error() | gloox::StanzaError error_error() const; // wrapper for ->error()->error() | ||||
Tag* tag() const; | Tag* tag() const; | ||||
}; | }; | ||||
class GLOOXWRAPPER_API JID | class GLOOXWRAPPER_API JID | ||||
{ | { | ||||
NONCOPYABLE(JID); | NONCOPYABLE(JID); | ||||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
This could return a const string.