Fix libxrme build errors on windows

This commit is contained in:
David Sansome 2011-03-04 20:50:17 +00:00
parent d357a1cb6e
commit 66a5a1484b
4 changed files with 14 additions and 14 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -29,8 +29,8 @@
namespace xrme {
MediaPlayerHandler::MediaPlayerHandler(MediaPlayerInterface* interface)
: interface_(interface) {
MediaPlayerHandler::MediaPlayerHandler(MediaPlayerInterface* iface)
: interface_(iface) {
interface_->Attach(this);
}

View File

@ -28,8 +28,8 @@
namespace xrme {
RemoteControlHandler::RemoteControlHandler(RemoteControlInterface* interface)
: interface_(interface) {
RemoteControlHandler::RemoteControlHandler(RemoteControlInterface* iface)
: interface_(iface) {
interface_->Attach(this);
}