kdelirc
iractions.h
Go to the documentation of this file.00001 // 00002 // 00003 // C++ Interface: $MODULE$ 00004 // 00005 // Description: 00006 // 00007 // 00008 // Author: Gav Wood <gav@kde.org>, (C) 2003 00009 // 00010 // Copyright: See COPYING file that comes with this distribution 00011 // 00012 // 00013 #ifndef IRACTIONS_H 00014 #define IRACTIONS_H 00015 00016 #include <q3valuelist.h> 00017 #include <qpair.h> 00018 00019 #include <QMap> 00020 00021 #include "iraction.h" 00022 #include "mode.h" 00023 00028 class KConfig; 00029 00030 typedef Q3ValueListIterator<IRAction> IRAIt; 00031 typedef Q3ValueList<IRAIt> IRAItList; 00032 00033 class IRActions: protected Q3ValueList<IRAction> 00034 { 00035 private: 00036 void purgeAllBindings(KConfig &theConfig); 00037 00038 public: 00039 IRAIt addAction(const IRAction &theAction); 00040 IRAItList findByButton(const QString &remote, const QString &button); 00041 IRAItList findByMode(const Mode &mode); 00042 IRAItList findByModeButton(const Mode &mode, const QString &button); 00043 00044 void erase(const IRAIt &action) { Q3ValueList<IRAction>::erase(action); } 00045 void renameMode(const Mode &mode, const QString &to); 00046 00047 void loadFromConfig(KConfig &theConfig); 00048 void saveToConfig(KConfig &theConfig); 00049 }; 00050 00051 00052 #endif
KDE 4.0 API Reference