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:
Fred Gleason
2018-10-24 15:34:35 -04:00
parent 4f8a5278fd
commit 9d25af4c5f
35 changed files with 1096 additions and 400 deletions

View File

@@ -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.