diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /kommander/widget/invokeclass.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widget/invokeclass.h')
-rw-r--r-- | kommander/widget/invokeclass.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/kommander/widget/invokeclass.h b/kommander/widget/invokeclass.h new file mode 100644 index 00000000..61688b3e --- /dev/null +++ b/kommander/widget/invokeclass.h @@ -0,0 +1,56 @@ +// +// C++ Interface: invokeclass +// +// Description: +// +// +// Author: Andras Mantia <amantia@kde.org>, (C) 2008 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#ifndef INVOKECLASS_H +#define INVOKECLASS_H + +#include <qobject.h> +#include <qstringlist.h> + +class InvokeClass : public QObject { +Q_OBJECT +public: + InvokeClass(QObject *parent); + void invokeSlot(QObject *object, const QString& slot, QStringList args); + + static QStringList acceptedSlots() + { + static QStringList acceptedSlots; + acceptedSlots << "const QString&"; + acceptedSlots << "const QString&,const QString&"; + acceptedSlots << "bool"; + acceptedSlots << "int"; + acceptedSlots << "int,int"; + acceptedSlots << "int,int,int"; + acceptedSlots << "int,int,int,int"; + acceptedSlots << "const QColor&"; + + return acceptedSlots; + } + +signals: + void invoke(); + void invoke(const QString&); + void invoke(const QString&,const QString&); + void invoke(bool); + void invoke(int); + void invoke(int,int); + void invoke(int,int,int); + void invoke(int,int,int,int); + void invoke(const QColor&); + +private: + QStringList m_acceptedSlots; + +}; + +#endif |