2020-12-15 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDLogLine::refreshCart()' method.
	* Refactored the 'Edit Log' dialog in rdlogedit(1) to use Qt's
	MVC API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-12-15 12:53:29 -05:00
parent 0bd165a823
commit 0b57b4b8de
40 changed files with 2355 additions and 901 deletions

View File

@@ -1,8 +1,8 @@
// rdgroup_list.h
//
// A container class for Rivendell Groups
// A list container for Rivendell Groups
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2020 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
@@ -21,23 +21,22 @@
#ifndef RDGROUP_LIST_H
#define RDGROUP_LIST_H
#include <vector>
#include <qsqldatabase.h>
using namespace std;
#include <QStringList>
class RDGroupList
{
public:
RDGroupList();
void loadSvc(QString svcname);
QString serviceName() const;
void setServiceName(const QString &str);
void clear();
int size() const;
QString group(unsigned n) const;
bool isGroupValid(QString group);
QString group(int n) const;
bool groupIsValid(QString group);
private:
vector<QString> list_groups;
QString d_service_name;
QStringList d_groups;
};