diff options
Diffstat (limited to 'kexi/core/kexiuseractionmethod.h')
-rw-r--r-- | kexi/core/kexiuseractionmethod.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kexi/core/kexiuseractionmethod.h b/kexi/core/kexiuseractionmethod.h new file mode 100644 index 00000000..5bfae22c --- /dev/null +++ b/kexi/core/kexiuseractionmethod.h @@ -0,0 +1,42 @@ +#ifndef KEXIUSERACTIONMETHOD_H +#define KEXIUSERACTIONMETHOD_H + +#include <qvaluevector.h> +#include <qstring.h> +#include <qvariant.h> + +typedef QValueVector<int> ArgTypes; +typedef QValueVector<QString> ArgNames; + +/*! describes a UserActionCommand */ +class KEXICORE_EXPORT KexiUserActionMethod +{ + public: + /*! constructs a UserActionCommand describtion */ + KexiUserActionMethod(int method, ArgTypes types, ArgNames names); + + /*! \return method id of this method */ + int method() { return m_method; } + + /*! \return argument type information of this method */ + ArgTypes types() { return m_types; } + + /*! \return i18n argument names of this method */ + ArgNames names() { return m_names; } + + + + /*! \return i18n method name for \a method */ + static QString methodName(int method); + + /*! \return an i18n string for \a type */ + static QString typeName(int type); + + private: + int m_method; + ArgTypes m_types; + ArgNames m_names; +}; + +#endif + |