• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kdelirc

kcmlirc.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Gav Wood                                        *
00003  *   gav@kde.org
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef _KCMLIRC_H_
00012 #define _KCMLIRC_H_
00013 
00014 #include <qstringlist.h>
00015 #include <QMap>
00016 //Added by qt3to4:
00017 #include <QDropEvent>
00018 
00019 #define KDE3_SUPPORT
00020 #include <kcmodule.h>
00021 #undef KDE3_SUPPORT
00022 
00023 #include <dcopobject.h>
00024 
00025 #include "kcmlircbase.h"
00026 #include "iractions.h"
00027 #include "modes.h"
00028 
00029 class Q3ListViewItem;
00030 class K3ListView;
00031 class QDropEvent;
00032 class Profile;
00033 class Remote;
00034 
00035 class KCMLirc: public KCModule, virtual public DCOPObject
00036 {
00037     Q_OBJECT
00038     K_DCOP
00039 
00040 private:
00041     KCMLircBase *theKCMLircBase;
00042     IRActions allActions;
00043     Modes allModes;
00044     QMap<Q3ListViewItem *, IRAIt > actionMap;
00045     QMap<Q3ListViewItem *, Mode> modeMap;
00046     QMap<Q3ListViewItem *, QString> profileMap, remoteMap;
00047 
00048     void autoPopulate(const Profile &profile, const Remote &remote, const QString &mode);
00049 
00050 public slots:
00051     void updateActions();
00052     void updateModesStatus(Q3ListViewItem *);
00053     void updateActionsStatus(Q3ListViewItem *);
00054     void updateModes();
00055     void updateExtensions();
00056     void updateInformation();
00057     void slotAddMode();
00058     void slotRemoveMode();
00059     void slotSetDefaultMode();
00060     void slotAddAction();
00061     void slotAddActions();
00062     void slotEditAction();
00063     void slotRemoveAction();
00064     void slotDrop(K3ListView *, QDropEvent *, Q3ListViewItem *, Q3ListViewItem *after);
00065     void slotRenamed(Q3ListViewItem *item);
00066     void slotEditMode();
00067 
00068 
00069 signals:
00070     void haveButton(const QString &remote, const QString &button);
00071 
00072 public:
00073     virtual void load();
00074     virtual void save();
00075     virtual void defaults();
00076     virtual void configChanged();
00077 
00078     KCMLirc(QWidget *parent = 0, const QStringList &args = QStringList());
00079     ~KCMLirc();
00080 // MOC_SKIP_BEGIN
00081 k_dcop:
00082 // MOC_SKIP_END
00083     // now just used as a proxy to AddAction class
00084     virtual void gotButton(QString remote, QString button);
00085 
00086 };
00087 
00088 #endif

kdelirc

Skip menu "kdelirc"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal