mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-14 22:51:13 +02:00
2018-10-24 Fred Gleason <fredg@paravelsystems.com>
* Consolidated the implementation of the 'RDProfile' class into two files. * Added an rdselect_helper(1) SETUID helper program. * Removed the SETUID bit from rdselect(1).
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A class to read an ini formatted configuration file.
|
||||
//
|
||||
// (C) Copyright 2002-2003,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Library General Public License
|
||||
@@ -25,7 +25,41 @@
|
||||
|
||||
#include <qstring.h>
|
||||
|
||||
#include <rdprofilesection.h>
|
||||
class RDProfileLine
|
||||
{
|
||||
public:
|
||||
RDProfileLine();
|
||||
QString tag() const;
|
||||
void setTag(QString tag);
|
||||
QString value() const;
|
||||
void setValue(QString value);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QString line_tag;
|
||||
QString line_value;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class RDProfileSection
|
||||
{
|
||||
public:
|
||||
RDProfileSection();
|
||||
QString name() const;
|
||||
void setName(QString name);
|
||||
bool getValue(QString tag,QString *value) const;
|
||||
void addValue(QString tag,QString value);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QString section_name;
|
||||
std::vector<RDProfileLine> section_line;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @short Implements an ini configuration file parser.
|
||||
|
Reference in New Issue
Block a user