mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
23 lines
568 B
C++
23 lines
568 B
C++
#ifndef SESSION_HTTP_REQUEST_HANDLER_INCLUDED
|
|
#define SESSION_HTTP_REQUEST_HANDLER_INCLUDED
|
|
|
|
#include "../model/Session.h"
|
|
#include "PageRequestMessagedHandler.h"
|
|
|
|
|
|
|
|
class SessionHTTPRequestHandler : public PageRequestMessagedHandler
|
|
{
|
|
public:
|
|
SessionHTTPRequestHandler(Session* session) : mSession(session) {}
|
|
|
|
protected:
|
|
Session* mSession;
|
|
|
|
inline const char* gettext(const char* text) { if (!mSession || !mSession->getLanguageCatalog()) return text; return mSession->getLanguageCatalog()->gettext(text); }
|
|
|
|
};
|
|
|
|
|
|
#endif // SESSION_HTTP_REQUEST_HANDLER_INCLUDED
|