Project

General

Profile

Support #1156 ยป hello.C

Pieter Libin, 02/15/2012 01:39 PM

 
#include <Wt/WApplication>
#include <Wt/WContainerWidget>

using namespace Wt;

class HelloApplication : public WApplication
{
public:
HelloApplication(const WEnvironment& env);
};

HelloApplication::HelloApplication(const WEnvironment& env)
: WApplication(env)
{
addMetaLink("/en/html/print",
"alternate",
"print",
"en",
"text/html",
"",
false);

addMetaLink("default.css",
"stylesheet",
"",
"",
"",
"",
true);

addMetaLink("iphone.png",
"icon",
"",
"",
"",
"57x57",
false);
}

WApplication *createApplication(const WEnvironment& env)
{
return new HelloApplication(env);
}

int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}

    (1-1/1)