#ifndef ____mainmenu_h__
#define ____mainmenu_h__

#include "HTTPPage.h"

namespace http {

   class __mainmenu : public HTTPPage {
   
      int processCommand(std::string request, 
                         core::TCPSession *session, 
                         HTTPSession *httpSession, 
                         HTTPRequest *httpRequest, 
                         std::stringstream &data) override {
         
         data << "<div>" << std::endl;
         data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
         data << "      onmousedown=\"getPage('/configure','main');\">" << std::endl;
         data << "  <span>Setup Server Parameters</span>" << std::endl;
         data << " </div>" << std::endl;
         data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
         data << "      onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
         data << "  <span>View and Layout Designer</span>" << std::endl;
         data << " </div>" << std::endl;
         data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
         data << "      onmousedown=\"getPage('/entrypoints','main');\">" << std::endl;
         data << "  <span>Entry Points</span>" << std::endl;
         data << " </div>" << std::endl;
         data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
         data << "      onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
         data << "  <span>Data Entity Editor</span>" << std::endl;
         data << " </div>" << std::endl;
         data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
         data << "      onmousedown=\"getPage('/workflow','main');\">" << std::endl;
         data << "  <span>Work Flow Process Management</span>" << std::endl;
         data << " </div>" << std::endl;
         data << "</div>" << std::endl;
                  
         httpRequest->response.addHeader("Content-Type", "text/html");   

         return true;
      }        
   };
}

#endif
