mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
yhook: move ctor/dtor to cpp
Origin commit data
------------------
Commit: 07b39de268
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-20 (Sat, 20 Feb 2016)
Origin message was:
------------------
- yhook: move ctor/dtor to cpp
This commit is contained in:
@@ -13,6 +13,28 @@
|
||||
#include "ylogging.h"
|
||||
#include "helper.h"
|
||||
|
||||
//=============================================================================
|
||||
// Constructor & Ceconstructor
|
||||
//=============================================================================
|
||||
CyhookHandler::CyhookHandler()
|
||||
{
|
||||
ContentLength = 0;
|
||||
RangeStart = 0;
|
||||
RangeEnd = -1;
|
||||
cached = false;
|
||||
keep_alive = 0;
|
||||
_outIndent = 0;
|
||||
status = HANDLED_NONE;
|
||||
Method = M_UNKNOWN;
|
||||
httpStatus = HTTP_NIL;
|
||||
outType = plain;
|
||||
LastModified=0;
|
||||
}
|
||||
|
||||
CyhookHandler::~CyhookHandler()
|
||||
{
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
// Initialization of static variables
|
||||
//=============================================================================
|
||||
|
@@ -123,6 +123,9 @@ class CyhookHandler
|
||||
protected:
|
||||
static THookList HookList;
|
||||
public:
|
||||
CyhookHandler();
|
||||
~CyhookHandler();
|
||||
|
||||
// Output
|
||||
std::string yresult; // content for response output
|
||||
THandleStatus status; // status of Hook handling
|
||||
@@ -144,9 +147,6 @@ public:
|
||||
CStringList WebserverConfigList; // Reference (writable) to ConfigList
|
||||
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
|
||||
THttp_Method Method; // HTTP Method (requested)
|
||||
// constructor & deconstructor
|
||||
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; cached = false; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;LastModified=0;};
|
||||
virtual ~CyhookHandler(){};
|
||||
|
||||
// hook slot handler
|
||||
static void attach(Cyhook *yh) // attach a Hook-Class to HookHandler
|
||||
|
Reference in New Issue
Block a user