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

kdelirc

addaction.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 #ifndef ADDACTION_H
00011 #define ADDACTION_H
00012 
00013 #include <q3valuelist.h>
00014 #include <qpair.h>
00015 
00016 #include <addactionbase.h>
00017 
00018 #include "mode.h"
00019 #include "arguments.h"
00020 
00025 class Q3ListViewItem;
00026 
00027 class AddAction : public AddActionBase
00028 {
00029     Q_OBJECT
00030 
00031     int curPage;
00032     Mode theMode;
00033 
00034 public slots:
00035     virtual void slotCorrectPage();
00036     virtual void slotModeSelected();
00037     virtual void slotNextParam();
00038     virtual void slotParameterChanged();
00039 
00040     // connected to KCMLirc class to receive DCOP calls to tell it what button has been pressed
00041     virtual void updateForPageChange();
00042     virtual void updateButton(const QString &remote, const QString &button);
00043     virtual void updateButtons();
00044     virtual void updateFunctions();
00045     virtual void updateObjects();
00046     virtual void updateButtonStates();
00047     virtual void updateParameters();
00048     virtual void updateParameter();
00049     virtual void updateProfiles();
00050     virtual void updateProfileFunctions();
00051     virtual void updateOptions();
00052 
00053 public:
00054     Arguments theArguments;
00055     QString program;
00056     bool isUnique;
00057 
00058     static const QStringList getFunctions(const QString app, const QString obj);
00059     void updateArgument(Q3ListViewItem *theItem);
00060     void requestNextPress();
00061     void cancelRequest();
00062 
00063     QMap<Q3ListViewItem *, QString> profileMap;
00064     QMap<Q3ListViewItem *, QString> profileFunctionMap;
00065     QMap<Q3ListViewItem *, QString> buttonMap;
00066     QMap<Q3ListViewItem *, bool> uniqueProgramMap;
00067     QMap<Q3ListViewItem *, QString> nameProgramMap;
00068 
00069     AddAction(QWidget *parent, const char *name, const Mode &mode);
00070     ~AddAction();
00071 };
00072 
00073 #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