mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
23 lines
423 B
C++
23 lines
423 B
C++
#include <QCoreApplication>
|
|
|
|
#include "myservice.h"
|
|
|
|
|
|
int main(int argc, char ** argv){
|
|
|
|
QCoreApplication app(argc,argv);
|
|
|
|
QxtHttpServerConnector connector;
|
|
|
|
QxtHttpSessionManager session;
|
|
session.setPort(8080);
|
|
session.setConnector(&connector);
|
|
|
|
MyService s1(&session);
|
|
session.setStaticContentService ( &s1);
|
|
|
|
session.start();
|
|
return app.exec();
|
|
}
|
|
|