PageRenderTime 162ms CodeModel.GetById 80ms app.highlight 2ms RepoModel.GetById 79ms app.codeStats 0ms

/thirdparty/qxt/qxtweb-standalone/example/main.cpp

http://github.com/tomahawk-player/tomahawk
C++ | 22 lines | 13 code | 9 blank | 0 comment | 0 complexity | 09094aee69cf3e8b94d47c8a040dc68f MD5 | raw file
 1#include <QCoreApplication>
 2
 3#include "myservice.h"
 4
 5
 6int main(int argc, char ** argv){
 7
 8        QCoreApplication app(argc,argv);
 9
10        QxtHttpServerConnector connector;
11
12        QxtHttpSessionManager session;
13        session.setPort(8080);
14        session.setConnector(&connector);
15
16        MyService s1(&session);
17        session.setStaticContentService ( &s1);
18
19        session.start();
20        return app.exec();
21}
22