diff options
author | Mavridis Philippe <[email protected]> | 2021-01-13 19:26:24 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-01-13 19:26:24 +0200 |
commit | 8c20dc919f7d54eb48fb60f39ba5e1d466a70763 (patch) | |
tree | 44d89f278d5dd066603e5ab9c0b270bc8eb4ad51 /src/ktlistitem.h | |
download | klamav-8c20dc919f7d54eb48fb60f39ba5e1d466a70763.tar.gz klamav-8c20dc919f7d54eb48fb60f39ba5e1d466a70763.zip |
Initial commit
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/ktlistitem.h')
-rw-r--r-- | src/ktlistitem.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/ktlistitem.h b/src/ktlistitem.h new file mode 100644 index 0000000..de7f70c --- /dev/null +++ b/src/ktlistitem.h @@ -0,0 +1,81 @@ +/*************************************************************************** + * KT list view item abstract base class. * + * -------------------------------------------------------------------- * + * Copyright (C) 1999, Gary Meyer <[email protected]> * + * -------------------------------------------------------------------- * + * 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 |