mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-04 16:14:03 +01:00 
			
		
		
		
	* Added an 'Engine=' directive to the [MySQL] section of rd.conf(5). * Refactored the schema update code to use standard form in rdadmin(1).
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// 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 <rdconfig.h>
 | 
						|
 | 
						|
class SchedRulesList
 | 
						|
{
 | 
						|
  public:
 | 
						|
  SchedRulesList(QString clockname,RDConfig *config);
 | 
						|
   ~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 
 | 
						|
 |