mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
Initial import of CVS-v2_8_branch
This commit is contained in:
60
lib/schedruleslist.h
Normal file
60
lib/schedruleslist.h
Normal file
@@ -0,0 +1,60 @@
|
||||
// schedruleslist.h
|
||||
//
|
||||
// A class for handling the scheduling rules for rdlogmanager/edit clocks
|
||||
//
|
||||
// Stefan Gabriel <stg@st-gabriel.de>
|
||||
//
|
||||
//
|
||||
//
|
||||
// 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 SCHEDRULESLIST_H
|
||||
#define SCHEDRULESLIST_H
|
||||
|
||||
|
||||
#include <qsqldatabase.h>
|
||||
|
||||
class SchedRulesList
|
||||
{
|
||||
public:
|
||||
SchedRulesList(QString clockname);
|
||||
~SchedRulesList();
|
||||
void insertItem(int pos,int maxrow,int minwait,QString notafter,QString orafter,QString orafterii);
|
||||
QString getItemSchedCode(int pos);
|
||||
int getItemMaxRow(int pos);
|
||||
int getItemMinWait(int pos);
|
||||
int getNumberOfItems(void);
|
||||
QString getItemNotAfter(int pos);
|
||||
QString getItemOrAfter(int pos);
|
||||
QString getItemOrAfterII(int pos);
|
||||
QString getItemDescription(int pos);
|
||||
void Save(QString clockname);
|
||||
|
||||
|
||||
private:
|
||||
int itemcounter;
|
||||
QString* sched_code;
|
||||
int* max_row;
|
||||
int* min_wait;
|
||||
QString* not_after;
|
||||
QString* or_after;
|
||||
QString* or_after_II;
|
||||
QString* description;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user