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 | 37333bf25ad9a4c538250f5af2f9f1d666362883 (patch) | |
tree | c45e8df5b9efbffe07eb3d9340df7811c7e16943 /kcron/ktlistitem.h | |
download | tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.tar.gz tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.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/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/ktlistitem.h')
-rw-r--r-- | kcron/ktlistitem.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/kcron/ktlistitem.h b/kcron/ktlistitem.h new file mode 100644 index 0000000..6d10974 --- /dev/null +++ b/kcron/ktlistitem.h @@ -0,0 +1,81 @@ +/*************************************************************************** + * KT list view item abstract base class. * + * -------------------------------------------------------------------- * + * Copyright (C) 1999, Gary Meyer <gary@meyer.net> * + * -------------------------------------------------------------------- * + * 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 KTLISTITEM_H +#define KTLISTITEM_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <qlistview.h> + +class KTPrint; +class CTCron; + +/** + * An enhanced QListViewItem that ensures all list view items have the + * same interface. + */ +class KTListItem : public QListViewItem +{ +public: + +/** + * Construct a root list view item from a CTCron. + */ + KTListItem(KTListItem* parent, const char* name, CTCron* _ctcron); + +/** + * Construct a non-root list view item from a CTCron. + */ + KTListItem(QListView* parent, const char* name, CTCron* _ctcron); + +/** + * Destructor. + */ + virtual ~KTListItem(); + +/** + * Create. + */ + virtual void create(); + +/** + * Edit. + */ + virtual void edit(); + +/** + * Refresh. + */ + virtual void refresh() = 0; + +/** + * Print. + */ + virtual void print(KTPrint &printer) const =0; + +/** + * Get the user's crontab. + */ + CTCron* getCTCron() const; + +private: + +/** + * User's crontab. + */ + CTCron* ctcron; + +}; + +#endif // KTLISTITEM_H |