Rivendellaudio/lib/rdevent.h
Fred Gleason 8637def359 2020-04-18 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'EVENTS.PROPERTIES' field from the database.
	* Incremented the database version to 316.
	* Removed the 'RDEventLine::properties()' and
	'RDEventLine::setProperties()' methods.
	* Added 'RDEventLine::propertiesText()' methods.
	* Added a 'Trans' column to the event list in the 'Edit Clock'
	dialog in rdlogmanager(1).
	* Added a 'Trans' column to the event list in the 'List Events'
	dialog in rdlogmanager(1).

Signed-off-by: Fred Gleason <fredg@paraelsystems.com>
2020-04-18 10:09:20 -04:00

87 lines
2.8 KiB
C++

// rdevent.h
//
// Abstract a Rivendell Log Manager Event
//
// (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
// 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.
//
#include <qsqldatabase.h>
#include <rdlog_line.h>
#include <rdevent_line.h>
#ifndef RDEVENT_H
#define RDEVENT_H
class RDEvent
{
public:
RDEvent(const QString &name,bool create=false);
QString name() const;
QString displayText(bool *ok) const;
void setDisplayText(bool ok,const QString &text) const;
QString noteText(bool *ok) const;
void setNoteText(bool ok,const QString &text) const;
int preposition() const;
void setPreposition(int offset) const;
RDLogLine::TimeType timeType() const;
void setTimeType(RDLogLine::TimeType type) const;
int graceTime() const;
void setGraceTime(int offset) const;
bool useAutofill() const;
void setUseAutofill(bool state) const;
int autofillSlop() const;
void setAutofillSlop(int slop) const;
bool useTimescale() const;
void setUseTimescale(bool state) const;
RDEventLine::ImportSource importSource() const;
void setImportSource(RDEventLine::ImportSource src) const;
int startSlop() const;
void setStartSlop(int slop) const;
int endSlop() const;
void setEndSlop(int slop) const;
RDLogLine::TransType firstTransType() const;
void setFirstTransType(RDLogLine::TransType trans) const;
RDLogLine::TransType defaultTransType() const;
void setDefaultTransType(RDLogLine::TransType trans) const;
QColor color() const;
void setColor(const QColor &color) const;
QString nestedEvent() const;
void setNestedEvent(const QString &eventname);
QString remarks() const;
void setRemarks(const QString &str) const;
QString schedGroup();
void setSchedGroup(QString str);
QString HaveCode();
void setHaveCode(QString str);
QString HaveCode2();
void setHaveCode2(QString str);
int artistSep();
void setArtistSep(int artistsep);
int titleSep();
void setTitleSep(int titlesep);
private:
int GetIntValue(const QString &field) const;
QString GetStringValue(const QString &field,bool *ok) const;
void SetRow(const QString &param,int value) const;
void SetRow(const QString &param,const QString &value,bool ok) const;
QString event_name;
};
#endif