/***************************************************************************
 *   Copyright (C) 2003 by Dan Muller                                      *
 *   dan at verliba dot cz                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
#ifndef NDIRECTCONNECTCTRIGGERS_H
#define NDIRECTCONNECTCTRIGGERS_H

#include "ctrigger.h"
#include <vector>
#include "tmysqlmemorylist.h"

using std::vector;
using nConfig::tMySQLMemoryList;

namespace nDirectConnect {

class cServerDC;
namespace nTables {

/**
the vector of triggers, with load, reload, save functions..

@author Daniel Muller
*/
class cTriggers : public tMySQLMemoryList<cTrigger, cServerDC>
{
public:
	cTriggers(cServerDC *);
	virtual ~cTriggers(){};
	virtual void AddFields();
	cTrigger * Find(const string &name); //@todo Trigger stuff
};
};
};

#endif
