<commit_before>/***************************************************************************
 *   Copyright (C) 2003 by <NAME>                                        *
 *   <EMAIL>
 *                                                                         *
 *   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 _KCMLIRC_H_
#define _KCMLIRC_H_

#include <qstringlist.h>
#include <qmap.h>
//Added by qt3to4:
#include <QDropEvent>

#include <kcmodule.h>

#include <dcopobject.h>

#include "kcmlircbase.h"
#include "iractions.h"
#include "modes.h"

class Q3ListViewItem;
class KListView;
class QDropEvent;
class Profile;
class Remote;

class KCMLirc: public KCModule, virtual public DCOPObject
{
	Q_OBJECT
	K_DCOP

private:
	KCMLircBase *theKCMLircBase;
	IRActions allActions;
	Modes allModes;
	QMap<Q3ListViewItem *, IRAIt > actionMap;
	QMap<Q3ListViewItem *, Mode> modeMap;
	QMap<Q3ListViewItem *, QString> profileMap, remoteMap;

	void autoPopulate(const Profile &profile, const Remote &remote, const QString &mode);

public slots:
	void updateActions();
	void updateModesStatus(Q3ListViewItem *);
	void updateActionsStatus(Q3ListViewItem *);
	void updateModes();
	void updateExtensions();
	void updateInformation();
	void slotAddMode();
	void slotRemoveMode();
	void slotSetDefaultMode();
	void slotAddAction();
	void slotAddActions();
	void slotEditAction();
	void slotRemoveAction();
	void slotDrop(KListView *, QDropEvent *, Q3ListViewItem *, Q3ListViewItem *after);
	void slotRenamed(Q3ListViewItem *item);
	void slotEditMode();


// MOC_SKIP_BEGIN
k_dcop:
// MOC_SKIP_END
	// now just used as a proxy to AddAction class
	virtual void gotButton(QString remote, QString button);
signals:
	void haveButton(const QString &remote, const QString &button);

public:
	virtual void load();
	virtual void save();
	virtual void defaults();
	virtual void configChanged();

	KCMLirc(QWidget *parent = 0, const char *name = 0, QStringList args = QStringList());
	~KCMLirc();
};

#endif<commit_msg>Fix generate file<commit_after>/***************************************************************************
 *   Copyright (C) 2003 by <NAME>                                        *
 *   <EMAIL>
 *                                                                         *
 *   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 _KCMLIRC_H_
#define _KCMLIRC_H_

#include <qstringlist.h>
#include <qmap.h>
//Added by qt3to4:
#include <QDropEvent>

#include <kcmodule.h>

#include <dcopobject.h>

#include "kcmlircbase.h"
#include "iractions.h"
#include "modes.h"

class Q3ListViewItem;
class KListView;
class QDropEvent;
class Profile;
class Remote;

class KCMLirc: public KCModule, virtual public DCOPObject
{
	Q_OBJECT
	K_DCOP

private:
	KCMLircBase *theKCMLircBase;
	IRActions allActions;
	Modes allModes;
	QMap<Q3ListViewItem *, IRAIt > actionMap;
	QMap<Q3ListViewItem *, Mode> modeMap;
	QMap<Q3ListViewItem *, QString> profileMap, remoteMap;

	void autoPopulate(const Profile &profile, const Remote &remote, const QString &mode);

public slots:
	void updateActions();
	void updateModesStatus(Q3ListViewItem *);
	void updateActionsStatus(Q3ListViewItem *);
	void updateModes();
	void updateExtensions();
	void updateInformation();
	void slotAddMode();
	void slotRemoveMode();
	void slotSetDefaultMode();
	void slotAddAction();
	void slotAddActions();
	void slotEditAction();
	void slotRemoveAction();
	void slotDrop(KListView *, QDropEvent *, Q3ListViewItem *, Q3ListViewItem *after);
	void slotRenamed(Q3ListViewItem *item);
	void slotEditMode();


signals:
	void haveButton(const QString &remote, const QString &button);

public:
	virtual void load();
	virtual void save();
	virtual void defaults();
	virtual void configChanged();

	KCMLirc(QWidget *parent = 0, const char *name = 0, QStringList args = QStringList());
	~KCMLirc();
// MOC_SKIP_BEGIN
k_dcop:
// MOC_SKIP_END
    // now just used as a proxy to AddAction class
    virtual void gotButton(QString remote, QString button);

};

#endif
{'fraction_non_alphanumeric': 0.1554936817305633, 'fraction_numerical': 0.007710430499036196, 'mean_word_length': 3.8544698544698544, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4846985', 'n_tokens_mistral': 1448, 'n_tokens_neox': 1343, 'n_words': 415}