00001 /* ============================================================ 00002 * File : imagecollection.h 00003 * Authors: KIPI team developers (see AUTHORS files for details) 00004 * 00005 * Date : 2004-02 00006 * Description : 00007 * 00008 * Copyright 2004 by the KIPI team 00009 * 00010 * This program is free software; you can redistribute it 00011 * and/or modify it under the terms of the GNU Library General 00012 * Public License as published bythe Free Software Foundation; 00013 * either version 2, or (at your option) 00014 * any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * ============================================================ */ 00022 00023 #ifndef KIPI_IMAGECOLLECTION_H 00024 #define KIPI_IMAGECOLLECTION_H 00025 00026 // Qt includes 00027 00028 #include <qstring.h> 00029 #include <qdatetime.h> 00030 00031 // KDE includes. 00032 00033 #include <kurl.h> 00034 00035 namespace KIPI 00036 { 00037 class ImageCollectionShared; 00038 00039 class ImageCollection 00040 { 00041 public: 00042 // Interface for plugins. 00043 QString name() const; 00044 QString comment() const; 00045 QString category() const; 00046 QDate date() const; 00047 KURL::List images() const; 00048 KURL path() const; 00049 KURL uploadPath() const; 00050 KURL uploadRoot() const; 00051 QString uploadRootName() const; 00052 bool isDirectory() const; 00053 bool isValid() const; 00054 00055 // Interface for host application + general stuff 00056 ImageCollection( ImageCollectionShared* ); 00057 ImageCollection( const ImageCollection& other ); 00058 ~ImageCollection(); 00059 ImageCollection(); 00060 ImageCollection& operator=( const ImageCollection& ); 00061 00062 bool operator==(const ImageCollection&) const; 00063 private: 00064 mutable KIPI::ImageCollectionShared* _data; 00065 void printNullError() const; 00066 }; 00067 } 00068 00069 #endif /* IMAGECOLLECTION_H */ 00070
1.4.4