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 | 00bb99ac80741fc50ef8a289719373032f2391eb (patch) | |
tree | 3a5a9bf72f942784b38bf77dd66c534662fab5f2 /ksayit/src/Types.h | |
download | tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.tar.gz tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.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/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit/src/Types.h')
-rw-r--r-- | ksayit/src/Types.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/ksayit/src/Types.h b/ksayit/src/Types.h new file mode 100644 index 0000000..017f721 --- /dev/null +++ b/ksayit/src/Types.h @@ -0,0 +1,83 @@ +/*************************************************************************** + Types.h - description + ------------------- + begin : Fr Nov 21 2003 + copyright : (C) 2003 by voglrobe + email : voglrobe@saphir + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 TYPES_H +#define TYPES_H + +// #include <vector> + +// QT includes +#include <qvaluelist.h> +#include <qmap.h> + +// KDE includes +#include <klistview.h> + +typedef QValueList<int> ParameterList_type; +typedef QMap<QString, ParameterList_type> EffectConfig_type; + +namespace KSayItGlobal { + static const int item_initial_id = 100; + + enum { + XMLCONTEXTNAME=0, + ISEDITABLE, + MAXLINES, + SUMMARY, + RAWDATA, + RTFHEADER, + RTFDATA, + SPEAKERHEADER, + SPEAKERDATA + }; + +} + +/** +This abstract class is the interface to access the items of the TreeView. +@author Robert Vogl +*/ +class ListViewInterface : public KListViewItem +{ +public: + ListViewInterface(ListViewInterface *parent=0, QString label=QString::null); + ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null); + ListViewInterface(KListView *lv=0, QString label=QString::null); + + // ~ListViewItemInterface(); + + /** + * Stores data to the item referenced by the given index. + * \param index The index is defined by the following enum: + * \param data The data to store. + * \returns <tt>true</tt> if the operation was successfully performed, + * in all other cases <tt>false</tt>. + */ + virtual bool setValue( unsigned int index, QVariant data ) = 0; + + /** + * Requests data from the item referenced by the index. + * \param index See <tt>setValue()</tt>. + * \returns The requested data as a <tt>QVariant</tt> or a invalid + * <tt>QVariant()</tt> if the data was not available. + */ + virtual QVariant getValue( unsigned int index ) const = 0; + +}; + + +#endif |