1
/** ===========================================================
4
* This file is a part of digiKam project
5
* <a href="http://www.digikam.org">http://www.digikam.org</a>
8
* @brief image collection shared
10
* @author Copyright (C) 2004-2010 by Gilles Caulier
11
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
12
* @author Copyright (C) 2004-2005 by Renchi Raju
13
* <a href="mailto:renchi dot raju at gmail dot com">renchi dot raju at gmail dot com</a>
14
* @author Copyright (C) 2004-2005 by Jesper K. Pedersen
15
* <a href="mailto:blackie at kde dot org">blackie at kde dot org</a>
16
* @author Copyright (C) 2004-2005 by Aurelien Gateau
17
* <a href="mailto:aurelien dot gateau at free dot fr">aurelien dot gateau at free dot fr</a>
19
* This program is free software; you can redistribute it
20
* and/or modify it under the terms of the GNU General
21
* Public License as published by the Free Software Foundation;
22
* either version 2, or (at your option)
25
* This program is distributed in the hope that it will be useful,
26
* but WITHOUT ANY WARRANTY; without even the implied warranty of
27
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
* GNU General Public License for more details.
30
* ============================================================ */
32
#include "imagecollectionshared.h"
41
ImageCollectionShared::ImageCollectionShared()
46
void ImageCollectionShared::addRef()
51
void ImageCollectionShared::removeRef()
56
// kDebug() << "Deleting!" << endl;
61
KUrl ImageCollectionShared::path()
63
kWarning() << "This method should only be invoked if this imagecollection is a directory.\n"
64
<< "See KIPI::ImageCollectionShared::isDirectory()";
68
KUrl ImageCollectionShared::uploadPath()
70
kWarning() << "This method should only be invoked if the host application supports the KIPI::Features\n"
71
"AcceptNewImages - if the host application do support that, then this function should\n"
72
"have been overridden in the host application.";
76
KUrl ImageCollectionShared::uploadRoot()
78
KUrl path = uploadPath();
86
return KUrl( "file:/" );
90
QString ImageCollectionShared::uploadRootName()
92
return (QString("Images")); // No i18n here. THis must be done on KIPI host interface.
95
bool ImageCollectionShared::isDirectory()
100
QString ImageCollectionShared::comment()
102
kWarning() << "KIPI::ImageCollectionShared::comment should only be invoked if the host application supports\n"
103
"the KIPI::Features AlbumsHaveComments - if the host application do support that, then this function should\n"
104
"have been overridden in the host application.";
108
QString ImageCollectionShared::category()
110
kWarning() << "KIPI::ImageCollectionShared::category should only be invoked if the host application supports\n"
111
"the KIPI::Features AlbumsHaveCategory - if the host application do support that, then this function should\n"
112
"have been overridden in the host application.";
116
QDate ImageCollectionShared::date()
118
kWarning() << "KIPI::ImageCollectionShared::date should only be invoked if the host application supports\n"
119
"the KIPI::Features AlbumsHaveCreationDate - if the host application do support that, then this function should\n"
120
"have been overridden in the host application.";
124
bool ImageCollectionShared::operator==(ImageCollectionShared& ics)
126
return images() == ics.images();