1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Cleaned up tomahawkapp.cpp.

This commit is contained in:
Christian Muehlhaeuser 2011-08-13 07:28:15 +02:00
parent 51b39b5302
commit 3766edcc43

View File

@ -112,8 +112,6 @@ using namespace Tomahawk;
TomahawkApp::TomahawkApp( int& argc, char *argv[] )
: TOMAHAWK_APPLICATION( argc, argv )
{
qDebug() << "TomahawkApp thread:" << thread();
setOrganizationName( QLatin1String( TOMAHAWK_ORGANIZATION_NAME ) );
setOrganizationDomain( QLatin1String( TOMAHAWK_ORGANIZATION_DOMAIN ) );
setApplicationName( QLatin1String( TOMAHAWK_APPLICATION_NAME ) );
@ -132,6 +130,7 @@ TomahawkApp::init()
::exit(0);
}
qDebug() << "TomahawkApp thread:" << thread();
Logger::setupLogfile();
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
@ -309,16 +308,18 @@ TomahawkApp::instance()
void
TomahawkApp::printHelp()
{
std::cout << QString( "usage: " + arguments().at( 0 ) + " [options] [url]\n" ).toAscii().data();
std::cout << QString( "options are:\n" ).toAscii().data();
std::cout << QString( " --help Show this help\n" ).toAscii().data();
std::cout << QString( " --http Initialize HTTP server\n" ).toAscii().data();
std::cout << QString( " --filescan Scan for files on startup\n" ).toAscii().data();
std::cout << QString( " --testdb Use a test database instead of real collection\n" ).toAscii().data();
std::cout << QString( " --noupnp Disable UPNP\n" ).toAscii().data();
std::cout << QString( " --nosip Disable SIP\n" ).toAscii().data();
std::cout << QString( "\nurl is a tomahawk:// command or alternatively a url that Tomahawk can recognize.\n" ).toAscii().data();
std::cout << QString( "For more documentation, see http://wiki.tomahawk-player.org/mediawiki/index.php/Tomahawk://_Links\n" ).toAscii().data();
#define echo( X ) std::cout << QString( X ).toAscii().data()
echo( "Usage: " + arguments().at( 0 ) + " [options] [url]\n" );
echo( "Options are:\n" );
echo( " --help Show this help\n" );
echo( " --http Initialize HTTP server\n" );
echo( " --filescan Scan for files on startup\n" );
echo( " --testdb Use a test database instead of real collection\n" );
echo( " --noupnp Disable UPNP\n" );
echo( " --nosip Disable SIP\n" );
echo( "\nurl is a tomahawk:// command or alternatively a url that Tomahawk can recognize.\n" );
echo( "For more documentation, see http://wiki.tomahawk-player.org/mediawiki/index.php/Tomahawk://_Links\n" );
}