You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.3 KiB
C
86 lines
2.3 KiB
C
15 years ago
|
/***************************************************************************
|
||
|
* Copyright (C) 2003 by Gav Wood *
|
||
|
* gav@kde.org
|
||
|
* *
|
||
|
* 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_
|
||
|
|
||
15 years ago
|
#include <tqstringlist.h>
|
||
|
#include <tqmap.h>
|
||
15 years ago
|
|
||
12 years ago
|
#include <tdecmodule.h>
|
||
15 years ago
|
|
||
|
#include <dcopobject.h>
|
||
|
|
||
|
#include "kcmlircbase.h"
|
||
|
#include "iractions.h"
|
||
|
#include "modes.h"
|
||
|
|
||
15 years ago
|
class TQListViewItem;
|
||
12 years ago
|
class TDEListView;
|
||
15 years ago
|
class TQDropEvent;
|
||
15 years ago
|
class Profile;
|
||
|
class Remote;
|
||
|
|
||
12 years ago
|
class KCMLirc: public TDECModule, virtual public DCOPObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
//
|
||
15 years ago
|
K_DCOP
|
||
|
|
||
|
private:
|
||
|
KCMLircBase *theKCMLircBase;
|
||
|
IRActions allActions;
|
||
|
Modes allModes;
|
||
15 years ago
|
TQMap<TQListViewItem *, IRAIt > actionMap;
|
||
|
TQMap<TQListViewItem *, Mode> modeMap;
|
||
|
TQMap<TQListViewItem *, TQString> profileMap, remoteMap;
|
||
15 years ago
|
|
||
15 years ago
|
void autoPopulate(const Profile &profile, const Remote &remote, const TQString &mode);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
void updateActions();
|
||
13 years ago
|
void updateModesStatus(TQListViewItem *);
|
||
|
void updateActionsStatus(TQListViewItem *);
|
||
15 years ago
|
void updateModes();
|
||
|
void updateExtensions();
|
||
|
void updateInformation();
|
||
|
void slotAddMode();
|
||
|
void slotRemoveMode();
|
||
|
void slotSetDefaultMode();
|
||
|
void slotAddAction();
|
||
|
void slotAddActions();
|
||
|
void slotEditAction();
|
||
|
void slotRemoveAction();
|
||
12 years ago
|
void slotDrop(TDEListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after);
|
||
15 years ago
|
void slotRenamed(TQListViewItem *item);
|
||
15 years ago
|
void slotEditMode();
|
||
|
|
||
14 years ago
|
#ifndef Q_MOC_RUN
|
||
13 years ago
|
// MOC_SKIP_BEGIN
|
||
15 years ago
|
k_dcop:
|
||
13 years ago
|
// MOC_SKIP_END
|
||
14 years ago
|
#endif
|
||
15 years ago
|
// now just used as a proxy to AddAction class
|
||
15 years ago
|
virtual void gotButton(TQString remote, TQString button);
|
||
15 years ago
|
signals:
|
||
15 years ago
|
void haveButton(const TQString &remote, const TQString &button);
|
||
15 years ago
|
|
||
|
public:
|
||
|
virtual void load();
|
||
|
virtual void save();
|
||
|
virtual void defaults();
|
||
|
virtual void configChanged();
|
||
|
|
||
14 years ago
|
KCMLirc(TQWidget *parent = 0, const char *name = 0, TQStringList args = TQStringList());
|
||
15 years ago
|
~KCMLirc();
|
||
|
};
|
||
|
|
||
|
#endif
|