1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/***************************************************************************
* Copyright (C) 2003 by Gav Wood *
* [email protected]
* *
* 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 <tqstringlist.h>
#include <tqmap.h>
#include <kcmodule.h>
#include <dcopobject.h>
#include "kcmlircbase.h"
#include "iractions.h"
#include "modes.h"
class TQListViewItem;
class KListView;
class TQDropEvent;
class Profile;
class Remote;
class KCMLirc: public KCModule, virtual public DCOPObject
{
Q_OBJECT
// TQ_OBJECT
K_DCOP
private:
KCMLircBase *theKCMLircBase;
IRActions allActions;
Modes allModes;
TQMap<TQListViewItem *, IRAIt > actionMap;
TQMap<TQListViewItem *, Mode> modeMap;
TQMap<TQListViewItem *, TQString> profileMap, remoteMap;
void autoPopulate(const Profile &profile, const Remote &remote, const TQString &mode);
public slots:
void updateActions();
void updateModesStatus(TQListViewItem *);
void updateActionsStatus(TQListViewItem *);
void updateModes();
void updateExtensions();
void updateInformation();
void slotAddMode();
void slotRemoveMode();
void slotSetDefaultMode();
void slotAddAction();
void slotAddActions();
void slotEditAction();
void slotRemoveAction();
void slotDrop(KListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after);
void slotRenamed(TQListViewItem *item);
void slotEditMode();
#ifndef Q_MOC_RUN
// QMOC_SKIP_BEGIN
k_dcop:
// QMOC_SKIP_END
#endif
// now just used as a proxy to AddAction class
virtual void gotButton(TQString remote, TQString button);
signals:
void haveButton(const TQString &remote, const TQString &button);
public:
virtual void load();
virtual void save();
virtual void defaults();
virtual void configChanged();
KCMLirc(TQWidget *parent = 0, const char *name = 0, TQStringList args = TQStringList());
~KCMLirc();
};
#endif
|