You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeutils/tdelirc/tdelirc/iractions.h

53 lines
1.0 KiB

//
//
// C++ Interface: $MODULE$
//
// Description:
//
//
// Author: Gav Wood <gav@kde.org>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef IRACTIONS_H
#define IRACTIONS_H
#include <tqvaluelist.h>
#include <tqpair.h>
#include <tqstring.h>
#include <tqmap.h>
#include "iraction.h"
#include "mode.h"
/**
@author Gav Wood
*/
class TDEConfig;
typedef TQValueListIterator<IRAction> IRAIt;
typedef TQValueList<IRAIt> IRAItList;
class IRActions: protected TQValueList<IRAction>
{
private:
void purgeAllBindings(TDEConfig &theConfig);
public:
IRAIt addAction(const IRAction &theAction);
IRAItList findByButton(const TQString &remote, const TQString &button);
IRAItList findByMode(const Mode &mode);
IRAItList findByModeButton(const Mode &mode, const TQString &button);
void erase(const IRAIt &action) { TQValueList<IRAction>::erase(action); }
void renameMode(const Mode &mode, const TQString &to);
void loadFromConfig(TDEConfig &theConfig);
void saveToConfig(TDEConfig &theConfig);
};
#endif