diff options
Diffstat (limited to 'digikam/digikam/albumitemhandler.h')
-rw-r--r-- | digikam/digikam/albumitemhandler.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/digikam/digikam/albumitemhandler.h b/digikam/digikam/albumitemhandler.h new file mode 100644 index 0000000..e78042f --- /dev/null +++ b/digikam/digikam/albumitemhandler.h @@ -0,0 +1,60 @@ +/* ============================================================ + * + * This file is a part of digiKam project + * http://www.digikam.org + * + * Date : 2003-09-26 + * Description : album item handler. + * + * Copyright (C) 2003 by Renchi Raju <renchi@pooh.tam.uiuc.edu> + * + * 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, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ============================================================ */ + +#ifndef ALBUMITEMHANDLER_H +#define ALBUMITEMHANDLER_H + +// KDE includes. + +#include <kurl.h> + +namespace Digikam +{ + +/*! + AlbumItemHandler + An abstract class which returns the selected items and all items in + the current album. All views which handle album items should derive + from this. +*/ + +class AlbumItemHandler +{ +public: + + AlbumItemHandler(); + virtual ~AlbumItemHandler(); + + virtual KURL::List allItems() = 0; + virtual KURL::List selectedItems() = 0; + virtual void refresh() = 0; + virtual void refreshItems(const KURL::List& items) = 0; + +protected: + + void emitItemsSelected(bool val); +}; + +} // namespace Digikam + +#endif /* ALBUMITEMHANDLER_H */ |