Fix libxrme build errors on windows
This commit is contained in:
parent
d357a1cb6e
commit
66a5a1484b
16
3rdparty/libxrme/connection.cpp
vendored
16
3rdparty/libxrme/connection.cpp
vendored
@ -158,36 +158,36 @@ QString Connection::jid_resource() const { return d->jid_resource_; }
|
||||
QString Connection::jid_host() const { return d->jid_host_; }
|
||||
bool Connection::is_verbose() const { return d->verbose_; }
|
||||
|
||||
void Connection::SetMediaPlayer(MediaPlayerInterface* interface) {
|
||||
void Connection::SetMediaPlayer(MediaPlayerInterface* iface) {
|
||||
if (d->media_player_) {
|
||||
qWarning() << "Connection::SetMediaPlayer: this connection already has a"
|
||||
" MediaPlayerInterface set";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!interface) {
|
||||
if (!iface) {
|
||||
qWarning() << "Connection::SetMediaPlayer called with NULL interface";
|
||||
return;
|
||||
}
|
||||
|
||||
d->media_player_ = interface;
|
||||
d->handlers_ << new MediaPlayerHandler(interface);
|
||||
d->media_player_ = iface;
|
||||
d->handlers_ << new MediaPlayerHandler(iface);
|
||||
}
|
||||
|
||||
void Connection::SetRemoteControl(RemoteControlInterface* interface) {
|
||||
void Connection::SetRemoteControl(RemoteControlInterface* iface) {
|
||||
if (d->media_player_) {
|
||||
qWarning() << "Connection::RemoteControlInterface: this connection already"
|
||||
" has a RemoteControlInterface set";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!interface) {
|
||||
if (!iface) {
|
||||
qWarning() << "Connection::SetRemoteControl called with NULL interface";
|
||||
return;
|
||||
}
|
||||
|
||||
d->remote_control_ = interface;
|
||||
d->handlers_ << new RemoteControlHandler(interface);
|
||||
d->remote_control_ = iface;
|
||||
d->handlers_ << new RemoteControlHandler(iface);
|
||||
}
|
||||
|
||||
bool Connection::is_connected() const {
|
||||
|
4
3rdparty/libxrme/connection.h
vendored
4
3rdparty/libxrme/connection.h
vendored
@ -92,14 +92,14 @@ public:
|
||||
// remote control agents. Should be called before calling Connect(). The
|
||||
// Connection will NOT take ownership of the MediaPlayerInterface, and the
|
||||
// MediaPlayerInterface MUST stay alive for as long as the connection.
|
||||
void SetMediaPlayer(MediaPlayerInterface* interface);
|
||||
void SetMediaPlayer(MediaPlayerInterface* iface);
|
||||
|
||||
// Sets a remote control on the connection. Calling this means the XRME agent
|
||||
// will advertise itself as a remote control, and will receive state changes
|
||||
// from media player agents. Should be called before calling Connect(). The
|
||||
// Connection will NOT take ownership of the RemoteControlInterface, and the
|
||||
// RemoteControlInterface MUST stay alive for as long as the connection.
|
||||
void SetRemoteControl(RemoteControlInterface* interface);
|
||||
void SetRemoteControl(RemoteControlInterface* iface);
|
||||
|
||||
// Returns true after Connected() is emitted.
|
||||
bool is_connected() const;
|
||||
|
4
3rdparty/libxrme/mediaplayerhandler.cpp
vendored
4
3rdparty/libxrme/mediaplayerhandler.cpp
vendored
@ -29,8 +29,8 @@
|
||||
|
||||
namespace xrme {
|
||||
|
||||
MediaPlayerHandler::MediaPlayerHandler(MediaPlayerInterface* interface)
|
||||
: interface_(interface) {
|
||||
MediaPlayerHandler::MediaPlayerHandler(MediaPlayerInterface* iface)
|
||||
: interface_(iface) {
|
||||
interface_->Attach(this);
|
||||
}
|
||||
|
||||
|
4
3rdparty/libxrme/remotecontrolhandler.cpp
vendored
4
3rdparty/libxrme/remotecontrolhandler.cpp
vendored
@ -28,8 +28,8 @@
|
||||
|
||||
namespace xrme {
|
||||
|
||||
RemoteControlHandler::RemoteControlHandler(RemoteControlInterface* interface)
|
||||
: interface_(interface) {
|
||||
RemoteControlHandler::RemoteControlHandler(RemoteControlInterface* iface)
|
||||
: interface_(iface) {
|
||||
interface_->Attach(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user