40 :
_url( url ), _count(1), _interface( interface )
51 if ( !
_url.isLocalFile() )
53 kdFatal() <<
"KIPI::ImageInfoShared::size does not yet support non local files, please fix\n" <<
endl;
57 return QFileInfo(
_url.path() ).size();
62 if ( !
_url.isLocalFile() )
64 kdFatal() <<
"KIPI::ImageInfoShared::time does not yet support non local files, please fix\n" <<
endl;
68 return QFileInfo(
_url.path() ).lastModified();
71void KIPI::ImageInfoShared::addRef()
76void KIPI::ImageInfoShared::removeRef()
105 kdWarning(51000) <<
"This method should only be invoked if the host application supports the KIPI::ImageTitlesWritable\n"
106 "If the host application do support that, then this function should\n"
107 "have been overridden in the host application.\n" <<
endl;
KDStream & endl(KDStream &stream)
Definition KDStream.cpp:264
virtual void setAngle(int)
Definition imageinfoshared.cpp:90
virtual void setTime(const QDateTime &time, TimeSpec spec=FromInfo)
Definition imageinfoshared.cpp:99
virtual QString title()
Definition imageinfoshared.h:55
virtual void setDescription(const QString &)=0
virtual int size()
Definition imageinfoshared.cpp:49
virtual void clearAttributes()=0
virtual void addAttributes(const QMap< QString, QVariant > &)=0
virtual int angle()
Definition imageinfoshared.cpp:85
virtual void cloneData(ImageInfoShared *other)
Definition imageinfoshared.cpp:110
KURL _url
Definition imageinfoshared.h:82
ImageInfoShared(KIPI::Interface *interface, const KURL &url)
Definition imageinfoshared.cpp:39
virtual QDateTime time(KIPI::TimeSpec spec)
Definition imageinfoshared.cpp:60
virtual QString description()=0
virtual QMap< QString, QVariant > attributes()=0
virtual void setTitle(const QString &)
Definition imageinfoshared.cpp:103
virtual KURL path()
Definition imageinfoshared.cpp:44
virtual bool isTimeExact()
Definition imageinfoshared.cpp:94
Definition interface.h:64
@ ImageTitlesWritable
Definition interface.h:55
@ SupportsDateRanges
Definition interface.h:53
@ ImagesHasComments
Definition interface.h:51
TimeSpec
Definition imageinfo.h:49
@ FromInfo
Definition imageinfo.h:49
@ ToInfo
Definition imageinfo.h:49