Fix compilation without pjsip.

This commit is contained in:
John Maguire 2011-04-07 14:12:37 +00:00
parent 18bfa12042
commit 55021ef67d
1 changed files with 6 additions and 0 deletions

View File

@ -130,8 +130,10 @@ void GLog(const gchar* domain,
qDebug() << "GLOG" << message;
}
#ifdef HAVE_REMOTE
#include <xrme/connection.h>
#include "remote/icesession.h"
#endif
int main(int argc, char *argv[]) {
if (CrashReporting::SendCrashReport(argc, argv)) {
@ -216,7 +218,9 @@ int main(int argc, char *argv[]) {
qRegisterMetaType<GstElement*>("GstElement*");
qRegisterMetaType<GstEnginePipeline*>("GstEnginePipeline*");
#ifdef HAVE_REMOTE
qRegisterMetaType<xrme::SIPInfo>("SIPInfo");
#endif
#ifdef HAVE_LIBLASTFM
lastfm::ws::ApiKey = LastFMService::kApiKey;
@ -253,6 +257,7 @@ int main(int argc, char *argv[]) {
UniversalEncodingHandler handler;
TagLib::ID3v1::Tag::setStringHandler(&handler);
#ifdef HAVE_REMOTE
if (options.stun_test() != CommandlineOptions::StunTestNone) {
QCoreApplication app(argc, argv);
@ -312,6 +317,7 @@ int main(int argc, char *argv[]) {
return 0;
}
#endif
QtSingleApplication a(argc, argv);
#ifdef Q_OS_DARWIN