PACK Qt Binding  $VERSION$
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Macros | Functions | Variables
server.cpp File Reference
#include "server.h"
#include "server_p.h"
#include <WInterface>
#include <QDebug>
#include <QLocalServer>
#include <QLocalSocket>
#include <QStringList>
#include <QTcpServer>
#include <QTcpSocket>
#include <QTimer>
#include <QFile>

Macros

#define ERR404   "<h1>Path does not exist</h1>\nSorry, the path you requested does not exist.\n"
 
#define ERR400   "<h1>Invalid Request</h1>\nSorry, the request was invalid.\n"
 

Functions

static QString normalizepath (const QString &p)
 
static bool pathMatch (QString parent, QString subpath)
 
static bool qstringlonger (const QString &s1, const QString &s2)
 
static QString headerVar (QString h)
 
static QRegExp headerreg ("[A-Za-z0-9-_]+")
 

Variables

static int metaid =qRegisterMetaType<WServerRequest>()
 

Macro Definition Documentation

#define ERR400   "<h1>Invalid Request</h1>\nSorry, the request was invalid.\n"
#define ERR404   "<h1>Path does not exist</h1>\nSorry, the path you requested does not exist.\n"

Function Documentation

static QRegExp headerreg ( "+"  [A-Za-z0-9-_])
static
static QString headerVar ( QString  h)
inlinestatic
static QString normalizepath ( const QString &  p)
inlinestatic
static bool pathMatch ( QString  parent,
QString  subpath 
)
inlinestatic
static bool qstringlonger ( const QString &  s1,
const QString &  s2 
)
static

Variable Documentation

int metaid =qRegisterMetaType<WServerRequest>()
static