mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 14:43:30 +02:00
* Removed ' RDReadPost()', 'RDPutPostString()', 'GetPostString()', 'GetPostInt()', 'GetPostLongInt()', 'RDPurgePostString', 'RDEncodeString()', 'RDEncodeSQLString()', 'RDDecodeString()', 'RDPutPlaintext()', 'RDPurgePlaintext()', 'RDCgiError()', 'RDBufferDiff()', 'RDPruneAmp()', 'RDEscapeQuotes()', 'RDAuthenticateLogin()', ' RDAuthenticateSession()', 'RDLogoutSession()' and 'RDParsePost()' functions from 'lib/rdweb.[cpp|h]'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
72 lines
2.7 KiB
C
72 lines
2.7 KiB
C
// rdweb.h
|
|
//
|
|
// Functions for interfacing with web components using the
|
|
// Common Gateway Interface (CGI) Standard
|
|
//
|
|
// (C) Copyright 1996-2021 Fred Gleason <fredg@paravelsystems.com>
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License version 2 as
|
|
// published by the Free Software Foundation.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public
|
|
// License along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
//
|
|
|
|
#ifndef RDWEB_H
|
|
#define RDWEB_H
|
|
|
|
#include <QDateTime>
|
|
#include <QString>
|
|
|
|
#include <rdaudioconvert.h>
|
|
|
|
//
|
|
// Function Prototypes
|
|
//
|
|
extern void RDXMLResult(const char *str,int resp_code,
|
|
RDAudioConvert::ErrorCode err=RDAudioConvert::ErrorOk);
|
|
extern QString RDXmlField(const QString &tag,const QString &value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const char *value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const int value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const unsigned value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const bool value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const QDateTime &value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const QDate &value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag,const QTime &value,
|
|
const QString &attrs="");
|
|
extern QString RDXmlField(const QString &tag);
|
|
extern QString RDXmlEscape(const QString &str);
|
|
extern QString RDXmlUnescape(const QString &str);
|
|
extern QString RDJsonPadding(int padding);
|
|
extern QString RDJsonNullField(const QString &name,int padding=0,
|
|
bool final=false);
|
|
extern QString RDJsonField(const QString &name,bool value,int padding=0,
|
|
bool final=false);
|
|
extern QString RDJsonField(const QString &name,int value,int padding=0,
|
|
bool final=false);
|
|
extern QString RDJsonField(const QString &name,unsigned value,int padding=0,
|
|
bool final=false);
|
|
extern QString RDJsonField(const QString &name,const QString &value,
|
|
int padding=0,bool final=false);
|
|
extern QString RDJsonField(const QString &name,const QDateTime &value,
|
|
int padding=0,bool final=false);
|
|
extern QString RDUrlEscape(const QString &str);
|
|
extern QString RDUrlUnescape(const QString &str);
|
|
|
|
|
|
#endif // RDWEB_H
|